BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnSiMDPoint.cxx
Go to the documentation of this file.
1
2
3
#include "
BmnSiMDPoint.h
"
4
5
#include "FairLogger.h"
6
#include "FairMCPoint.h"
7
#include "
TParticle.h
"
8
#include "
TVector3.h
"
9
#include "TVirtualMC.h"
10
11
#include <iostream>
12
13
// ----- Default constructor -------------------------------------------
14
BmnSiMDPoint::BmnSiMDPoint
()
15
:
FairMCPoint
()
16
,
fXOut
(0.0)
17
,
fYOut
(0.0)
18
,
fZOut
(0.0)
19
,
fPxOut
(0.0)
20
,
fPyOut
(0.0)
21
,
fPzOut
(0.0)
22
,
fIsPrimary
(0)
23
,
fCharge
(-1.0)
24
,
fPdgId
(0)
25
26
{
27
nCopy
= -1;
28
}
29
// -------------------------------------------------------------------------
30
31
// ----- Standard constructor ------------------------------------------
32
BmnSiMDPoint::BmnSiMDPoint
(
Int_t
trackID,
33
Int_t
detID,
34
Int_t
copyNo,
35
TVector3
posIn,
36
TVector3
posOut,
37
TVector3
momIn,
38
TVector3
momOut,
39
Double_t
tof,
40
Double_t
length,
41
Double_t
eLoss,
42
Int_t
isPrimary,
43
Double_t
charge,
44
Int_t
pdgId,
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
fTimeIn
= timeIn;
68
fTimeOut
= timeOut;
69
fLengthtrack
= lengthtrack;
70
}
71
// ----- Destructor ----------------------------------------------------
72
BmnSiMDPoint::~BmnSiMDPoint
() {}
73
// -------------------------------------------------------------------------
74
75
// ----- Public method Print -------------------------------------------
76
void
BmnSiMDPoint::Print
(
const
Option_t
* opt)
const
77
{
78
cout <<
"-I- BmnSiMDPoint: 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
BmnSiMDPoint::fPdgId
Int_t fPdgId
Definition
BmnSiMDPoint.h:114
BmnSiMDPoint::fYOut
Double_t fYOut
Definition
BmnSiMDPoint.h:106
BmnSiMDPoint::fZOut
Double_t fZOut
Definition
BmnSiMDPoint.h:106
BmnSiMDPoint::~BmnSiMDPoint
virtual ~BmnSiMDPoint()
Destructor.
Definition
BmnSiMDPoint.cxx:72
BmnSiMDPoint::fPxOut
Double_t fPxOut
Definition
BmnSiMDPoint.h:107
BmnSiMDPoint::nCopy
Short_t nCopy
Definition
BmnSiMDPoint.h:109
BmnSiMDPoint::fPyOut
Double_t fPyOut
Definition
BmnSiMDPoint.h:107
BmnSiMDPoint::fIsPrimary
Int_t fIsPrimary
Definition
BmnSiMDPoint.h:112
BmnSiMDPoint::fLengthtrack
Double_t fLengthtrack
Definition
BmnSiMDPoint.h:117
BmnSiMDPoint::fXOut
Double_t fXOut
Definition
BmnSiMDPoint.h:106
BmnSiMDPoint::BmnSiMDPoint
BmnSiMDPoint()
Default constructor.
Definition
BmnSiMDPoint.cxx:14
BmnSiMDPoint::fTimeOut
Double_t fTimeOut
Definition
BmnSiMDPoint.h:116
BmnSiMDPoint::Print
virtual void Print(const Option_t *opt) const
Output to screen.
Definition
BmnSiMDPoint.cxx:76
BmnSiMDPoint::fCharge
Double_t fCharge
Definition
BmnSiMDPoint.h:113
BmnSiMDPoint::fPzOut
Double_t fPzOut
Definition
BmnSiMDPoint.h:107
BmnSiMDPoint::fTimeIn
Double_t fTimeIn
Definition
BmnSiMDPoint.h:115
FairMCPoint
TVector3
BmnSiMDPoint.h
detectors
SiMD
BmnSiMDPoint.cxx
Generated on
for BmnRoot by
1.17.0