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

Member Enumeration Documentation

◆ mode

Enumerator
peak 
deconvolution 

Definition at line 45 of file SiStripPulseShape.h.

45 { peak, deconvolution };

Constructor & Destructor Documentation

◆ SiStripPulseShape()

SiStripPulseShape::SiStripPulseShape ( )
inline

Definition at line 46 of file SiStripPulseShape.h.

46 : mode_(deconvolution) {}

◆ ~SiStripPulseShape()

virtual SiStripPulseShape::~SiStripPulseShape ( )
inlinevirtual

Definition at line 47 of file SiStripPulseShape.h.

47 {}

Member Function Documentation

◆ getMode()

mode SiStripPulseShape::getMode ( void  ) const
inline

Definition at line 49 of file SiStripPulseShape.h.

49 { return mode_; }

References mode_.

◆ getNormalizedValue()

double SiStripPulseShape::getNormalizedValue ( const double &  t) const
inline

Definition at line 50 of file SiStripPulseShape.h.

50  {
51  double parameters[5] = {0., -2.82, 0.066, 50, 20};
52  double time = t;
53  switch (mode_) {
54  case peak: {
55  return fpeak(&time, parameters);
56  }
57  case deconvolution: {
58  return fdeconv(&time, parameters);
59  }
60  }
61  }

References deconvolution, fdeconv(), fpeak(), mode_, peak, submitPVValidationJobs::t, and protons_cff::time.

◆ setMode()

void SiStripPulseShape::setMode ( const mode  theMode)
inline

Definition at line 48 of file SiStripPulseShape.h.

48 { mode_ = theMode; }

References mode_.

Member Data Documentation

◆ mode_

mode SiStripPulseShape::mode_
private

Definition at line 64 of file SiStripPulseShape.h.

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

BeamSpotPI::parameters
parameters
Definition: BeamSpotPayloadInspectorHelper.h:30
SiStripPulseShape::mode_
mode mode_
Definition: SiStripPulseShape.h:64
protons_cff.time
time
Definition: protons_cff.py:35
fpeak
double fpeak(double *x, double *par)
Definition: SiStripPulseShape.cc:66
SiStripPulseShape::peak
Definition: SiStripPulseShape.h:45
SiStripPulseShape::deconvolution
Definition: SiStripPulseShape.h:45
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
fdeconv
double fdeconv(double *x, double *par)
Definition: SiStripPulseShape.cc:101