24 MsgStream log(msgSvc(), name());
25 log << MSG::INFO <<
"Initialize" <<
endmsg;
29 log << MSG::ERROR <<
"Could not get LArOnlineID helper" <<
endmsg;
30 return StatusCode::FAILURE;
38 log << MSG::INFO <<
"======== ReadTBLArCalibDigits initialize successfully ========" <<
endmsg;
39 return StatusCode::SUCCESS;
44 MsgStream log(msgSvc(), name());
52 log << MSG::DEBUG <<
"======== executing event "<<
m_count <<
" ========" <<
endmsg;
58 log << MSG::FATAL <<
" Cannot read TBLArCalibDigitContainer from StoreGate! key=" <<
m_containerKey <<
endmsg;
59 return StatusCode::FAILURE;
62 log << MSG::VERBOSE <<
"Now loop over container " <<
endmsg;
66 log << MSG::VERBOSE <<
" Get hardware ID " <<
endmsg;
70 log << MSG::VERBOSE <<
" chid = " << chid <<
endmsg;
72 const std::vector<short>& vSamples=digit->samples();
73 int nSamples=vSamples.size();
75 log << MSG::VERBOSE <<
" nSamples = " << nSamples <<
endmsg;
81 for(
int i=0; i<nSamples; i++) {
84 m_outfile <<
" G=" << digit->gain() << std::endl;
89 log << MSG::VERBOSE <<
" cellCounter = " << cellCounter <<
endmsg;
93 log << MSG::DEBUG <<
"Event " <<
m_count <<
" contains " << cellCounter <<
" channels" <<
endmsg;
95 return StatusCode::SUCCESS;
101 MsgStream log(msgSvc(), name());
104 log << MSG::INFO <<
"finalize ReadTBLArCalibDigits" <<
endmsg;
105 return StatusCode::SUCCESS;
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
Base class for LArDigits taken during calibration runs.
std::string m_containerKey
const LArOnlineID * m_onlineHelper
StatusCode execute(const EventContext &ctx)
Execute method.
ReadTBLArCalibDigits(const std::string &name, ISvcLocator *pSvcLocator)
Liquid Argon Calibration Digit Container .