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
// 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_); }
HcalShape.h
HcalPulseShapes::getShape
const Shape & getShape(int shapeType) const
Definition:
HcalPulseShapes.cc:448
HcalPulseShape::at
float at(double time) const
Definition:
HcalPulseShape.cc:23
HcalShape::shape_
HcalPulseShapes::Shape shape_
Definition:
HcalShape.h:23
HcalShape::setShape
void setShape(int shapeType)
Definition:
HcalShape.cc:7
HcalPulseShapes
Definition:
HcalPulseShapes.h:21
HcalShape::timeToRise
double timeToRise() const override
Definition:
HcalShape.cc:14
HcalShape::operator()
double operator()(double time) const override
Definition:
HcalShape.cc:16
HcalShape::HcalShape
HcalShape()
Definition:
HcalShape.cc:3
Generated for CMSSW Reference Manual by
1.8.11