PandaRoot
PndMvdCalcTot Class Reference

Class to calculate the time over threshold. More...

#include <PndMvdCalcTot.h>

Public Member Functions

 PndMvdCalcTot ()
 Default constructor. More...
 
 PndMvdCalcTot (Double_t tr, Double_t a, Double_t threshold, Double_t clockfrequency)
 Main constructor. More...
 
 ~PndMvdCalcTot ()
 Destructor. More...
 
void SetStartOffset ()
 
Double_t GetTot (Double_t fcharge)
 
void SetParameter (Double_t tr, Double_t a, Double_t threshold)
 
Double_t GetPileUpTime (Double_t fcharge)
 

Detailed Description

Class to calculate the time over threshold.

Author
D.-L.Pohl d.poh.nosp@m.l@fz.nosp@m.-juel.nosp@m.ich..nosp@m.de

This class calculates the time over threshold by using the charge of a pixel/strip. To calculate the TOT a simple capacitor model (integrator) is used. The rising time tr [ns] is assumed ti be constant. This leads to a rising straight line. A constant current unloads the capacitor with a ratio of: a [e/ns]. The distance between the points of intersection between the resulting triangle and the threshold line is the TOT.

q | | /\ a | / \ |—/-------—------------— threshold | / \ ----------------------------— q = 0 (charge) | tr| t[ns] <- TOT ->

Definition at line 32 of file PndMvdCalcTot.h.

Constructor & Destructor Documentation

◆ PndMvdCalcTot() [1/2]

PndMvdCalcTot::PndMvdCalcTot ( )
inline

Default constructor.

Definition at line 35 of file PndMvdCalcTot.h.

References SetStartOffset().

36  {
37  ftr = 100.;
38  fa = 60.;
39  fthreshold = 3000;
40  fclockfrequency = 50.;
41  ftimestep = 1. / fclockfrequency * 1000.;
43  LOG(info) << " <PndMvdCalcTot::PndMvdCalcTot()>: default constructor used!";
44  };
void SetStartOffset()

◆ PndMvdCalcTot() [2/2]

PndMvdCalcTot::PndMvdCalcTot ( Double_t  tr,
Double_t  a,
Double_t  threshold,
Double_t  clockfrequency 
)
inline

Main constructor.

Definition at line 47 of file PndMvdCalcTot.h.

References SetStartOffset().

48  {
49  ftr = tr;
50  fa = a;
51  fthreshold = threshold;
52  fclockfrequency = clockfrequency;
53  ftimestep = 1. / fclockfrequency * 1000.;
55  };
void SetStartOffset()

◆ ~PndMvdCalcTot()

PndMvdCalcTot::~PndMvdCalcTot ( )
inline

Destructor.

Definition at line 58 of file PndMvdCalcTot.h.

References GetPileUpTime(), GetTot(), SetParameter(), and SetStartOffset().

58 {};

Member Function Documentation

◆ GetPileUpTime()

Double_t PndMvdCalcTot::GetPileUpTime ( Double_t  fcharge)

Referenced by ~PndMvdCalcTot().

◆ GetTot()

Double_t PndMvdCalcTot::GetTot ( Double_t  fcharge)

Referenced by ~PndMvdCalcTot().

◆ SetParameter()

void PndMvdCalcTot::SetParameter ( Double_t  tr,
Double_t  a,
Double_t  threshold 
)

Referenced by ~PndMvdCalcTot().

◆ SetStartOffset()

void PndMvdCalcTot::SetStartOffset ( )

Referenced by PndMvdCalcTot(), and ~PndMvdCalcTot().


The documentation for this class was generated from the following file: