Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

marlin::ConditionsProcessor Class Reference

Processor that provides access to conditions data in a Marlin application. More...

#include <ConditionsProcessor.h>

Inheritance diagram for marlin::ConditionsProcessor:

marlin::Processor List of all members.

Public Member Functions

virtual ProcessornewProcessor ()
 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

Detailed Description

Processor that provides access to conditions data in a Marlin application.

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.

Input - Prerequisites

none

Output

Collections of conditions data are added to the event.

Parameters:
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
Author:
F. Gaede, DESY
Version:
Id
ConditionsProcessor.h,v 1.5 2006/11/15 16:28:10 gaede Exp


Member Function Documentation

virtual Processor* marlin::ConditionsProcessor::newProcessor  )  [inline, virtual]
 

Return a new instance of the processor.

Has to be implemented by subclasses.

Implements marlin::Processor.

bool marlin::ConditionsProcessor::registerChangeListener lccd::IConditionsChangeListener *  cl,
const std::string &  name
[static]
 

Registers an IConditionsChangeListener, e.g.

a ConditionsMap with the conditions handler 'name'. Returns true if successfull.


The documentation for this class was generated from the following files:
Generated on Mon Jan 12 09:48:56 2009 for Marlin by doxygen 1.3.5