FairRoot/PandaRoot
PndSdsTimeWalkCorrSimple.h
Go to the documentation of this file.
1 /*
2  * PndSdsTimeWalkCorrSimple.h
3  *
4  * Created on: Aug 26, 2010
5  * Author: esch
6  *
7  * This class calculates the TimeWalkCorrection from TOT time
8  * using a triangular model of the signal
9  * (see PndSdsTotChargeConversion)
10  * _____________________________________________
11  * t_r*m-Q_thr-t_tot*m | / t_r*m-Q_thr-t_tot*m \ 2 |
12  * Q(tot) = - --------------------- + \ || ------------------- | + t_r*Q_thr*m
13  * 2 \| \ 2 /
14  * Q_thr
15  * t_tw(Q) = -------- * t_r
16  * Q(tot)
17  *
18  *
19  * Params from Parameter Database:
20  * ------------------------------
21  * t_r = rising time of the signal
22  * Q_thr = threshold charge
23  * m = constatnt current to unload the capacitor
24  *
25  */
26 
27 #ifndef PNDSDSTIMEWALKCORRSIMPLE_H_
28 #define PNDSDSTIMEWALKCORRSIMPLE_H_
29 
30 #include "PndSdsTimeWalkCorr.h"
31 #include <iostream>
32 #include <cmath>
33 
35 public:
37 
38  PndSdsTimeWalkCorrSimple(Double_t risingtime, Double_t constcurrent, Double_t thr, Double_t frequency, Int_t verblevel);
39 
40  virtual ~PndSdsTimeWalkCorrSimple();
41 
43  virtual Double_t GetCharge() {return fCharge;};
44 
45 
46 
47 private:
48  Double_t fRisingTime; // ns
58 
60 };
61 
62 #endif /* PNDSDSTIMEWALKCORRSIMPLE_H_ */
virtual Double_t CorrectionTimeWalk(Double_t tot)
Double_t
ClassDef(PndSdsTimeWalkCorrSimple, 1)