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