00001 // 00002 // EvtStoreQuery 00003 // 00004 // Zhe Wang, May 4, 2009 00005 // 00006 #ifndef _EVT_STORE_QUERY_H_ 00007 #define _EVT_STORE_QUERY_H_ 1 00008 00009 #include "DybKernel/IEvtStoreQuery.h" 00010 #include "GaudiKernel/Service.h" 00011 00012 #include "GaudiKernel/IDataProviderSvc.h" 00013 00014 class EvtStoreQuery : 00015 public Service, 00016 virtual public IEvtStoreQuery { 00017 00018 public: 00020 EvtStoreQuery(const std::string& name, 00021 ISvcLocator* svc); 00022 00023 virtual StatusCode initialize(); 00024 virtual StatusCode finalize(); 00025 00035 virtual const DataObject* queryInputAddress(const std::string& location, const unsigned long& entry); 00036 00038 virtual StatusCode queryInterface(const InterfaceID& id, 00039 void** interface ); 00040 00041 private: 00042 bool m_useAES; 00043 00044 // TES 00045 std::string m_evtSvcName; 00046 IDataProviderSvc* m_evtSvc; 00047 00048 // AES 00049 std::string m_archiveSvcName; 00050 IDataProviderSvc* m_archiveSvc; 00051 00052 }; 00053 00054 #endif // _EVT_STORE_QUERY_H_