Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HcalAlgos_HcalShapeIntegrator_h
0002 #define HcalAlgos_HcalShapeIntegrator_h
0003 
0004 /**  This class takes an existing Shape, and
0005      integrates it, summing up all the values,
0006      each nanosecond
0007 */
0008 
0009 #include "CalibCalorimetry/HcalAlgos/interface/HcalPulseShapes.h"
0010 #include <vector>
0011 
0012 class HcalShapeIntegrator {
0013 public:
0014   HcalShapeIntegrator(const HcalPulseShapes::Shape* aShape);
0015   float operator()(double startTime, double stopTime) const;
0016 
0017 private:
0018   float at(double time) const;
0019 
0020   int nbin_;
0021   std::vector<float> v_;
0022 };
0023 
0024 #endif