56 MsgStream log(
msgSvc(), name());
57 log << MSG::DEBUG <<
"in execute()" << endreq;
59 SmartDataPtr<RecEsTimeCol> estimeCol(eventSvc(),
"/Event/Recon/RecEsTimeCol");
61 if( !estimeCol || ( estimeCol->size() == 0 ) ) {
62 log << MSG::WARNING <<
"Could not find RecEsTimeCol!" << endreq;
63 return StatusCode::SUCCESS;
66 RecEsTimeCol::iterator iter_ESTime=estimeCol->begin();
67 double t0 = (*iter_ESTime)->getTest();
70 if(!emcRecShowerCol) {
71 log << MSG::WARNING <<
"Could not find RecEmcShowerCol!" << endreq;
72 return StatusCode::SUCCESS;
75 RecEmcShowerCol::iterator iShowerCol;
76 for(iShowerCol=emcRecShowerCol->begin();
77 iShowerCol!=emcRecShowerCol->end();
80 if((*iShowerCol)->status()>=100)
continue;
82 double tEmc = (*iShowerCol)->time();
83 (*iShowerCol)->setTime(tEmc-(
int)(t0/50));
84 (*iShowerCol)->setStatus((*iShowerCol)->status()%100+100);
88 m_nt_estTime = (double)(
int)(t0/50);
89 m_nt_corTime = (*iShowerCol)->time();
90 RecEmcID id((*iShowerCol)->getShowerId());
94 m_nt_e5x5 = (*iShowerCol)->e5x5();
95 m_nt_status = (*iShowerCol)->status();
100 return StatusCode::SUCCESS;