34 const EventContext& ctx = Gaudi::Hive::currentContext();
36 NTuple::Item<long> gain, phase, nSamples;
37 NTuple::Item<float> timeOffset, phasetime;
38 NTuple::Array<float> Shape, ShapeDer;
58 larShape=larShapeComplete;
66 larShape=*shapeHandle;
83 return StatusCode::FAILURE;
87 unsigned cellCounter=0;
92 if (!cabling->isOnlineConnected(chid))
continue;
94 if (larShapeComplete) nPhase=larShapeComplete->
nTimeBins(chid,gain);
95 for (
unsigned iphase=0;iphase<nPhase;iphase++) {
96 ATH_MSG_VERBOSE(
"Dumping Shape for channel " <<
m_onlineId->channel_name(chid) <<
", gain " << gain <<
", phase " << iphase);
101 nSamples=shape.size();
102 for (
int k=0;k<nSamples;k++ ) {
103 Shape[k] = shape[k] ;
104 ShapeDer[k] = shapeder[k] ;
106 if (larShapeComplete) {
107 timeOffset = larShapeComplete->
timeOffset(chid,igain);
108 phasetime = phase*larShapeComplete->
timeBinWidth(chid,igain);
109 phase = (long)iphase ;
118 ATH_MSG_INFO(
"Total number of cells = " << cellCounter );
120 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
LArVectorProxy ShapeRef_t
This class defines the interface for accessing Shape (Nsample variable, Dt = 25 ns fixed) @stereotype...
virtual ShapeRef_t Shape(const HWIdentifier &id, int gain, int tbin=0, int mode=0) const =0
virtual ShapeRef_t ShapeDer(const HWIdentifier &id, int gain, int tbin=0, int mode=0) 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)
virtual StatusCode stop()
SG::ReadCondHandleKey< ILArShape > m_contKey
LArShape2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
This class implements the ILArShape interface.
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const
virtual float timeOffset(const HWIdentifier &CellID, int gain) const