|
ATLAS Offline Software
|
Go to the documentation of this file.
18 const std::vector<std::vector<float> >& vShape,
19 const std::vector<std::vector<float> >& vShapeDer,
20 float timeOffset,
float timeBinWidth)
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)
put payload in persistent data
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const
static const std::vector< float > m_empty
virtual ~LArShapeComplete()
virtual float timeOffset(const HWIdentifier &CellID, int gain) const
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
get data with online identifier
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const
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.)
c-struct reproducing the structure of the persistent data
virtual ShapeRef_t ShapeDer(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const override
Subset::ConstReference ConstReference
virtual ShapeRef_t Shape(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const override
Proxy for accessing a range of float values like a vector.