File indexing completed on 2023-03-17 10:41:46
0001 #ifndef HcalAlgos_HcalShapeIntegrator_h
0002 #define HcalAlgos_HcalShapeIntegrator_h
0003
0004
0005
0006
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