1 #ifndef DBFileHandler_h
2 #define DBFileHandler_h
5 #include "ConditionsHandlerBase.hh"
13 typedef std::pair<LCCDTimeStamp,LCCDTimeStamp> ValidityInterval ;
14 typedef std::vector< ValidityInterval > ValidityVector ;
68 const std::string& name,
69 const std::string& inputCollection=
"" ) ;
78 virtual void registerDefaultCollection( lcio::LCCollection* col);
113 int findEventNumber( LCCDTimeStamp timeStamp ) ;
118 std::string _fileName{} ;
121 std::string _inputCollection{} ;
124 ValidityVector _valVec{} ;
127 LCReader* _lcReader = nullptr ;
130 lcio::LCCollection* _defaultCollection = nullptr ;
133 lcio::LCCollection* _lastValidCollection = nullptr ;
138 #endif // DBFileHandler_h
Base implementation of IConditionsHandler.
Definition: ConditionsHandlerBase.hh:27
virtual lcio::LCCollection * lastValidCollection()
The last valid collection held by the handler.
Definition: DBFileHandler.hh:88
virtual lcio::LCCollection * defaultCollection()
The default collection registered with the handler.
Definition: DBFileHandler.hh:83
lcio::long64 LCCDTimeStamp
The timestamp in LCCD is a 64bit int as defined in LCIO.
Definition: lccd.h:24
Implementation of ConditionsHandlerBase that reads the conditions data from a special LCIO file...
Definition: DBFileHandler.hh:52