73 {
74
75 MsgStream log(
msgSvc(), name());
76 log << MSG::INFO << "in execute()" << endreq;
77
79 StatusCode sc = m_evtSvc->registerObject("/Event/Digi",aDigiEvent);
80 if(sc!=StatusCode::SUCCESS) {
81 std::cout<< "Could not register DigiEvent" <<std::endl;
82 }
83
84
85 if(m_tempNumber != m_fileNumber)
86 {
87 m_currentEntry = 0;
88 TFile* m_input = TFile::Open(m_inputFiles[m_fileNumber].
c_str(),
"READ");
89 std::cout<<"input file: "<<m_inputFiles[m_fileNumber].c_str()<<std::endl;
90 m_tree= (TTree *)m_input->Get("Event");
91 m_tree->SetMakeClass(1);
92 m_currentEntries=(Int_t)m_tree->GetEntries();
93 std::cout<<"m_currentEntries: "<<m_currentEntries<<std::endl;
94
95 m_tempNumber = m_fileNumber;
96 }
97
98 if(m_mdcDigi)
100
101 if(m_tofDigi)
103
104 if(m_emcDigi)
106
107 if(m_mucDigi)
109
110 log << MSG::INFO << "current Entry: "<< m_currentEntry << endreq;
111
112 m_currentEntry++;
113
114 if(m_currentEntry==m_currentEntries)
115 {
116 m_fileNumber++;
117 }
118
119 m_totalEvents++;
120 log << MSG::INFO << "total events: "<< m_totalEvents << endreq;
121
122
123 return StatusCode::SUCCESS;
124}
StatusCode readTof(int entry)
StatusCode readMuc(int entry)
StatusCode readEmc(int entry)
StatusCode readMdc(int entry)