FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
detectors
mvd
MvdDigi
PndMvdCalcTot.h
Go to the documentation of this file.
1
#ifndef PNDMVDCALCTOT_H
2
#define PNDMVDCALCTOT_H
3
4
#include "TObject.h"
5
#include "TString.h"
6
#include "TRandom2.h"
7
#include <iostream>
8
#include <iomanip>
9
11
31
class
PndMvdCalcTot
32
{
33
public
:
35
PndMvdCalcTot
(){
36
ftr
= 100.;
37
fa
= 60.;
38
fthreshold
= 3000;
39
fclockfrequency
= 50.;
40
ftimestep
= 1. /
fclockfrequency
* 1000.;
41
SetStartOffset
();
42
std::cout<<
"-I- <PndMvdCalcTot::PndMvdCalcTot()>: default constructor used!"
<<std::endl;
43
};
44
46
PndMvdCalcTot
(
Double_t
tr
,
Double_t
a
,
Double_t
threshold
,
Double_t
clockfrequency){
47
ftr
=
tr
;
48
fa
=
a
;
49
fthreshold
=
threshold
;
50
fclockfrequency
= clockfrequency;
51
ftimestep
= 1. /
fclockfrequency
* 1000.;
52
SetStartOffset
();
53
};
54
56
~PndMvdCalcTot
(){};
57
58
void
SetStartOffset
();
59
60
Double_t
GetTot
(
Double_t
fcharge);
61
void
SetParameter
(
Double_t
tr
,
Double_t
a
,
Double_t
threshold
);
62
Double_t
GetPileUpTime
(
Double_t
fcharge);
//returns the time the capacitor is loaded and therefore the time the hit MVD is blind for other events
63
64
private
:
65
Double_t
fthreshold
;
//in electrons
66
Double_t
ftr
;
//raising time [ns]
67
Double_t
fa
;
//falling ration [e/ns]
68
Double_t
Q
,
Qt
;
//max charge, threshold charge
69
Double_t
t1e
,
t2e
;
//exact time point when signal is over threshold/under threshold again
70
Double_t
fclockfrequency
;
//the frequency the readout chip works with
71
Double_t
ftimestep
;
//one time step of the clock
72
Double_t
fstarttime
;
//absolute point when TOT begins
73
Double_t
fstoptime
;
//absolute point when TOT ends
74
Double_t
ftimeoffset
;
//difference between rising clock edge and when detector gets hit
75
76
Double_t
GetTotWC
();
//assumes a clock which results in a quantized TOT
77
78
TRandom2
fRand
;
79
};
80
81
#endif
/*MVDCALCTOT_H*/
PndMvdCalcTot::PndMvdCalcTot
PndMvdCalcTot(Double_t tr, Double_t a, Double_t threshold, Double_t clockfrequency)
Main constructor.
Definition:
PndMvdCalcTot.h:46
PndMvdCalcTot::GetPileUpTime
Double_t GetPileUpTime(Double_t fcharge)
Definition:
PndMvdCalcTot.cxx:58
PndMvdCalcTot::fclockfrequency
Double_t fclockfrequency
Definition:
PndMvdCalcTot.h:70
PndMvdCalcTot::t2e
Double_t t2e
Definition:
PndMvdCalcTot.h:69
PndMvdCalcTot::ftimestep
Double_t ftimestep
Definition:
PndMvdCalcTot.h:71
tr
Double_t tr
Definition:
createRootGeoFileBwEnd_FwEndCapGeo.C:19
PndMvdCalcTot::fthreshold
Double_t fthreshold
Definition:
PndMvdCalcTot.h:65
PndMvdCalcTot::fRand
TRandom2 fRand
Definition:
PndMvdCalcTot.h:78
PndMvdCalcTot::fstoptime
Double_t fstoptime
Definition:
PndMvdCalcTot.h:73
PndMvdCalcTot::t1e
Double_t t1e
Definition:
PndMvdCalcTot.h:69
PndMvdCalcTot::Q
Double_t Q
Definition:
PndMvdCalcTot.h:68
PndMvdCalcTot::GetTot
Double_t GetTot(Double_t fcharge)
Definition:
PndMvdCalcTot.cxx:3
a
Int_t a
Definition:
anaLmdDigi.C:126
PndMvdCalcTot::fstarttime
Double_t fstarttime
Definition:
PndMvdCalcTot.h:72
PndMvdCalcTot::SetParameter
void SetParameter(Double_t tr, Double_t a, Double_t threshold)
Definition:
PndMvdCalcTot.cxx:51
Double_t
Double_t
Definition:
SimCompleteLinkDef.h:6
PndMvdCalcTot::ftimeoffset
Double_t ftimeoffset
Definition:
PndMvdCalcTot.h:74
PndMvdCalcTot::ftr
Double_t ftr
Definition:
PndMvdCalcTot.h:66
threshold
double threshold
Definition:
outdated/dc1/stt/runreco.C:105
PndMvdCalcTot::Qt
Double_t Qt
Definition:
PndMvdCalcTot.h:68
PndMvdCalcTot::~PndMvdCalcTot
~PndMvdCalcTot()
Destructor.
Definition:
PndMvdCalcTot.h:56
PndMvdCalcTot::SetStartOffset
void SetStartOffset()
Definition:
PndMvdCalcTot.cxx:47
PndMvdCalcTot::GetTotWC
Double_t GetTotWC()
Definition:
PndMvdCalcTot.cxx:32
PndMvdCalcTot::fa
Double_t fa
Definition:
PndMvdCalcTot.h:67
PndMvdCalcTot::PndMvdCalcTot
PndMvdCalcTot()
Default constructor.
Definition:
PndMvdCalcTot.h:35
PndMvdCalcTot
Class to calculate the time over threshold.
Definition:
PndMvdCalcTot.h:31
Generated on Wed Apr 3 2019 10:02:54 for FairRoot/PandaRoot by
1.8.5