CMS 3D CMS Logo

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 
9 double CaloShapeIntegrator::operator()(double startTime) const {
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.h
CaloShapeIntegrator::CaloShapeIntegrator
CaloShapeIntegrator(const CaloVShape *aShape)
Definition: CaloShapeIntegrator.cc:3
CaloShapeIntegrator::~CaloShapeIntegrator
~CaloShapeIntegrator() override
Definition: CaloShapeIntegrator.cc:5
CaloVShape::timeToRise
virtual double timeToRise() const =0
CaloShapeIntegrator::m_shape
const CaloVShape * m_shape
Definition: CaloShapeIntegrator.h:23
CaloVShape
Electronic response of the preamp.
Definition: CaloVShape.h:11
ntuplemaker.time
time
Definition: ntuplemaker.py:310
CaloShapeIntegrator::operator()
double operator()(double startTime) const override
Definition: CaloShapeIntegrator.cc:9
CaloShapeIntegrator::timeToRise
double timeToRise() const override
Definition: CaloShapeIntegrator.cc:7
CaloShapeIntegrator::BUNCHSPACE
Definition: CaloShapeIntegrator.h:13