BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnFDPoint.cxx
Go to the documentation of this file.
1
#include "
BmnFDPoint.h
"
2
3
#include "FairLogger.h"
4
#include "FairMCPoint.h"
5
#include "
TParticle.h
"
6
#include "
TVector3.h
"
7
#include "TVirtualMC.h"
8
9
#include <iostream>
10
11
// ----- Default constructor -------------------------------------------
12
BmnFDPoint::BmnFDPoint
()
13
:
FairMCPoint
()
14
,
fXOut
(0.0)
15
,
fYOut
(0.0)
16
,
fZOut
(0.0)
17
,
fPxOut
(0.0)
18
,
fPyOut
(0.0)
19
,
fPzOut
(0.0)
20
,
fIsPrimary
(0)
21
,
fCharge
(-1.0)
22
,
fPdgId
(0)
23
24
{
25
nCopy
= -1;
26
}
27
// -------------------------------------------------------------------------
28
29
// ----- Standard constructor ------------------------------------------
30
BmnFDPoint::BmnFDPoint
(
Int_t
trackID,
31
Int_t
detID,
32
Int_t
copyNo,
33
TVector3
posIn,
34
TVector3
posOut,
35
TVector3
momIn,
36
TVector3
momOut,
37
Double_t
tof,
38
Double_t
length,
39
Double_t
eLoss,
40
Int_t
isPrimary,
41
Double_t
charge,
42
Int_t
pdgId,
43
Double_t
lightYield,
44
Double_t
timeIn,
45
Double_t
timeOut,
46
Double_t
lengthtrack)
47
// UInt_t EventId,
48
:
FairMCPoint
(trackID, detID, posIn, momIn, tof, length, eLoss)
49
,
50
// EventId
51
52
fXOut
(posOut.X())
53
,
fYOut
(posOut.Y())
54
,
fZOut
(posOut.Z())
55
,
fPxOut
(momOut.Px())
56
,
fPyOut
(momOut.Py())
57
,
fPzOut
(momOut.Pz())
58
,
fIsPrimary
(isPrimary)
59
,
fCharge
(charge)
60
,
fPdgId
(pdgId)
61
62
{
63
64
nCopy
= copyNo;
65
66
fLightYield
= lightYield;
67
fTimeIn
= timeIn;
68
fTimeOut
= timeOut;
69
fLengthtrack
= lengthtrack;
70
}
71
// ----- Destructor ----------------------------------------------------
72
BmnFDPoint::~BmnFDPoint
() {}
73
// -------------------------------------------------------------------------
74
75
// ----- Public method Print -------------------------------------------
76
void
BmnFDPoint::Print
(
const
Option_t
* opt)
const
77
{
78
cout <<
"-I- BmnFDPoint: MUO Point for track "
<< fTrackID <<
" in detector "
<< fDetectorID << endl;
79
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ <<
") cm"
<< endl;
80
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz <<
") GeV"
<< endl;
81
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength <<
" cm, Energy loss "
<< fELoss * 1.0e06 <<
" keV"
82
<< endl;
83
}
84
// -------------------------------------------------------------------------
Int_t
int Int_t
Double_t
double Double_t
Option_t
const char Option_t
TParticle.h
TVector3.h
BmnFDPoint::fPxOut
Double_t fPxOut
Definition
BmnFDPoint.h:85
BmnFDPoint::fLengthtrack
Double_t fLengthtrack
Definition
BmnFDPoint.h:96
BmnFDPoint::fXOut
Double_t fXOut
Definition
BmnFDPoint.h:84
BmnFDPoint::~BmnFDPoint
virtual ~BmnFDPoint()
Destructor.
Definition
BmnFDPoint.cxx:72
BmnFDPoint::fTimeIn
Double_t fTimeIn
Definition
BmnFDPoint.h:94
BmnFDPoint::fPyOut
Double_t fPyOut
Definition
BmnFDPoint.h:85
BmnFDPoint::fZOut
Double_t fZOut
Definition
BmnFDPoint.h:84
BmnFDPoint::fIsPrimary
Int_t fIsPrimary
Definition
BmnFDPoint.h:90
BmnFDPoint::fCharge
Double_t fCharge
Definition
BmnFDPoint.h:91
BmnFDPoint::fPzOut
Double_t fPzOut
Definition
BmnFDPoint.h:85
BmnFDPoint::BmnFDPoint
BmnFDPoint()
Default constructor.
Definition
BmnFDPoint.cxx:12
BmnFDPoint::nCopy
Short_t nCopy
Definition
BmnFDPoint.h:87
BmnFDPoint::fYOut
Double_t fYOut
Definition
BmnFDPoint.h:84
BmnFDPoint::fLightYield
Float_t fLightYield
Definition
BmnFDPoint.h:93
BmnFDPoint::fPdgId
Int_t fPdgId
Definition
BmnFDPoint.h:92
BmnFDPoint::Print
virtual void Print(const Option_t *opt) const
Output to screen.
Definition
BmnFDPoint.cxx:76
BmnFDPoint::fTimeOut
Double_t fTimeOut
Definition
BmnFDPoint.h:95
FairMCPoint
TVector3
BmnFDPoint.h
detectors
FD
BmnFDPoint.cxx
Generated on
for BmnRoot by
1.17.0