#include <ProcessorMgr.h>
Public Member Functions | |
bool | addActiveProcessor (const std::string &processorType, const std::string &processorName, StringParameters *parameters, const std::string condition="true") |
Add a processor of type processorType with name processorName to the list of active processors including a condition for the execution of the processEvent() method. | |
void | removeActiveProcessor (const std::string &name) |
Remove processor with name from list of active processors. | |
Processor * | getActiveProcessor (const std::string &name) |
Return the active processor with the given name. | |
Processor * | getProcessor (const std::string &type) |
Return the processor that has been registered with the given type. | |
void | dumpRegisteredProcessors () |
Dump information of all registered processors to stdout. | |
void | dumpRegisteredProcessorsXML () |
Dump information of all registered processors in XML format to stdout. | |
virtual void | init () |
virtual void | processRunHeader (LCRunHeader *) |
virtual void | processEvent (LCEvent *) |
virtual void | end () |
virtual void | modifyRunHeader (LCRunHeader *) |
virtual void | modifyEvent (LCEvent *) |
virtual void | readDataSource (int numEvents) |
Calls readDataSource() for all Processors of type DataSourceProcessor. | |
virtual void | setProcessorReturnValue (Processor *proc, bool val) |
Set the return value for the given processor. | |
virtual void | setProcessorReturnValue (Processor *proc, bool val, const std::string &name) |
Set the named return value for the given processor. | |
Static Public Member Functions | |
ProcessorMgr * | instance () |
Return the instance of this manager. | |
Protected Member Functions | |
void | registerProcessor (Processor *processor) |
Register a processor with the given name. | |
std::set< std::string > | getAvailableProcessorTypes () |
Returns a list of all registered processors found. | |
Friends | |
class | Processor |
class | CMProcessor |
class | MarlinSteerCheck |
Holds references to all registered Processors.
|
Return the active processor with the given name. NULL if no processor exists. |
|
Return the processor that has been registered with the given type. NULL if no processor exists. |