SimCalorimetry
CaloSimAlgos
src
CaloShapeIntegrator.cc
Go to the documentation of this file.
1
#include "
SimCalorimetry/CaloSimAlgos/interface/CaloShapeIntegrator.h
"
2
3
CaloShapeIntegrator::CaloShapeIntegrator
(
const
CaloVShape
*aShape) : m_shape(aShape) {}
4
5
CaloShapeIntegrator::~CaloShapeIntegrator
() {}
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
protons_cff.time
time
Definition:
protons_cff.py:35
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
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
Generated for CMSSW Reference Manual by
1.8.16