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