CMS 3D CMS Logo

HcalPulseShape.h
Go to the documentation of this file.
1 #ifndef HcalAlgos_HcalPulseShape_h
2 #define HcalAlgos_HcalPulseShape_h
3 
4 #include <vector>
5 
7 public:
9  HcalPulseShape(const std::vector<double>&, unsigned);
10  void setNBin(int n);
11  void setShapeBin(int i, float f);
12  float operator()(double time) const;
13  float at(double time) const;
14  float integrate(double tmin, double tmax) const;
15  int nbins() const { return nbin_; }
16  std::vector<float> const& data() const { return shape_; }
17 
18 private:
19  std::vector<float> shape_;
20  int nbin_;
21 };
22 
23 #endif
HcalPulseShape::setNBin
void setNBin(int n)
Definition: HcalPulseShape.cc:8
mps_fire.i
i
Definition: mps_fire.py:428
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
HcalPulseShape::integrate
float integrate(double tmin, double tmax) const
Definition: HcalPulseShape.cc:32
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
muonTiming_cfi.tmin
tmin
Definition: muonTiming_cfi.py:24
HcalPulseShape::nbin_
int nbin_
Definition: HcalPulseShape.h:20
protons_cff.time
time
Definition: protons_cff.py:35
tmax
static const double tmax[3]
Definition: CastorTimeSlew.cc:7
HcalPulseShape::HcalPulseShape
HcalPulseShape()
Definition: HcalPulseShape.cc:3
HcalPulseShape::shape_
std::vector< float > shape_
Definition: HcalPulseShape.h:19
HcalPulseShape::nbins
int nbins() const
Definition: HcalPulseShape.h:15
HcalPulseShape
Definition: HcalPulseShape.h:6
HcalPulseShape::data
std::vector< float > const & data() const
Definition: HcalPulseShape.h:16
HcalPulseShape::operator()
float operator()(double time) const
Definition: HcalPulseShape.cc:18
HcalPulseShape::at
float at(double time) const
Definition: HcalPulseShape.cc:23
HcalPulseShape::setShapeBin
void setShapeBin(int i, float f)
Definition: HcalPulseShape.cc:13