#include <ConditionsProcessor.h>
Inheritance diagram for marlin::ConditionsProcessor:
Public Member Functions | |
virtual Processor * | newProcessor () |
Return a new instance of the processor. | |
virtual void | init () |
Initializes conditions handlers as defined in the steering file. | |
virtual void | processEvent (LCEvent *evt) |
Updates all registered conditions handlers and adds the data to the event. | |
virtual void | end () |
Called after data processing for clean up. | |
Static Public Member Functions | |
bool | registerChangeListener (lccd::IConditionsChangeListener *cl, const std::string &name) |
Registers an IConditionsChangeListener, e.g. | |
Protected Attributes | |
std::string | _dbInit |
Default database init string. | |
StringVec | _simpleHandlerInit |
initialization of SimpleFileHandlers | |
StringVec | _dbcondHandlerInit |
initialization of DBCondHandlers | |
StringVec | _dbfileHandlerInit |
initialization of DBFileHandlers | |
StringVec | _datafileHandlerInit |
initialization of DataFileHandlers | |
StringVec | _condHandlerNames |
the names of all handlers | |
int | _nRun |
int | _nEvt |
Uses LCCD ConditionsHandler. For every ConditionsHandler you have to specify a line in the steering file. Use MyMarlin -l to get examples for the steering parameters.
The conditions data are added to the event as LCCollections with their name. Optionally IConditionsChangeListener subclasses, e.g. ConditionsMaps can be registered for conditions data 'name', these are updated whenever the data changes.
none
Collections of conditions data are added to the event.
DBCondHandler | Initialization of a conditions database handler |
DBFileHandler | Initialization of a conditions db file handler |
DBInit | Initialization string for conditions database |
DataFileHandler | Initialization of a data file handler |
SimpleFileHandler | Initialization of a simple conditions file handler |
|
Return a new instance of the processor. Has to be implemented by subclasses. Implements marlin::Processor. |
|
Registers an IConditionsChangeListener, e.g. a ConditionsMap with the conditions handler 'name'. Returns true if successfull. |