00001 // $Id: FakeEventTime.h,v 1.2 2008/07/21 14:52:40 cattanem Exp $ 00002 #ifndef FAKEEVENTTIME_H 00003 #define FAKEEVENTTIME_H 1 00004 00005 // Include files 00006 // from Gaudi 00007 #include "GaudiKernel/AlgTool.h" 00008 #include "GaudiKernel/IEventTimeDecoder.h" // Interface 00009 00010 class IDataProviderSvc; 00011 00020 class FakeEventTime : public AlgTool, virtual public IEventTimeDecoder { 00021 public: 00023 FakeEventTime( const std::string& type, 00024 const std::string& name, 00025 const IInterface* parent); 00026 00027 virtual ~FakeEventTime( ); 00028 00030 virtual StatusCode initialize(); 00031 00033 virtual StatusCode finalize(); 00034 00035 // --- implementation of IEventTimeDecoder --- 00036 00038 Gaudi::Time getTime() const; 00039 00040 private: 00041 00042 // ---------- data members ---------- 00043 // --- names --- 00045 std::string m_evtDataProviderName; 00046 00047 // --- services --- 00049 IDataProviderSvc *m_evtDataProvider; 00050 00051 // --- misc --- 00054 long long m_startTime; 00057 long long m_timeStep; 00058 00059 }; 00060 #endif // FAKEEVENTTIME_H