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