27 if (
sc!=StatusCode::SUCCESS) {
30 return StatusCode::FAILURE;
33 NTuple::Item<long> cellIndex,gain;
34 NTuple::Item<float> noise;
36 sc=
m_nt->addItem(
"icell",cellIndex,0,2000);
37 if (
sc!=StatusCode::SUCCESS)
39 return StatusCode::FAILURE;
42 sc=
m_nt->addItem(
"gain",gain,0,3);
43 if (
sc!=StatusCode::SUCCESS)
45 return StatusCode::FAILURE;
49 sc=
m_nt->addItem(
"noise",noise);
50 if (
sc!=StatusCode::SUCCESS)
52 return StatusCode::FAILURE;
59 return StatusCode::FAILURE;
62 unsigned cellCounter=0;
65 if ( cabling->isOnlineConnected(hwid)) {
67 cellIndex = cellCounter;
69 noise = larNoise->
noise(hwid,igain);
71 if (
sc!=StatusCode::SUCCESS) {
73 return StatusCode::FAILURE;
81 return StatusCode::SUCCESS;
#define ATH_MSG_WARNING(x)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual const float & noise(const HWIdentifier &id, int gain) 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)
virtual StatusCode stop()
LArNoise2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)