CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/SimCalorimetry/EcalSimAlgos/interface/ESShape.h

Go to the documentation of this file.
00001 #ifndef EcalSimAlgos_ESShape_h
00002 #define EcalSimAlgos_ESShape_h
00003 
00004 #include "SimCalorimetry/CaloSimAlgos/interface/CaloVShape.h"
00005 
00006 /* \class ESShape
00007  * \brief preshower pulse-shape
00008  * 
00009  * Preshower pulse shape
00010  * - Gain = 1 : shape for low gain for data taking
00011  * - Gain = 2 : shape for high gain for calibration and low energy runs
00012  * 
00013  * Preshower three time samples happen at -5, 20 and 45 ns 
00014  *
00015  */                                                                                            
00016 class ESShape : public CaloVShape 
00017 {
00018   
00019  public:
00020   
00022   ESShape();
00024   ~ESShape(){}
00025   
00026   void setGain (const int gain) { theGain_ = gain; }
00027   virtual double operator () (double time) const;
00028   virtual double timeToRise()              const ;
00029   
00030   void display () const {}
00031 
00032  private:
00033 
00034   int theGain_;
00035 
00036 };
00037 
00038 #endif