9#include "GaudiKernel/ThreadLocalContext.h"
23 m_ntTitle=
"Optimal Filtering Coefficients";
29 return StatusCode::SUCCESS;
33 const EventContext& ctx = Gaudi::Hive::currentContext();
36 NTuple::Item<long> gain, phase, nSamples;
37 NTuple::Item<float> timeOffset, phasetime;
38 NTuple::Array<float> OFCa, OFCb;
57 larOFC=larOFCHdl.
cptr();
73 return StatusCode::FAILURE;
76 unsigned cellCounter=0;
81 igain<maxgain ; ++igain )
84 if ( !cabling->isOnlineConnected(chid))
continue;
86 << chid.get_compact() << MSG::dec );
87 for (
unsigned iphase=0;iphase<larOFC->
nTimeBins(chid,igain);iphase++) {
90 if (!ofc_a.size())
break;
94 phase = (long)iphase ;
95 nSamples=ofc_a.size();
96 for (
int k=0;k<nSamples;k++ ) {
110 ATH_MSG_INFO(
"Total number of cells = " << cellCounter );
112 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
virtual OFCRef_t OFC_b(const HWIdentifier &id, int gain, int tbin=0) const =0
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const =0
virtual OFCRef_t OFC_a(const HWIdentifier &id, int gain, int tbin=0) const =0
access to OFCs by online ID, gain, and tbin (!=0 for testbeam)
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const =0
LArVectorProxy OFCRef_t
This class defines the interface for accessing Optimal Filtering coefficients for each channel provid...
virtual float timeOffset(const HWIdentifier &CellID, 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)
LArOFC2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode stop() override
SG::ReadCondHandleKey< ILArOFC > m_ofcKey
virtual StatusCode initialize() override
const_pointer_type cptr()
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring