FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
detectors
mvd
MvdReco
PndMvdRecoCharge.cxx
Go to the documentation of this file.
1
#include "
PndMvdRecoCharge.h
"
2
4
PndMvdRecoCharge::PndMvdRecoCharge
(){
5
ftr
= 100.;
6
fa
= 60.;
7
fthreshold
= 3000;
8
std::cout <<
"-W- <PndMvdRecoCharge::PndMvdRecoCharge()>: constructor with default parameters used"
<<std::endl;
9
};
10
12
PndMvdRecoCharge::PndMvdRecoCharge
(
Double_t
tr
,
Double_t
a
,
Double_t
threshold
){
13
ftr
=
tr
;
14
fa
=
a
;
15
fthreshold
=
threshold
;
16
};
17
18
Double_t
PndMvdRecoCharge::GetCharge
(
PndSdsDigi
&
digi
)
19
{
20
if
(digi.GetTot()<0){
21
std::cout<<
"-E- <PndMvdRecoCharge::GetCharge(PndSdsDigi &digi)>: time over threshold not calculated in digitization step"
<<std::endl;
22
return
-1;
23
}
24
return
(-
fa
*
ftr
+
fthreshold
+digi.GetTot()*
fa
)/2.+
sqrt
( pow( (
fa
*
ftr
-
fthreshold
-digi.GetTot()*
fa
),2) / 4. +
fa
*
fthreshold
*
ftr
);
25
}
26
27
Double_t
PndMvdRecoCharge::GetCharge
(
Double_t
tot)
28
{
29
if
(tot<0){
30
std::cout<<
"-E- <PndMvdRecoCharge::GetCharge(Double_t tot)>: time over threshold not calculated in digitization step"
<<std::endl;
31
return
-1;
32
}
33
return
(-
fa
*
ftr
+
fthreshold
+tot*
fa
)/2.+
sqrt
( pow( (fa*
ftr
-
fthreshold
-tot*fa),2) / 4. + fa*
fthreshold
*
ftr
);
34
}
35
36
37
38
39
digi
TClonesArray * digi
Definition:
checkdedx_helixhit.C:20
PndSdsDigi
Base class for Digi information.
Definition:
PndSdsDigi.h:29
sqrt
friend F32vec4 sqrt(const F32vec4 &a)
Definition:
P4_F32vec4.h:29
tr
Double_t tr
Definition:
createRootGeoFileBwEnd_FwEndCapGeo.C:19
PndMvdRecoCharge::GetCharge
Double_t GetCharge(PndSdsDigi &digi)
Definition:
PndMvdRecoCharge.cxx:18
a
Int_t a
Definition:
anaLmdDigi.C:126
PndMvdRecoCharge::fa
Double_t fa
Definition:
PndMvdRecoCharge.h:21
Double_t
Double_t
Definition:
SimCompleteLinkDef.h:6
PndMvdRecoCharge::PndMvdRecoCharge
PndMvdRecoCharge()
Default constructor.
Definition:
PndMvdRecoCharge.cxx:4
PndMvdRecoCharge::ftr
Double_t ftr
Definition:
PndMvdRecoCharge.h:20
threshold
double threshold
Definition:
outdated/dc1/stt/runreco.C:105
PndMvdRecoCharge.h
PndMvdRecoCharge::fthreshold
Double_t fthreshold
Definition:
PndMvdRecoCharge.h:19
Generated on Sun Aug 18 2019 03:01:40 for FairRoot/PandaRoot by
1.8.8