CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
void setNBin(int n)
void setShapeBin(int i, float f)
float at(double time) const
float integrate(double tmin, double tmax) const
int nbins() const
std::vector< float > shape_
static const double tmax[3]
std::vector< float > const & data() const
float operator()(double time) const