BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnZdcPoint.cxx
Go to the documentation of this file.
1
/////////////////////////////////////////////////////////////
2
//
3
// BmnZdcPoint
4
//
5
// Geant point for Hyp detector
6
//
7
// Created 14/08/06 by S.Spataro
8
//
9
// Modified by M.Golubeva
10
//
11
///////////////////////////////////////////////////////////////
12
13
#include "
BmnZdcPoint.h
"
14
15
#include <iostream>
16
17
// ----- Default constructor -------------------------------------------
18
BmnZdcPoint::BmnZdcPoint
()
19
:
FairMCPoint
()
20
{
21
// fTrackID = -1;
22
// fDetectorID = -1;
23
// // fEventID = -1;
24
// fX = fY = fZ = 0.;
25
// fPx = fPy = fPz = 0.;
26
// fTime = 0.;
27
// fLength = 0.;
28
// fELoss = 0.;
29
// fEventId
30
31
nCopy
= -1;
32
nCopyMother
= -1;
// module
33
// fNHits = 0.;
34
}
35
36
// ----- Standard constructor ------------------------------------------
37
BmnZdcPoint::BmnZdcPoint
(
Int_t
trackID,
38
Int_t
detID,
39
Int_t
copyNo,
40
Int_t
copyNoMother,
41
TVector3
pos,
42
TVector3
mom,
43
Double_t
tof,
44
Double_t
length,
45
Double_t
eLoss,
46
UInt_t EventId)
47
:
FairMCPoint
(trackID, detID, pos, mom, tof, length, eLoss, EventId)
48
{
49
nCopy
= copyNo;
50
nCopyMother
= copyNoMother;
51
// fNHits = nHits;
52
53
// fTrackID = trackID;
54
// fDetectorID = detID;
55
56
// fX = pos.X();
57
// fY = pos.Y();
58
// fZ = pos.Z();
59
// fPx = mom.Px();
60
// fPy = mom.Py();
61
// fPz = mom.Pz();
62
// fTime = tof;
63
// fLength = length;
64
// fELoss = eLoss;
65
// fNHits = nHits;
66
// fEventId
67
}
68
69
// ----- Destructor ----------------------------------------------------
70
BmnZdcPoint::~BmnZdcPoint
() {}
71
72
// ----- Public method Print -------------------------------------------
73
void
BmnZdcPoint::Print
(
const
Option_t
* opt)
const
74
{
75
cout <<
"-I- BmnZdcPoint: MUO Point for track "
<< fTrackID <<
" in detector "
<< fDetectorID <<
" "
<<
nCopyMother
76
<<
" "
<<
nCopy
<< endl;
77
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ <<
") cm"
<< endl;
78
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz <<
") GeV"
<< endl;
79
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength <<
" cm, Energy loss "
<< fELoss <<
" GeV"
<< endl;
80
//<< " cm, Energy loss " << fELoss << " GeV" <<", nHits " <<fNHits << endl;
81
}
Int_t
int Int_t
Double_t
double Double_t
Option_t
const char Option_t
BmnZdcPoint::BmnZdcPoint
BmnZdcPoint()
Default constructor.
Definition
BmnZdcPoint.cxx:18
BmnZdcPoint::nCopyMother
Short_t nCopyMother
Definition
BmnZdcPoint.h:125
BmnZdcPoint::nCopy
Short_t nCopy
Definition
BmnZdcPoint.h:124
BmnZdcPoint::~BmnZdcPoint
virtual ~BmnZdcPoint()
Destructor.
Definition
BmnZdcPoint.cxx:70
BmnZdcPoint::Print
virtual void Print(const Option_t *opt) const
Output to screen.
Definition
BmnZdcPoint.cxx:73
FairMCPoint
TVector3
BmnZdcPoint.h
detectors
zdc
BmnZdcPoint.cxx
Generated on
for BmnRoot by
1.17.0