LCCD  1.5.0
DataFileHandler.hh
1 #ifndef DataFileHandler_h
2 #define DataFileHandler_h
3 
4 //#include "lccd.h"
5 #include "ConditionsHandlerBase.hh"
6 
7 using namespace lcio ;
8 
9 namespace lccd {
10 
30 
31  public:
32 
33  DataFileHandler( const DataFileHandler& ) = delete ;
34  DataFileHandler& operator=( const DataFileHandler& ) = delete ;
35 
36 
40  DataFileHandler( const std::string& name ) ;
41 
42 
43  virtual ~DataFileHandler() ;
44 
50  virtual void updateEvent( lcio::LCEvent* evt ) ;
51 
52 
53  /* The timestamp is ignored, use update(LCEvent *evt) instead.
54  */
55  virtual void update( LCCDTimeStamp /*timestamp*/ ) {}
56 
57 
62  virtual void registerDefaultCollection( lcio::LCCollection* col);
63 
64 
68  virtual lcio::LCCollection* defaultCollection() ;
69 
70 
74  virtual lcio::LCCollection* lastValidCollection() ;
75 
76 
77  protected :
78 
79  DataFileHandler() {}
80 
81  };
82 } //end namespace
83 
84 #endif // DataFileHandler_h
Base implementation of IConditionsHandler.
Definition: ConditionsHandlerBase.hh:27
Implementation of ConditionsHandlerBase that handles conditions data that is stored in a data LCIO fi...
Definition: DataFileHandler.hh:29
virtual void update(LCCDTimeStamp)
Retrieves the new conditions data if required by timestamp.
Definition: DataFileHandler.hh:55
lcio::long64 LCCDTimeStamp
The timestamp in LCCD is a 64bit int as defined in LCIO.
Definition: lccd.h:24