00001 #ifndef RootRawEvtReader_h 00002 #define RootRawEvtReader_h 00003 00004 #include "GaudiKernel/Algorithm.h" 00005 #include <string> 00006 00007 #include "GaudiKernel/IDataProviderSvc.h" 00008 00009 class TTree; 00010 00011 class RootRawEvtReader:public Algorithm { 00012 public: 00013 RootRawEvtReader(const std::string& name, ISvcLocator* pSvcLocator); 00014 virtual ~RootRawEvtReader(); 00015 StatusCode initialize(); 00016 StatusCode execute(); 00017 StatusCode finalize(); 00018 00019 StatusCode readMdc(int entry); 00020 StatusCode readTof(int entry); 00021 StatusCode readEmc(int entry); 00022 StatusCode readMuc(int entry); 00023 private: 00024 00025 IDataProviderSvc* m_evtSvc; 00026 00027 00028 int m_mdcDigi; 00029 int m_tofDigi; 00030 int m_emcDigi; 00031 int m_mucDigi; 00032 00033 TTree* m_tree; 00034 int m_totalEvents; 00035 int m_fileNumber; 00036 int m_tempNumber; 00037 int m_currentEntry; 00038 int m_currentEntries; 00039 00040 std::vector<std::string> m_inputFiles; 00041 }; 00042 00043 #endif