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 // $Id: SiStripPulseShape.h,v 1.1 2008/07/07 16:24:06 delaer Exp $
15 //
16 //
17 
18 #ifndef SiStripPulseShape_h_
19 #define SiStripPulseShape_h_
20 
21 double fpeak(double *x, double *par);
22 
23 double fdeconv(double *x, double *par);
24 
25 double fpeak_convoluted(double *x, double *par);
26 
27 double fdeconv_convoluted(double *x, double *par);
28 
30 {
31  public:
34  virtual ~SiStripPulseShape() {}
35  inline void setMode(const mode theMode) { mode_=theMode; }
36  inline mode getMode() const { return mode_; }
37  inline double getNormalizedValue(const double& t) const
38  {
39  double parameters[5]={0.,-2.82,0.066,50,20};
40  double time = t;
41  switch(mode_) {
42  case peak:
43  {
44  return fpeak_convoluted(&time,parameters);
45  }
46  case deconvolution:
47  {
48  return fdeconv_convoluted(&time,parameters);
49  }
50  }
51  }
52 
53  private:
55 };
56 
57 #endif
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)
virtual ~SiStripPulseShape()
double fdeconv(double *x, double *par)
double fpeak(double *x, double *par)
x
Definition: VDTMath.h:216