Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef EcalSimAlgos_ESShape_h
0002 #define EcalSimAlgos_ESShape_h
0003 
0004 #include "SimCalorimetry/CaloSimAlgos/interface/CaloVShape.h"
0005 
0006 /* \class ESShape
0007  * \brief preshower pulse-shape
0008  * 
0009  * Preshower pulse shape
0010  * - Gain = 1 : shape for low gain for data taking
0011  * - Gain = 2 : shape for high gain for calibration and low energy runs
0012  * 
0013  * Preshower three time samples happen at -5, 20 and 45 ns 
0014  *
0015  */
0016 class ESShape : public CaloVShape {
0017 public:
0018   /// ctor
0019   ESShape();
0020   /// dtor
0021   ~ESShape() override {}
0022 
0023   void setGain(const int gain) { theGain_ = gain; }
0024   double operator()(double time) const override;
0025   double timeToRise() const override;
0026 
0027   void display() const {}
0028 
0029 private:
0030   int theGain_;
0031 };
0032 
0033 #endif