CMS 3D CMS Logo

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 44 of file SiStripPulseShape.h.

Member Enumeration Documentation

Enumerator
peak 
deconvolution 

Definition at line 47 of file SiStripPulseShape.h.

Constructor & Destructor Documentation

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

Definition at line 49 of file SiStripPulseShape.h.

49 {}

Member Function Documentation

mode SiStripPulseShape::getMode ( void  ) const
inline

Definition at line 51 of file SiStripPulseShape.h.

References mode_.

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

Definition at line 52 of file SiStripPulseShape.h.

References fdeconv(), fpeak(), mode_, peak, lumiQTWidget::t, and ntuplemaker::time.

53  {
54  double parameters[5]={0.,-2.82,0.066,50,20};
55  double time = t;
56  switch(mode_) {
57  case peak:
58  {
59  return fpeak(&time,parameters);
60  }
61  case deconvolution:
62  {
63  return fdeconv(&time,parameters);
64  }
65  }
66  }
double fdeconv(double *x, double *par)
double fpeak(double *x, double *par)
void SiStripPulseShape::setMode ( const mode  theMode)
inline

Definition at line 50 of file SiStripPulseShape.h.

References mode_.

50 { mode_=theMode; }

Member Data Documentation

mode SiStripPulseShape::mode_
private

Definition at line 69 of file SiStripPulseShape.h.

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