Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:31

0001 #include "SimCalorimetry/HcalSimAlgos/interface/HcalShape.h"
0002 
0003 HcalShape::HcalShape() {
0004   // no default shape is defined (since cmssw 5x)
0005 }
0006 
0007 void HcalShape::setShape(int shapeType) {
0008   // keep pulse shape for HPD, HO SiPM, HF PMT, depending on shapeType
0009   // (101,102 etc.)
0010   //  std::cout << "- HcalShape::setShape for type " << shapeType << std::endl;
0011   shape_ = HcalPulseShapes().getShape(shapeType);
0012 }
0013 
0014 double HcalShape::timeToRise() const { return 0.; }
0015 
0016 double HcalShape::operator()(double time_) const { return shape_.at(time_); }