18 const std::vector<std::vector<float> >& vShape,
19 const std::vector<std::vector<float> >& vShapeDer,
36 if (!t.isValid() || tbin<0 || tbin>=(
int)t.shapeSize())
38 return t.shape (tbin);
51 if (!t.isValid() || tbin<0 || tbin>=(
int)t.shapeDerSize())
53 return t.shapeDer (tbin);
60 if (gain<0 || gain>3) {
61 std::cout <<
"ERROR! LArShapeComplete::timeOffset time offset called for gain " << gain << std::endl;
67 if (!t.isValid())
return 0;
68 return t.timeOffset();
73 if (gain<0 || gain>3) {
74 std::cout <<
"ERROR! LArShapeComplete::nTimeBins time offset called for gain " << gain << std::endl;
78 if (!t.isValid())
return 0;
84 if (gain<0 || gain>3) {
85 std::cout <<
"ERROR! LArShapeComplete::timeBinWidth time offset called for gain " << gain << std::endl;
89 if (!t.isValid())
return 0;
90 return t.timeBinWidth();
void setPdata(const HWIdentifier id, const LArShapeP2 &payload, unsigned int gain=0)
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
Subset::ConstReference ConstReference
void set(const HWIdentifier &CellID, int gain, const std::vector< std::vector< float > > &vShape, const std::vector< std::vector< float > > &vShapeDer, float timeOffset=0, float timeBinWidth=25./24.)
virtual ~LArShapeComplete()
virtual ShapeRef_t ShapeDer(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const override
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
virtual ShapeRef_t Shape(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const override
static const std::vector< float > m_empty
ILArShape::ShapeRef_t ShapeRef_t
c-struct reproducing the structure of the persistent data