CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripPulseShape.h
Go to the documentation of this file.
1 // Class: SiStripPulseShape
2 //
11 //
12 // Original Author: Christophe Delaere
13 // Created: Thu Nov 5 17:02:15 CEST 2006
14 //
15 //
16 
17 #ifndef SiStripPulseShape_h_
18 #define SiStripPulseShape_h_
19 
20 double fpeak(double *x, double *par);
21 
22 double fdeconv(double *x, double *par);
23 
24 double fpeak_convoluted(double *x, double *par);
25 
26 double fdeconv_convoluted(double *x, double *par);
27 
29 {
30  public:
33  virtual ~SiStripPulseShape() {}
34  inline void setMode(const mode theMode) { mode_=theMode; }
35  inline mode getMode() const { return mode_; }
36  inline double getNormalizedValue(const double& t) const
37  {
38  double parameters[5]={0.,-2.82,0.066,50,20};
39  double time = t;
40  switch(mode_) {
41  case peak:
42  {
43  return fpeak_convoluted(&time,parameters);
44  }
45  case deconvolution:
46  {
47  return fdeconv_convoluted(&time,parameters);
48  }
49  }
50  }
51 
52  private:
54 };
55 
56 #endif
tuple t
Definition: tree.py:139
dictionary parameters
Definition: Parameters.py:2
mode getMode() const
double fdeconv_convoluted(double *x, double *par)
double getNormalizedValue(const double &t) const
void setMode(const mode theMode)
double fpeak_convoluted(double *x, double *par)
T x() const
Cartesian x coordinate.
virtual ~SiStripPulseShape()
double fdeconv(double *x, double *par)
double fpeak(double *x, double *par)