54 {
55
56 MsgStream log(
msgSvc(), name());
57 log << MSG::DEBUG << "in execute()" << endreq;
58
59 SmartDataPtr<RecEsTimeCol> estimeCol(eventSvc(),"/Event/Recon/RecEsTimeCol");
60
61 if( !estimeCol || ( estimeCol->size() == 0 ) ) {
62 log << MSG::WARNING << "Could not find RecEsTimeCol!" << endreq;
63 return StatusCode::SUCCESS;
64 }
65
66 RecEsTimeCol::iterator iter_ESTime=estimeCol->begin();
67 double t0 = (*iter_ESTime)->getTest();
68
70 if(!emcRecShowerCol) {
71 log << MSG::WARNING << "Could not find RecEmcShowerCol!" << endreq;
72 return StatusCode::SUCCESS;
73 }
74
75 RecEmcShowerCol::iterator iShowerCol;
76 for(iShowerCol=emcRecShowerCol->begin();
77 iShowerCol!=emcRecShowerCol->end();
78 iShowerCol++) {
79
80 if((*iShowerCol)->status()>=100) continue;
81
82 double tEmc = (*iShowerCol)->time();
83 (*iShowerCol)->setTime(tEmc-(int)(t0/50));
84 (*iShowerCol)->setStatus((*iShowerCol)->status()%100+100);
85
86 if(m_output) {
87 m_nt_emcTime = tEmc;
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();
96 m_tuple->write();
97 }
98 }
99
100 return StatusCode::SUCCESS;
101}
static unsigned int barrel_ec(const Identifier &id)
Values of different levels (failure returns 0)
static unsigned int theta_module(const Identifier &id)
static unsigned int phi_module(const Identifier &id)
_EXTERN_ std::string RecEmcShowerCol