CMS 3D CMS Logo

HcalShape.cc
Go to the documentation of this file.
2 
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 
const Shape & getShape(int shapeType) const
float at(double time) const
HcalPulseShapes::Shape shape_
Definition: HcalShape.h:23
void setShape(int shapeType)
Definition: HcalShape.cc:8
virtual double operator()(double time) const
Definition: HcalShape.cc:21
HcalShape()
Definition: HcalShape.cc:3
virtual double timeToRise() const
Definition: HcalShape.cc:16