36 larPedestal = *pedHandle;
39 if (larPedestal==
nullptr) {
41 <<
m_pedKey.key() <<
" from DetectorStore");
42 return StatusCode::FAILURE;
45 NTuple::Item<long> cellIndex,gain;
46 NTuple::Item<double> ped;
47 NTuple::Item<double> rms;
50 StatusCode
sc=
m_nt->addItem(
"icell",cellIndex,0,200000);
51 if (
sc!=StatusCode::SUCCESS)
53 return StatusCode::FAILURE;
56 sc=
m_nt->addItem(
"gain",gain,0,3);
57 if (
sc!=StatusCode::SUCCESS) {
59 return StatusCode::FAILURE;
63 sc=
m_nt->addItem(
"ped",ped,-1000.,5000.);
64 if (
sc!=StatusCode::SUCCESS) {
66 return StatusCode::FAILURE;
69 sc=
m_nt->addItem(
"rms",rms,0.,1e12);
70 if (
sc!=StatusCode::SUCCESS) {
72 return StatusCode::FAILURE;
76 unsigned cellCounter=0;
84 cellIndex = cellCounter;
86 ped=larPedestal->
pedestal(hwid,igain);
91 if (
sc!=StatusCode::SUCCESS) {
93 return StatusCode::FAILURE;
101 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
virtual float pedestal(const HWIdentifier &id, int gain) const =0
virtual float pedestalRMS(const HWIdentifier &id, int gain) const =0
access to RMS of Pedestal index by Identifier, and gain setting
Gaudi::Property< bool > m_isSC
const LArOnlineID_Base * m_onlineId
bool fillFromIdentifier(const HWIdentifier &id)
LArCond2NtupleBase(const std::string &name, ISvcLocator *pSvcLocator)
LArPedestals2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode stop()
SG::ReadCondHandleKey< ILArPedestal > m_pedKey