25 if (
sc!=StatusCode::SUCCESS) {
27 <<
m_contKey <<
" from DetectorStore try ConditionsStore" );
28 const EventContext& ctx = Gaudi::Hive::currentContext();
33 <<
m_contKey <<
" from ConditionsStore as well" );
34 return StatusCode::FAILURE;
38 NTuple::Item<long> cellIndex;
39 NTuple::Item<float> rinj;
41 sc=
m_nt->addItem(
"icell",cellIndex,0,2000);
42 if (
sc!=StatusCode::SUCCESS)
44 return StatusCode::FAILURE;
48 sc=
m_nt->addItem(
"rinj",rinj,-1000.,2.);
49 if (
sc!=StatusCode::SUCCESS) {
51 return StatusCode::FAILURE;
60 return StatusCode::FAILURE;
68 msg(MSG::ERROR) <<
"Could not get LArOnlineID helper !" <<
endmsg;
69 return StatusCode::FAILURE;
78 unsigned cellCounter=0;
80 if ( cabling->isOnlineConnected(hwid)) {
82 cellIndex = cellCounter;
83 rinj = LArRinj->
Rinj(hwid);
85 if (
sc!=StatusCode::SUCCESS) {
87 return StatusCode::FAILURE;
94 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
const ServiceHandle< StoreGateSvc > & detStore() const
virtual const float & Rinj(const HWIdentifier &id) const =0
StoreGateSvc * m_detStore
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
const LArOnlineID_Base * m_onlineId
bool fillFromIdentifier(const HWIdentifier &id)
LArCond2NtupleBase(const std::string &name, ISvcLocator *pSvcLocator)
Helper for the Liquid Argon Calorimeter cell identifiers.
LArRinj2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode stop()
virtual StatusCode initialize()
SG::ReadCondHandleKey< LArRinjComplete > m_contKey