Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CaloSimAlgos_CaloShapeIntegrator_h
0002 #define CaloSimAlgos_CaloShapeIntegrator_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 
0011 class CaloShapeIntegrator : public CaloVShape {
0012 public:
0013   static constexpr int BUNCHSPACE = 25;
0014 
0015   CaloShapeIntegrator(const CaloVShape *aShape);
0016 
0017   ~CaloShapeIntegrator() override;
0018 
0019   double operator()(double startTime) const override;
0020   double timeToRise() const override;
0021 
0022 private:
0023   const CaloVShape *m_shape;
0024 };
0025 
0026 #endif