25 return StatusCode::SUCCESS;
30 const EventContext& ctx = Gaudi::Hive::currentContext();
32 NTuple::Item<long> cellIndex;
33 NTuple::Item<int> ofcbin;
35 StatusCode
sc=
m_nt->addItem(
"icell",cellIndex,0,2000);
36 if (
sc!=StatusCode::SUCCESS)
38 return StatusCode::FAILURE;
42 sc=
m_nt->addItem(
"OFCBin",ofcbin,0,50);
43 if (
sc!=StatusCode::SUCCESS) {
45 return StatusCode::FAILURE;
61 return StatusCode::FAILURE;
66 LArbin = ofcbinHdl.
cptr();
69 <<
m_binKey <<
" from ConditionsStore" );
70 return StatusCode::FAILURE;
73 unsigned cellCounter=0;
75 if ( cabling->isOnlineConnected(hwid)) {
77 cellIndex = cellCounter;
78 ofcbin = LArbin->
bin(hwid,0);
80 if (
sc!=StatusCode::SUCCESS) {
82 return StatusCode::FAILURE;
89 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
virtual const int & bin(const HWIdentifier &id, const int &gain) const =0
Gaudi::Property< bool > m_isSC
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingSCKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
const LArOnlineID_Base * m_onlineId
bool fillFromIdentifier(const HWIdentifier &id)
LArCond2NtupleBase(const std::string &name, ISvcLocator *pSvcLocator)
LArOFCBin2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadCondHandleKey< ILArOFCBin > m_binKey
virtual StatusCode stop() override
virtual StatusCode initialize() override
const_pointer_type cptr()