#include <ProcessorMgr.h>
Public Member Functions | |
| bool | addActiveProcessor (const std::string &processorType, const std::string &processorName, StringParameters *parameters, const std::string condition="true") |
| void | removeActiveProcessor (const std::string &name) |
| Processor * | getActiveProcessor (const std::string &name) |
| Processor * | getProcessor (const std::string &type) |
| void | dumpRegisteredProcessors () |
| void | dumpRegisteredProcessorsXML () |
| 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) |
| virtual void | setProcessorReturnValue (Processor *proc, bool val) |
| virtual void | setProcessorReturnValue (Processor *proc, bool val, const std::string &name) |
Static Public Member Functions | |
| ProcessorMgr * | instance () |
Protected Member Functions | |
| void | registerProcessor (Processor *processor) |
| std::set< std::string > | getAvailableProcessorTypes () |
| ProcessorMgr () | |
Private Attributes | |
| ProcessorMap | _map |
| ProcessorMap | _activeMap |
| ProcessorList | _list |
| SkippedEventMap | _skipMap |
| LogicalExpressions | _conditions |
Static Private Attributes | |
| ProcessorMgr * | _me = 0 |
Friends | |
| class | Processor |
| class | CMProcessor |
| class | MarlinSteerCheck |
Definition at line 34 of file ProcessorMgr.h.
|
|
Definition at line 110 of file ProcessorMgr.h. |
|
||||||||||||||||||||
|
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. Definition at line 165 of file ProcessorMgr.cc. References _activeMap, _conditions, _list, marlin::LogicalExpressions::addCondition(), getProcessor(), marlin::Processor::newProcessor(), marlin::Processor::setName(), and marlin::Processor::setParameters(). Referenced by createProcessors(). |
|
|
Dump information of all registered processors to stdout. Definition at line 58 of file ProcessorMgr.cc. References _map, marlin::Processor::end(), and marlin::Processor::printDescription(). Referenced by listAvailableProcessors(). |
|
|
Dump information of all registered processors in XML format to stdout. Definition at line 93 of file ProcessorMgr.cc. References _map, marlin::Processor::end(), and marlin::Processor::printDescriptionXML(). Referenced by listAvailableProcessorsXML(). |
|
|
Definition at line 280 of file ProcessorMgr.cc. References _list, and _skipMap. Referenced by createProcessors(), and main(). |
|
|
Return the active processor with the given name. NULL if no processor exists. Definition at line 152 of file ProcessorMgr.cc. References _activeMap. |
|
|
Returns a list of all registered processors found Definition at line 138 of file ProcessorMgr.cc. References _map, and marlin::Processor::end(). |
|
|
Return the processor that has been registered with the given type. NULL if no processor exists. Definition at line 148 of file ProcessorMgr.cc. References _map. Referenced by addActiveProcessor(). |
|
|
Definition at line 208 of file ProcessorMgr.cc. References _list. Referenced by main(). |
|
|
Return the instance of this manager. Definition at line 18 of file ProcessorMgr.cc. References _me. Referenced by createProcessors(), listAvailableProcessors(), listAvailableProcessorsXML(), and main(). |
|
|
Definition at line 88 of file ProcessorMgr.h. |
|
|
Definition at line 87 of file ProcessorMgr.h. |
|
|
Definition at line 225 of file ProcessorMgr.cc. References _conditions, _list, _skipMap, marlin::LogicalExpressions::clear(), and marlin::LogicalExpressions::conditionIsTrue(). |
|
|
Definition at line 213 of file ProcessorMgr.cc. References _list. |
|
|
Calls readDataSource() for all Processors of type DataSourceProcessor. Definition at line 44 of file ProcessorMgr.cc. References _list, marlin::Processor::end(), and marlin::DataSourceProcessor::readDataSource(). Referenced by main(). |
|
|
Register a processor with the given name. Definition at line 26 of file ProcessorMgr.cc. References _map, and marlin::Processor::type(). |
|
|
Remove processor with name from list of active processors. Definition at line 156 of file ProcessorMgr.cc. References _activeMap, and _list. |
|
||||||||||||||||
|
Set the named return value for the given processor Definition at line 273 of file ProcessorMgr.cc. References _conditions, marlin::Processor::name(), and marlin::LogicalExpressions::setValue(). |
|
||||||||||||
|
Set the return value for the given processor Definition at line 268 of file ProcessorMgr.cc. References _conditions, marlin::Processor::name(), and marlin::LogicalExpressions::setValue(). |
|
|
Definition at line 37 of file ProcessorMgr.h. |
|
|
Definition at line 38 of file ProcessorMgr.h. |
|
|
Definition at line 36 of file ProcessorMgr.h. |
|
|
Definition at line 115 of file ProcessorMgr.h. Referenced by addActiveProcessor(), getActiveProcessor(), and removeActiveProcessor(). |
|
|
Definition at line 119 of file ProcessorMgr.h. Referenced by addActiveProcessor(), processEvent(), and setProcessorReturnValue(). |
|
|
Definition at line 116 of file ProcessorMgr.h. Referenced by addActiveProcessor(), end(), init(), processEvent(), processRunHeader(), readDataSource(), and removeActiveProcessor(). |
|
|
Definition at line 114 of file ProcessorMgr.h. Referenced by dumpRegisteredProcessors(), dumpRegisteredProcessorsXML(), getAvailableProcessorTypes(), getProcessor(), and registerProcessor(). |
|
|
Definition at line 14 of file ProcessorMgr.cc. Referenced by instance(). |
|
|
Definition at line 117 of file ProcessorMgr.h. Referenced by end(), and processEvent(). |
1.3.9.1