20#include "Identifier/Identifier.h"
23 const std::string& name,
24 const IInterface* parent)
31 declareInterface<TBBeamQualityTool>(
this);
44 MsgStream log(msgSvc(),name());
91 log << MSG::ERROR <<
"unable to obtain hec id " <<
endmsg;
92 return StatusCode::FAILURE;
96 log << MSG::ERROR <<
"unable to obtain emec id " <<
endmsg;
97 return StatusCode::FAILURE;
102 log << MSG::ERROR <<
"unable to obtain fcal id " <<
endmsg;
103 return StatusCode::FAILURE;
108 log<<MSG::DEBUG<<
"Got to before p_toolSvc"<<
endmsg;
139 return StatusCode::SUCCESS;
145 MsgStream log(msgSvc(),name());
148 <<
"TBBeamQualityEMFractionTool: Started Accept"
155 log << MSG::DEBUG <<
" called for: "<<particles.size()<<
" particles"<<
endmsg;
171 if (
sc.isFailure()) {
172 log << MSG::ERROR <<
"couldn't get the calo cells from storegate" <<
endmsg;
173 log << MSG::ERROR <<
"here is what is in storegate: " <<
evtStore()->dump() <<
endmsg;
174 return StatusCode::FAILURE;
177 for (
const CaloCell* cell_ptr : *cellContainer) {
191 if (sampling >= 0 && sampling <
m_Mlayer.size())
192 m_Mlayer[sampling]+=cell_ptr->energy();
212 return StatusCode::SUCCESS;
215 return StatusCode::FAILURE;
219 return StatusCode::FAILURE;
#define ATH_CHECK
Evaluate an expression and check for errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
Container class for CaloCell.
Helper class for offline cell identifiers.
const LArFCAL_ID * fcal_idHelper() const
access to FCAL idHelper
CaloSampling::CaloSample CaloSample
const LArEM_ID * em_idHelper() const
access to EM idHelper
const LArHEC_ID * hec_idHelper() const
access to HEC idHelper
Data object for each calorimeter readout cell.
This class groups all DetDescr information related to a CaloCell.
CaloCell_ID::CaloSample getSampling() const
cell sampling