Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimCalorimetry
HcalSimAlgos
src
HcalShape.cc
Go to the documentation of this file.
1
#include "
SimCalorimetry/HcalSimAlgos/interface/HcalShape.h
"
2
3
HcalShape::HcalShape
()
4
// : shape_(HcalPulseShapes().hbShape())
5
{
6
// no more defual shape is defined (since cmssw 5x)
7
}
8
9
void
HcalShape::setShape
(
int
shapeType)
10
{
11
// keep pulse shape for HPD, HO SiPM, HF PMT, depending on shapeType
12
// (101,102 etc.)
13
// std::cout << "- HcalShape::setShape for type " << shapeType << std::endl;
14
shape_
=
HcalPulseShapes
().
getShape
(shapeType);
15
}
16
17
double
HcalShape::timeToRise
()
const
18
{
19
return
0.;
20
}
21
22
double
HcalShape::operator ()
(
double
time_)
const
23
{
24
return
shape_
.
at
(time_);
25
}
26
27
HcalShape.h
HcalPulseShapes::getShape
const Shape & getShape(int shapeType) const
Definition:
HcalPulseShapes.cc:444
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:9
HcalPulseShapes
Definition:
HcalPulseShapes.h:18
HcalShape::operator()
virtual double operator()(double time) const
Definition:
HcalShape.cc:22
HcalShape::HcalShape
HcalShape()
Definition:
HcalShape.cc:3
HcalShape::timeToRise
virtual double timeToRise() const
Definition:
HcalShape.cc:17
Generated for CMSSW Reference Manual by
1.8.5