1 #ifndef IConditionsHandler_h
2 #define IConditionsHandler_h
6 #include "IConditionsChangeListener.hh"
11 #include "EVENT/LCEvent.h"
12 #include "EVENT/LCCollection.h"
80 virtual const std::string
name() = 0;
94 #endif // IConditionsHandler_h
virtual bool isChangeListenerRegistered(IConditionsChangeListener *cl)=0
checks if the changeListner is Registered
Simple interface that allows notification of implementation classes if a conditions data set has chan...
Definition: IConditionsChangeListener.hh:22
virtual lcio::LCCollection * lastValidCollection()=0
The last valid collection held by the handler.
Abstract handler for conditions data.
Definition: IConditionsHandler.hh:26
virtual void removeChangeListener(IConditionsChangeListener *cl)=0
Remove the specified listener from list of registered listeners ;.
virtual const std::string name()=0
The name of this conditions handler - used, e.g.
virtual void registerDefaultCollection(lcio::LCCollection *col)=0
Register a pointer to a default collection which will be passed to the IConditionsChangeListener if n...
virtual LCCDTimeStamp validTill()=0
Last timestamp for which the current conditions data is valid.
lcio::long64 LCCDTimeStamp
The timestamp in LCCD is a 64bit int as defined in LCIO.
Definition: lccd.h:24
virtual lcio::LCCollection * currentCollection()=0
Returns the current collection of conditions data.
virtual void updateEvent(lcio::LCEvent *evt)=0
Retrieves the new conditions data if required by evt->getTimestamp() and adds a collection to event w...
virtual void update(LCCDTimeStamp timestamp)=0
Retrieves the new conditions data if required by timestamp.
virtual lcio::LCCollection * defaultCollection()=0
The default collection registered with the handler.
virtual LCCDTimeStamp validSince()=0
First timestamp for which the current conditions data is valid.
virtual void registerChangeListener(IConditionsChangeListener *cl)=0
Every IConditionsChangeListener will be notified if the conditions data of this instance has changed...