BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnScWallPoint.cxx
Go to the documentation of this file.
1
#include "
BmnScWallPoint.h
"
2
3
#include "FairLogger.h"
4
#include "FairMCPoint.h"
5
#include "
TParticle.h
"
6
#include "
TVector3.h
"
7
#include "TVirtualMC.h"
8
9
#include <iostream>
10
11
// ----- Default constructor -------------------------------------------
12
BmnScWallPoint::BmnScWallPoint
()
13
:
FairMCPoint
()
14
,
fX
(0.0)
15
,
fY
(0.0)
16
,
fZ
(0.0)
17
,
fPx
(0.0)
18
,
fPy
(0.0)
19
,
fPz
(0.0)
20
{
21
nCopy
= -1;
22
nCopyMother
= -1;
23
}
24
25
// ----- Standard constructor ------------------------------------------
26
BmnScWallPoint::BmnScWallPoint
(
Int_t
trackID,
27
Int_t
detID,
28
Int_t
copyNo,
29
Int_t
copyNoMother,
30
TVector3
pos,
31
TVector3
mom,
32
Double_t
tof,
33
Double_t
length,
34
Double_t
eLoss,
35
UInt_t EventId)
36
:
FairMCPoint
(trackID, detID, pos, mom, tof, length, eLoss, EventId)
37
,
fX
(pos.X())
38
,
fY
(pos.Y())
39
,
fZ
(pos.Z())
40
,
fPx
(mom.Px())
41
,
fPy
(mom.Py())
42
,
fPz
(mom.Pz())
43
{
44
nCopy
= copyNo;
45
nCopyMother
= copyNoMother;
46
}
47
48
// ----- Destructor ----------------------------------------------------
49
BmnScWallPoint::~BmnScWallPoint
() {}
50
51
// ----- Public method Print -------------------------------------------
52
void
BmnScWallPoint::Print
(
const
Option_t
* opt)
const
53
{
54
cout <<
"-I- BmnScWallPoint: MUO Point for track "
<< fTrackID <<
" in detector "
<< fDetectorID <<
" "
55
<<
nCopyMother
<<
" "
<<
nCopy
<< endl;
56
cout <<
" Position ("
<<
fX
<<
", "
<<
fY
<<
", "
<<
fZ
<<
") cm"
<< endl;
57
cout <<
" Momentum ("
<<
fPx
<<
", "
<<
fPy
<<
", "
<<
fPz
<<
") GeV"
<< endl;
58
cout <<
" Time "
<<
fTime
<<
" ns, Length "
<< fLength <<
" cm, Energy loss "
<< fELoss * 1.0e06 <<
" keV"
59
<< endl;
60
}
Int_t
int Int_t
Double_t
double Double_t
Option_t
const char Option_t
TParticle.h
TVector3.h
BmnScWallPoint::fY
Double_t fY
Definition
BmnScWallPoint.h:112
BmnScWallPoint::fPz
Double_t fPz
Definition
BmnScWallPoint.h:113
BmnScWallPoint::nCopy
Short_t nCopy
Definition
BmnScWallPoint.h:110
BmnScWallPoint::~BmnScWallPoint
virtual ~BmnScWallPoint()
Destructor.
Definition
BmnScWallPoint.cxx:49
BmnScWallPoint::fZ
Double_t fZ
Definition
BmnScWallPoint.h:112
BmnScWallPoint::fPy
Double_t fPy
Definition
BmnScWallPoint.h:113
BmnScWallPoint::fX
Double_t fX
Definition
BmnScWallPoint.h:112
BmnScWallPoint::nCopyMother
Short_t nCopyMother
Definition
BmnScWallPoint.h:111
BmnScWallPoint::fPx
Double_t fPx
Definition
BmnScWallPoint.h:113
BmnScWallPoint::Print
virtual void Print(const Option_t *opt) const
Output to screen.
Definition
BmnScWallPoint.cxx:52
BmnScWallPoint::BmnScWallPoint
BmnScWallPoint()
Default constructor.
Definition
BmnScWallPoint.cxx:12
BmnScWallPoint::fTime
Double_t fTime
Definition
BmnScWallPoint.h:114
FairMCPoint
TVector3
BmnScWallPoint.h
detectors
scwall
BmnScWallPoint.cxx
Generated on
for BmnRoot by
1.17.0