test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalShape.cc
Go to the documentation of this file.
2 
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 
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:9
virtual double operator()(double time) const
Definition: HcalShape.cc:22
HcalShape()
Definition: HcalShape.cc:3
virtual double timeToRise() const
Definition: HcalShape.cc:17