60 MsgStream log(
msgSvc(), name() );
61 log << MSG::DEBUG <<
"in execute()" << endmsg;
63 SmartDataPtr<RecEsTimeCol> estimeCol( eventSvc(),
"/Event/Recon/RecEsTimeCol" );
65 if ( !estimeCol || ( estimeCol->size() == 0 ) )
67 log << MSG::WARNING <<
"Could not find RecEsTimeCol!" << endmsg;
68 return StatusCode::SUCCESS;
71 RecEsTimeCol::iterator iter_ESTime = estimeCol->begin();
72 double t0 = ( *iter_ESTime )->getTest();
74 SmartDataPtr<RecEmcShowerCol> emcRecShowerCol( eventSvc(),
76 if ( !emcRecShowerCol )
78 log << MSG::WARNING <<
"Could not find RecEmcShowerCol!" << endmsg;
79 return StatusCode::SUCCESS;
82 RecEmcShowerCol::iterator iShowerCol;
83 for ( iShowerCol = emcRecShowerCol->begin(); iShowerCol != emcRecShowerCol->end();
87 if ( ( *iShowerCol )->status() >= 100 )
continue;
89 double tEmc = ( *iShowerCol )->time();
90 ( *iShowerCol )->setTime( tEmc - (
int)( t0 / 50 ) );
91 ( *iShowerCol )->setStatus( ( *iShowerCol )->status() % 100 + 100 );
96 m_nt_estTime = (double)(
int)( t0 / 50 );
97 m_nt_corTime = ( *iShowerCol )->time();
98 RecEmcID id( ( *iShowerCol )->getShowerId() );
102 m_nt_e5x5 = ( *iShowerCol )->e5x5();
103 m_nt_status = ( *iShowerCol )->status();
108 return StatusCode::SUCCESS;