BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnBCPoint.cxx
Go to the documentation of this file.
1
/////////////////////////////////////////////////////////////
2
//
3
// BmnBdPoint
4
//
5
// Geant point for Hyp detector
6
//
7
// Created 14/08/06 by S.Spataro
8
//
9
///////////////////////////////////////////////////////////////
10
11
#include "
BmnBCPoint.h
"
12
13
#include "FairLogger.h"
14
#include "FairMCPoint.h"
15
#include "
TParticle.h
"
16
#include "
TVector3.h
"
17
#include "TVirtualMC.h"
18
19
#include <iostream>
20
21
// ----- Default constructor -------------------------------------------
22
BmnBCPoint::BmnBCPoint
()
23
:
FairMCPoint
()
24
,
fXOut
(0.0)
25
,
fYOut
(0.0)
26
,
fZOut
(0.0)
27
,
fPxOut
(0.0)
28
,
fPyOut
(0.0)
29
,
fPzOut
(0.0)
30
,
fIsPrimary
(0)
31
,
fCharge
(-1.0)
32
,
fPdgId
(0)
33
34
{
35
nCopy
= -1;
36
}
37
// -------------------------------------------------------------------------
38
39
// ----- Standard constructor ------------------------------------------
40
BmnBCPoint::BmnBCPoint
(
Int_t
trackID,
41
Int_t
detID,
42
Int_t
copyNo,
43
TVector3
posIn,
44
TVector3
posOut,
45
TVector3
momIn,
46
TVector3
momOut,
47
Double_t
tof,
48
Double_t
length,
49
Double_t
eLoss,
50
Int_t
fStat,
51
Int_t
isPrimary,
52
Double_t
charge,
53
Int_t
pdgId,
54
Double_t
lightYield,
55
Double_t
timeIn,
56
Double_t
timeOut,
57
Double_t
lengthtrack)
58
// UInt_t EventId,
59
:
FairMCPoint
(trackID, detID, posIn, momIn, tof, length, eLoss)
60
,
61
// EventId
62
63
fXOut
(posOut.X())
64
,
fYOut
(posOut.Y())
65
,
fZOut
(posOut.Z())
66
,
fPxOut
(momOut.Px())
67
,
fPyOut
(momOut.Py())
68
,
fPzOut
(momOut.Pz())
69
,
fIsPrimary
(isPrimary)
70
,
fCharge
(charge)
71
,
fPdgId
(pdgId)
72
73
{
74
75
nCopy
= copyNo;
76
fStation
= fStat,
fLightYield
= lightYield;
77
fTimeIn
= timeIn;
78
fTimeOut
= timeOut;
79
fLengthtrack
= lengthtrack;
80
}
81
// ----- Destructor ----------------------------------------------------
82
BmnBCPoint::~BmnBCPoint
() {}
83
// -------------------------------------------------------------------------
84
85
// ----- Public method Print -------------------------------------------
86
void
BmnBCPoint::Print
(
const
Option_t
* opt)
const
87
{
88
cout <<
"-I- BmnBCPoint: MUO Point for track "
<< fTrackID <<
" in detector "
<< fDetectorID << endl;
89
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ <<
") cm"
<< endl;
90
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz <<
") GeV"
<< endl;
91
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength <<
" cm, Energy loss "
<< fELoss * 1.0e06 <<
" keV"
92
<< endl;
93
}
94
// -------------------------------------------------------------------------
Int_t
int Int_t
Double_t
double Double_t
Option_t
const char Option_t
TParticle.h
TVector3.h
BmnBCPoint::fTimeIn
Double_t fTimeIn
Definition
BmnBCPoint.h:123
BmnBCPoint::nCopy
Short_t nCopy
Definition
BmnBCPoint.h:115
BmnBCPoint::fCharge
Double_t fCharge
Definition
BmnBCPoint.h:120
BmnBCPoint::~BmnBCPoint
virtual ~BmnBCPoint()
Destructor.
Definition
BmnBCPoint.cxx:82
BmnBCPoint::fTimeOut
Double_t fTimeOut
Definition
BmnBCPoint.h:124
BmnBCPoint::fZOut
Double_t fZOut
Definition
BmnBCPoint.h:112
BmnBCPoint::fPzOut
Double_t fPzOut
Definition
BmnBCPoint.h:113
BmnBCPoint::fLengthtrack
Double_t fLengthtrack
Definition
BmnBCPoint.h:125
BmnBCPoint::fIsPrimary
Int_t fIsPrimary
Definition
BmnBCPoint.h:118
BmnBCPoint::fStation
Int_t fStation
Definition
BmnBCPoint.h:119
BmnBCPoint::fPdgId
Int_t fPdgId
Definition
BmnBCPoint.h:121
BmnBCPoint::Print
virtual void Print(const Option_t *opt) const
Output to screen.
Definition
BmnBCPoint.cxx:86
BmnBCPoint::fLightYield
Float_t fLightYield
Definition
BmnBCPoint.h:122
BmnBCPoint::fYOut
Double_t fYOut
Definition
BmnBCPoint.h:112
BmnBCPoint::fXOut
Double_t fXOut
Definition
BmnBCPoint.h:112
BmnBCPoint::fPyOut
Double_t fPyOut
Definition
BmnBCPoint.h:113
BmnBCPoint::fPxOut
Double_t fPxOut
Definition
BmnBCPoint.h:113
BmnBCPoint::BmnBCPoint
BmnBCPoint()
Default constructor.
Definition
BmnBCPoint.cxx:22
FairMCPoint
TVector3
BmnBCPoint.h
detectors
bc
BmnBCPoint.cxx
Generated on
for BmnRoot by
1.17.0