CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CaloShapeIntegrator.cc
Go to the documentation of this file.
2 
3 CaloShapeIntegrator::CaloShapeIntegrator(const CaloVShape *aShape) : m_shape(aShape) {}
4 
6 
7 double CaloShapeIntegrator::timeToRise() const { return m_shape->timeToRise(); }
8 
10  double sum = 0.;
11 
12  double time = startTime + 0.5;
13 
14  for (unsigned istep = 0; istep < BUNCHSPACE; ++istep) {
15  sum += (*m_shape)(time);
16  time = time + 1.0;
17  }
18  return sum;
19 }
CaloShapeIntegrator(const CaloVShape *aShape)
double timeToRise() const override
Electronic response of the preamp.
Definition: CaloVShape.h:11
virtual double timeToRise() const =0
const CaloVShape * m_shape
double operator()(double startTime) const override