fire v0.19.0
Framework for sImulation and Reconstruction of Events
|
Legacy analyzer class. More...
#include <EventProcessor.h>
Public Member Functions | |
Analyzer (const std::string &name, framework::Process &p) | |
Pass construction to base legacy processor. More... | |
virtual void | beforeNewRun (fire::RunHeader &) final override |
Don't allow legacy analyzers to use this method by defining the final version to be empty. More... | |
virtual void | analyze (const framework::Event &event)=0 |
Pure virtual analyze function to align with legacy implementation. More... | |
virtual void | process (fire::Event &event) final override |
Final implementation of pure virtual process method, wrapping event in framework::Event and giving it to analyze method. More... | |
Public Member Functions inherited from framework::EventProcessor | |
EventProcessor (const std::string &name, framework::Process &p) | |
Construct a legacy event processor. More... | |
virtual void | configure (config::Parameters &ps) |
Legacy configure method. More... | |
Public Member Functions inherited from fire::Processor | |
Processor (const config::Parameters &ps) | |
Configure the processor upon construction. More... | |
virtual | ~Processor ()=default |
virtual default destructor so derived classes can be destructed | |
virtual void | onNewRun (const RunHeader &runHeader) |
Callback for the Processor to take any necessary action when the run being processed changes. More... | |
virtual void | onFileOpen (const std::string &file_name) |
Callback for the Processor to take any necessary action when a new input event file is opened. More... | |
virtual void | onFileClose (const std::string &file_name) |
Callback for the Processor to take any necessary action when a event input file is closed. More... | |
virtual void | onProcessStart () |
Callback for the Processor to take any necessary action when the processing of events starts. | |
virtual void | onProcessEnd () |
Callback for the Processor to take any necessary action when the processing of events finishes, such as calculating job-summary quantities. | |
const std::string & | getName () const |
Get the processor name. | |
virtual void | attach (Process *p) final |
Attach the current process to this processor. More... | |
template<class T > | |
const T & | getCondition (const std::string &condition_name) |
Access a conditions object for the current event. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from fire::Processor | |
void | setStorageHint (StorageControl::Hint hint, const std::string &purpose="") const |
Mark the current event as having the given storage control hint from this processor and the given purpose string. More... | |
void | abortEvent () |
Abort the event immediately. More... | |
void | fatalError (const std::string &msg) |
End processing due to a fatal runtime error. More... | |
Protected Attributes inherited from fire::Processor | |
logging::logger | theLog_ |
The logger for this Processor. More... | |
Legacy analyzer class.
|
inline |
Pass construction to base legacy processor.
[in] | name | Name of this processor |
[in] | p | handle to current process |
|
pure virtual |
Pure virtual analyze function to align with legacy implementation.
[in] | event | legacy event bus for legacy processor |
|
inlinefinaloverridevirtual |
Don't allow legacy analyzers to use this method by defining the final
version to be empty.
Reimplemented from fire::Processor.
|
inlinefinaloverridevirtual |
Final implementation of pure virtual process method, wrapping event in framework::Event and giving it to analyze method.
[in] | event | current event bus for legacy processor |
Implements framework::EventProcessor.