Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:20

0001 #ifndef CaloSimAlgos_CaloCachedShapeIntegrator_h
0002 #define CaloSimAlgos_CaloCachedShapeIntegrator_h
0003 
0004 /**  This class takes an existing Shape, and
0005      integrates it, summing up all the values,
0006      each nanosecond, up to the bunch spacing
0007 */
0008 
0009 #include "SimCalorimetry/CaloSimAlgos/interface/CaloVShape.h"
0010 #include <vector>
0011 
0012 class CaloCachedShapeIntegrator : public CaloVShape {
0013 public:
0014   CaloCachedShapeIntegrator(const CaloVShape *aShape);
0015 
0016   ~CaloCachedShapeIntegrator() override;
0017 
0018   double operator()(double startTime) const override;
0019   double timeToRise() const override;
0020 
0021 private:
0022   std::vector<double> v_;
0023   double timeToRise_;
0024 };
0025 
0026 #endif