CMS 3D CMS Logo

HcalShape.cc
Go to the documentation of this file.
2 
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_); }
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:7
double timeToRise() const override
Definition: HcalShape.cc:14
double operator()(double time) const override
Definition: HcalShape.cc:16
HcalShape()
Definition: HcalShape.cc:3