37 NTuple::Item<long> cellIndex;
38 NTuple::Item<float> fsampl;
40 sc=
m_nt->addItem(
"icell",cellIndex,0,2000);
41 if (
sc!=StatusCode::SUCCESS)
43 return StatusCode::FAILURE;
46 sc=
m_nt->addItem(
"fsampl",fsampl);
47 if (
sc!=StatusCode::SUCCESS)
49 return StatusCode::FAILURE;
56 return StatusCode::FAILURE;
59 unsigned cellCounter=0;
61 if ( cabling->isOnlineConnected(hwid)) {
63 cellIndex = cellCounter;
64 fsampl = larfSampl->
FSAMPL(hwid);
66 if (
sc!=StatusCode::SUCCESS) {
68 return StatusCode::FAILURE;
75 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 & FSAMPL(const HWIdentifier &id) const =0
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
const LArOnlineID_Base * m_onlineId
bool fillFromIdentifier(const HWIdentifier &id)
LArCond2NtupleBase(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode stop()
SG::ReadCondHandleKey< ILArfSampl > m_contKey
LArfSampl2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)