CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloShapeIntegrator.cc
Go to the documentation of this file.
2 
4  m_shape ( aShape )
5 {
6 }
7 
9 {
10 }
11 
12 double
14 {
15  return m_shape->timeToRise() ;
16 }
17 
18 double
19 CaloShapeIntegrator::operator() ( double startTime ) const
20 {
21  double sum = 0.;
22 
23  double time = startTime + 0.5 ;
24 
25  for( unsigned istep = 0; istep < BUNCHSPACE ; ++istep )
26  {
27  sum += (*m_shape)( time ) ;
28  time = time + 1.0 ;
29  }
30  return sum;
31 }
32 
33 
CaloShapeIntegrator(const CaloVShape *aShape)
Electronic response of the preamp.
Definition: CaloVShape.h:11
virtual double timeToRise() const
virtual double timeToRise() const =0
const CaloVShape * m_shape
virtual double operator()(double startTime) const