LCCD  1.5.0
SimpleFileHandler.hh
1 #ifndef SimpleFileHandler_h
2 #define SimpleFileHandler_h
3 
4 //#include "lccd.h"
5 #include "ConditionsHandlerBase.hh"
6 
7 using namespace lcio ;
8 
9 namespace lccd {
10 
29 
30  public:
31 
40  SimpleFileHandler(const std::string& fileName,
41  const std::string& name,
42  const std::string& inputCollection="" ) ;
43 
44 
45  virtual ~SimpleFileHandler() ;
46 
47 
52  virtual void update( LCCDTimeStamp timestamp ) ;
53 
54 
59  virtual void registerDefaultCollection( lcio::LCCollection* col);
60 
61 
65  virtual lcio::LCCollection* defaultCollection() ;
66 
67 
71  virtual lcio::LCCollection* lastValidCollection() ;
72 
73 
74  protected :
75 
76  SimpleFileHandler() {}
77 
78  // ---- data members ------
79 
81  std::string _fileName{} ;
82 
84  std::string _inputCollection{} ;
85 
86 
87  bool _firstCall{} ;
88 
89  };
90 } //end namespace
91 
92 #endif // SimpleFileHandler_h
Implementation of ConditionsHandlerBase that reads the conditions data from an LCIO file...
Definition: SimpleFileHandler.hh:28
Base implementation of IConditionsHandler.
Definition: ConditionsHandlerBase.hh:27
lcio::long64 LCCDTimeStamp
The timestamp in LCCD is a 64bit int as defined in LCIO.
Definition: lccd.h:24