CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/SimCalorimetry/HcalSimAlgos/src/HcalShape.cc

Go to the documentation of this file.
00001 #include "SimCalorimetry/HcalSimAlgos/interface/HcalShape.h"
00002   
00003 HcalShape::HcalShape()
00004 // : shape_(HcalPulseShapes().hbShape())
00005 {
00006    // no more defual shape is defined (since cmssw 5x)
00007 }
00008 
00009 void HcalShape::setShape(int shapeType)
00010 {
00011    // keep pulse shape for HPD, HO SiPM, HF PMT, depending on shapeType 
00012   // (101,102 etc.)
00013  //  std::cout << "- HcalShape::setShape for type " << shapeType << std::endl;
00014    shape_=HcalPulseShapes().getShape(shapeType);
00015 }
00016 
00017 double HcalShape::timeToRise() const 
00018 {
00019    return 0.;
00020 }
00021 
00022 double HcalShape::operator () (double time_) const
00023 {
00024   return shape_.at(time_);
00025 }
00026 
00027