EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CbmMCEvent.cxx
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CbmMCEvent.cxx
1
9
#include "
CbmMCEvent.h
"
10
11
12
13
// ----- Default constructor ------------------------------------------
14
CbmMCEvent::CbmMCEvent
()
15
: TNamed(
"MC Event"
,
"CBM MC Event"
),
16
fRunId(0),
17
fEventId(0),
18
fX
(0.),
19
fY
(0.),
20
fZ
(0.),
21
fT (0.),
22
fPhi (0.),
23
fB (0.),
24
fNPrim(0),
25
fIsSet(kFALSE)
26
27
{
28
}
29
// ------------------------------------------------------------------------
30
31
32
33
// ----- Constructor with run identifier ------------------------------
34
CbmMCEvent::CbmMCEvent
(UInt_t runId)
35
: TNamed(
"MC Event"
,
"CBM MC Event"
),
36
fRunId(runId),
37
fEventId(0),
38
fX
(0.),
39
fY
(0.),
40
fZ
(0.),
41
fT (0.),
42
fB (0.),
43
fPhi (0.),
44
fNPrim(0),
45
fIsSet(kFALSE)
46
47
{
48
}
49
// ------------------------------------------------------------------------
50
51
52
53
// ----- Standard constructor -----------------------------------------
54
CbmMCEvent::CbmMCEvent
(UInt_t runId, Int_t iEvent,
55
Double_t
x
, Double_t
y
, Double_t
z
, Double_t
t
,
56
Double_t b, Double_t
phi
, Int_t nPrim)
57
: TNamed(
"MCEvent"
,
"MC"
),
58
fRunId(0),
59
fEventId(iEvent),
60
fX
(x),
61
fY
(y),
62
fZ
(z),
63
fT (t),
64
fB (b),
65
fPhi(phi),
66
fNPrim(nPrim),
67
fIsSet(kFALSE)
68
69
{
70
}
71
// ------------------------------------------------------------------------
72
73
74
75
// ----- Destructor ---------------------------------------------------
76
CbmMCEvent::~CbmMCEvent
() { }
77
// ------------------------------------------------------------------------
78
79
80
81
// ----- Public method Reset ------------------------------------------
82
void
CbmMCEvent::Reset
() {
83
fEventId
=
fNPrim
= 0;
84
fX
=
fY
=
fZ
=
fT
=
fB
=
fPhi
= 0.;
85
fIsSet
= kFALSE;
86
}
87
// ------------------------------------------------------------------------
88
89
90
91
ClassImp
(
CbmMCEvent
)
EicRoot
blob
master
cbmdata
CbmMCEvent.cxx
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:33
using
1.8.2 with
EIC GitHub integration