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