BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnDchPoint.cxx
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- BmnDchPoint source file -----
3
// -------------------------------------------------------------------------
4
5
#include "
BmnDchPoint.h
"
6
7
#include <iostream>
8
9
//------------------------------------------------------------------------------------------------------------------------
10
BmnDchPoint::BmnDchPoint
()
11
:
FairMCPoint
()
12
{}
13
//------------------------------------------------------------------------------------------------------------------------
14
BmnDchPoint::BmnDchPoint
(
Int_t
trackID,
15
Int_t
detID,
16
TVector3
pos,
17
Double_t
radius,
18
TVector3
mom,
19
Double_t
tof,
20
Double_t
length,
21
Double_t
eLoss,
22
Int_t
isPrimary,
23
Double_t
charge,
24
Int_t
pdgId,
25
TVector3
trackPos)
26
:
FairMCPoint
(trackID, detID, pos, mom, tof, length, eLoss)
27
,
fIsPrimary
(isPrimary)
28
,
fCharge
(charge)
29
,
fRadius
(radius)
30
,
fPdgId
(pdgId)
31
{
32
fTX
= trackPos.
X
();
33
fTY
= trackPos.
Y
();
34
fTZ
= trackPos.
Z
();
35
36
fPlaneNumber
= -1;
37
}
38
//------------------------------------------------------------------------------------------------------------------------
39
BmnDchPoint::~BmnDchPoint
() {}
40
//------------------------------------------------------------------------------------------------------------------------
41
Double_t
BmnDchPoint::GetDistance
()
42
{
43
TVector3
dist
=
TVector3
(fX, fY, fZ) -
TVector3
(
fTX
,
fTY
,
fTZ
);
44
return
dist
.Mag();
45
}
46
//------------------------------------------------------------------------------------------------------------------------
47
void
BmnDchPoint::Print
(
const
Option_t
* opt)
const
48
{
49
cout <<
"-I- BmnDchPoint: DCH point for track "
<< fTrackID <<
" in detector "
<< fDetectorID << endl;
50
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ <<
") cm"
<< endl;
51
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz <<
") GeV"
<< endl;
52
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength <<
" cm, Energy loss "
<< fELoss * 1.0e06 <<
" keV"
53
<< endl;
54
}
55
//------------------------------------------------------------------------------------------------------------------------
dist
vector< Double_t > dist(vector< Double_t > qp, Double_t mu)
Definition
BmnMath.cxx:869
Int_t
int Int_t
Double_t
double Double_t
Option_t
const char Option_t
BmnDchPoint::BmnDchPoint
BmnDchPoint()
Definition
BmnDchPoint.cxx:10
BmnDchPoint::fTZ
Double_t fTZ
Definition
BmnDchPoint.h:69
BmnDchPoint::fCharge
Double_t fCharge
Definition
BmnDchPoint.h:66
BmnDchPoint::fIsPrimary
Int_t fIsPrimary
Definition
BmnDchPoint.h:65
BmnDchPoint::fRadius
Double_t fRadius
Definition
BmnDchPoint.h:67
BmnDchPoint::Print
virtual void Print(const Option_t *opt) const
Definition
BmnDchPoint.cxx:47
BmnDchPoint::fPdgId
Int_t fPdgId
Definition
BmnDchPoint.h:68
BmnDchPoint::fTY
Double_t fTY
Definition
BmnDchPoint.h:69
BmnDchPoint::fTX
Double_t fTX
Definition
BmnDchPoint.h:69
BmnDchPoint::fPlaneNumber
Int_t fPlaneNumber
Definition
BmnDchPoint.h:71
BmnDchPoint::~BmnDchPoint
virtual ~BmnDchPoint()
Definition
BmnDchPoint.cxx:39
BmnDchPoint::GetDistance
Double_t GetDistance()
Definition
BmnDchPoint.cxx:41
FairMCPoint
TVector3
TVector3::Z
Double_t Z() const
TVector3::Y
Double_t Y() const
TVector3::X
Double_t X() const
BmnDchPoint.h
detectors
dch
BmnDchPoint.cxx
Generated on
for BmnRoot by
1.17.0