test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ESShape.h
Go to the documentation of this file.
1 #ifndef EcalSimAlgos_ESShape_h
2 #define EcalSimAlgos_ESShape_h
3 
5 
6 /* \class ESShape
7  * \brief preshower pulse-shape
8  *
9  * Preshower pulse shape
10  * - Gain = 1 : shape for low gain for data taking
11  * - Gain = 2 : shape for high gain for calibration and low energy runs
12  *
13  * Preshower three time samples happen at -5, 20 and 45 ns
14  *
15  */
16 class ESShape : public CaloVShape
17 {
18 
19  public:
20 
22  ESShape();
25 
26  void setGain (const int gain) { theGain_ = gain; }
27  virtual double operator () (double time) const;
28  virtual double timeToRise() const ;
29 
30  void display () const {}
31 
32  private:
33 
34  int theGain_;
35 
36 };
37 
38 #endif
virtual double operator()(double time) const
Definition: ESShape.cc:7
virtual double timeToRise() const
Definition: ESShape.cc:25
void setGain(const int gain)
Definition: ESShape.h:26
ESShape()
ctor
Definition: ESShape.cc:4
Electronic response of the preamp.
Definition: CaloVShape.h:11
void display() const
Definition: ESShape.h:30
~ESShape()
dtor
Definition: ESShape.h:24
int theGain_
Definition: ESShape.h:34