CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
SiStripPulseShape Class Reference

#include <myTestArea/SiStripPulseShape/src/SiStripPulseShape.h>

Public Types

enum  mode { peak, deconvolution }
 

Public Member Functions

mode getMode () const
 
double getNormalizedValue (const double &t) const
 
void setMode (const mode theMode)
 
 SiStripPulseShape ()
 
virtual ~SiStripPulseShape ()
 

Private Attributes

mode mode_
 

Detailed Description

Description: analog pulse shape at the ouput of the APV.

Implementation: This class allows to access the pulse shape at the APV. This is usefull to take into account timing effects in the tracker.

Definition at line 29 of file SiStripPulseShape.h.

Member Enumeration Documentation

Enumerator
peak 
deconvolution 

Definition at line 32 of file SiStripPulseShape.h.

Constructor & Destructor Documentation

SiStripPulseShape::SiStripPulseShape ( )
inline
virtual SiStripPulseShape::~SiStripPulseShape ( )
inlinevirtual

Definition at line 34 of file SiStripPulseShape.h.

34 {}

Member Function Documentation

mode SiStripPulseShape::getMode ( void  ) const
inline

Definition at line 36 of file SiStripPulseShape.h.

References mode_.

36 { return mode_; }
double SiStripPulseShape::getNormalizedValue ( const double &  t) const
inline

Definition at line 37 of file SiStripPulseShape.h.

References deconvolution, fdeconv_convoluted(), fpeak_convoluted(), mode_, Parameters::parameters, peak, lumiQTWidget::t, and cond::rpcobgas::time.

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  }
dictionary parameters
Definition: Parameters.py:2
double fdeconv_convoluted(double *x, double *par)
double fpeak_convoluted(double *x, double *par)
void SiStripPulseShape::setMode ( const mode  theMode)
inline

Definition at line 35 of file SiStripPulseShape.h.

References mode_.

35 { mode_=theMode; }

Member Data Documentation

mode SiStripPulseShape::mode_
private

Definition at line 54 of file SiStripPulseShape.h.

Referenced by getMode(), getNormalizedValue(), and setMode().