LCCD  1.5.0
IConditionsHandler.hh
1 #ifndef IConditionsHandler_h
2 #define IConditionsHandler_h
3 
4 //
5 #include "lccd.h"
6 #include "IConditionsChangeListener.hh"
7 
8 
9 // -- lcio headers
10 #include "lcio.h"
11 #include "EVENT/LCEvent.h"
12 #include "EVENT/LCCollection.h"
13 
14 
15 namespace lccd {
16 
27 
28  public:
29 
30  virtual ~IConditionsHandler() {} ;
31 
32 
37  virtual void updateEvent( lcio::LCEvent* evt ) = 0;
38 
43  virtual void update( LCCDTimeStamp timestamp ) = 0;
44 
47  virtual lcio::LCCollection* currentCollection() = 0;
48 
53 
56  virtual void removeChangeListener( IConditionsChangeListener* cl) = 0;
57 
61 
65  virtual void registerDefaultCollection( lcio::LCCollection* col) = 0;
66 
69  virtual lcio::LCCollection* defaultCollection() = 0 ;
70 
73  virtual lcio::LCCollection* lastValidCollection() = 0 ;
74 
80  virtual const std::string name() = 0;
81 
84  virtual LCCDTimeStamp validSince() =0 ;
85 
88  virtual LCCDTimeStamp validTill() =0;
89 
90  };
91 
92 } //end namespace
93 
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...