SimCalorimetry
HcalSimAlgos
src
HcalShape.cc
Go to the documentation of this file.
1
#include "
SimCalorimetry/HcalSimAlgos/interface/HcalShape.h
"
2
3
HcalShape::HcalShape
() {
4
// no default shape is defined (since cmssw 5x)
5
}
6
7
void
HcalShape::setShape
(
int
shapeType) {
8
// keep pulse shape for HPD, HO SiPM, HF PMT, depending on shapeType
9
// (101,102 etc.)
10
// std::cout << "- HcalShape::setShape for type " << shapeType << std::endl;
11
shape_
=
HcalPulseShapes
().
getShape
(shapeType);
12
}
13
14
double
HcalShape::timeToRise
()
const
{
return
0.; }
15
16
double
HcalShape::operator()
(
double
time_)
const
{
return
shape_
.
at
(time_); }
HcalPulseShapes
Definition:
HcalPulseShapes.h:22
HcalShape::operator()
double operator()(double time) const override
Definition:
HcalShape.cc:16
HcalShape::setShape
void setShape(int shapeType)
Definition:
HcalShape.cc:7
HcalShape::timeToRise
double timeToRise() const override
Definition:
HcalShape.cc:14
HcalPulseShapes::getShape
const Shape & getShape(int shapeType) const
Definition:
HcalPulseShapes.cc:500
HcalShape::shape_
HcalPulseShapes::Shape shape_
Definition:
HcalShape.h:23
HcalPulseShape::at
float at(double time) const
Definition:
HcalPulseShape.cc:23
HcalShape.h
HcalShape::HcalShape
HcalShape()
Definition:
HcalShape.cc:3
Generated for CMSSW Reference Manual by
1.8.16