BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnVSPPoint.cxx
Go to the documentation of this file.
1
#include "
BmnVSPPoint.h
"
2
3
#include <iostream>
4
5
using namespace
std
;
6
7
BmnVSPPoint::BmnVSPPoint
()
8
:
FairMCPoint
()
9
,
fIsPrimary
(0)
10
,
fCharge
(-1.0)
11
,
fPdgId
(0)
12
,
fX_out
(0.0)
13
,
fY_out
(0.0)
14
,
fZ_out
(0.0)
15
,
fPx_out
(0.0)
16
,
fPy_out
(0.0)
17
,
fPz_out
(0.0)
18
,
fStation
(-1)
19
,
fModule
(-1)
20
{}
21
22
BmnVSPPoint::BmnVSPPoint
(
Int_t
trackID,
23
Int_t
detID,
24
TVector3
posIn,
25
TVector3
posOut,
26
TVector3
momIn,
27
TVector3
momOut,
28
Double_t
tof,
29
Double_t
length,
30
Double_t
eLoss,
31
Int_t
isPrimary,
32
Double_t
charge,
33
Int_t
pdgId)
34
:
FairMCPoint
(trackID, detID, posIn, momIn, tof, length, eLoss)
35
,
fIsPrimary
(isPrimary)
36
,
fCharge
(charge)
37
,
fPdgId
(pdgId)
38
,
fX_out
(posOut.X())
39
,
fY_out
(posOut.Y())
40
,
fZ_out
(posOut.Z())
41
,
fPx_out
(momOut.Px())
42
,
fPy_out
(momOut.Py())
43
,
fPz_out
(momOut.Pz())
44
,
fStation
(-1)
45
,
fModule
(-1)
46
{}
47
48
BmnVSPPoint::~BmnVSPPoint
() {}
49
50
void
BmnVSPPoint::Print
(
const
Option_t
* opt)
const
51
{
52
cout <<
"-I- BmnVSPPoint: VSP point for track "
<< fTrackID <<
" in detector "
<< fDetectorID << endl;
53
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ <<
") cm"
<< endl;
54
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz <<
") GeV"
<< endl;
55
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength <<
" cm, Energy loss "
<< fELoss * 1.0e06 <<
" keV"
56
<< endl;
57
}
Int_t
int Int_t
Double_t
double Double_t
Option_t
const char Option_t
BmnVSPPoint::fY_out
Double_t fY_out
Definition
BmnVSPPoint.h:70
BmnVSPPoint::fIsPrimary
Int_t fIsPrimary
Definition
BmnVSPPoint.h:66
BmnVSPPoint::fZ_out
Double_t fZ_out
Definition
BmnVSPPoint.h:70
BmnVSPPoint::Print
virtual void Print(const Option_t *opt) const
Definition
BmnVSPPoint.cxx:50
BmnVSPPoint::~BmnVSPPoint
virtual ~BmnVSPPoint()
Definition
BmnVSPPoint.cxx:48
BmnVSPPoint::fPdgId
Int_t fPdgId
Definition
BmnVSPPoint.h:68
BmnVSPPoint::fCharge
Double_t fCharge
Definition
BmnVSPPoint.h:67
BmnVSPPoint::fX_out
Double_t fX_out
Definition
BmnVSPPoint.h:70
BmnVSPPoint::BmnVSPPoint
BmnVSPPoint()
Definition
BmnVSPPoint.cxx:7
BmnVSPPoint::fStation
Int_t fStation
Definition
BmnVSPPoint.h:73
BmnVSPPoint::fModule
Int_t fModule
Definition
BmnVSPPoint.h:74
BmnVSPPoint::fPx_out
Double_t fPx_out
Definition
BmnVSPPoint.h:71
BmnVSPPoint::fPz_out
Double_t fPz_out
Definition
BmnVSPPoint.h:71
BmnVSPPoint::fPy_out
Double_t fPy_out
Definition
BmnVSPPoint.h:71
FairMCPoint
TVector3
BmnVSPPoint.h
std
Definition
json.hpp:4446
detectors
vsp
BmnVSPPoint.cxx
Generated on
for BmnRoot by
1.17.0