Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:11

0001 #ifndef HcalAlgos_HcalPulseShape_h
0002 #define HcalAlgos_HcalPulseShape_h
0003 
0004 #include <vector>
0005 
0006 class HcalPulseShape {
0007 public:
0008   HcalPulseShape();
0009   HcalPulseShape(const std::vector<double>&, unsigned);
0010   void setNBin(int n);
0011   void setShapeBin(int i, float f);
0012   float operator()(double time) const;
0013   float at(double time) const;
0014   float integrate(double tmin, double tmax) const;
0015   int nbins() const { return nbin_; }
0016   std::vector<float> const& data() const { return shape_; }
0017 
0018 private:
0019   std::vector<float> shape_;
0020   int nbin_;
0021 };
0022 
0023 #endif