CbmRoot
Loading...
Searching...
No Matches
CbmMCEvent.cxx
Go to the documentation of this file.
1
/* Copyright (C) 2009 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Volker Friese [committer] */
4
13
#include "
CbmMCEvent.h
"
14
15
16
// ----- Default constructor ------------------------------------------
17
CbmMCEvent::CbmMCEvent
()
18
: TNamed(
"MC Event"
,
"CBM MC Event"
)
19
, fRunId(0)
20
, fEventId(0)
21
, fX(0.)
22
, fY(0.)
23
, fZ(0.)
24
, fT(0.)
25
, fPhi(0.)
26
, fB(0.)
27
, fNPrim(0)
28
, fIsSet(false)
29
30
{
31
}
32
// ------------------------------------------------------------------------
33
34
35
// ----- Constructor with run identifier ------------------------------
36
CbmMCEvent::CbmMCEvent
(uint32_t runId)
37
: TNamed(
"MC Event"
,
"CBM MC Event"
)
38
, fRunId(runId)
39
, fEventId(0)
40
, fX(0.)
41
, fY(0.)
42
, fZ(0.)
43
, fT(0.)
44
, fB(0.)
45
, fPhi(0.)
46
, fNPrim(0)
47
, fIsSet(false)
48
49
{
50
}
51
// ------------------------------------------------------------------------
52
53
54
// ----- Standard constructor -----------------------------------------
55
CbmMCEvent::CbmMCEvent
(uint32_t runId, int32_t iEvent,
double
x
,
double
y
,
double
z,
double
t,
double
b,
double
phi,
56
int32_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(false)
68
69
{
70
}
71
// ------------------------------------------------------------------------
72
73
74
// ----- Destructor ---------------------------------------------------
75
CbmMCEvent::~CbmMCEvent
() {}
76
// ------------------------------------------------------------------------
77
78
79
// ----- Public method Reset ------------------------------------------
80
void
CbmMCEvent::Reset
()
81
{
82
fEventId
=
fNPrim
= 0;
83
fX
=
fY
=
fZ
=
fT
=
fB
=
fPhi
= 0.;
84
fIsSet
=
false
;
85
}
86
// ------------------------------------------------------------------------
87
88
89
ClassImp
(
CbmMCEvent
)
ClassImp
ClassImp(CbmConverterManager)
CbmMCEvent.h
y
Double_t y
Definition
CbmMvdSensorDigiToHitTask.cxx:64
x
Double_t x
Definition
CbmMvdSensorDigiToHitTask.cxx:64
CbmMCEvent
Definition
CbmMCEvent.h:24
CbmMCEvent::fEventId
uint32_t fEventId
Definition
CbmMCEvent.h:84
CbmMCEvent::CbmMCEvent
CbmMCEvent()
Definition
CbmMCEvent.cxx:17
CbmMCEvent::fNPrim
int32_t fNPrim
Definition
CbmMCEvent.h:91
CbmMCEvent::fZ
Double32_t fZ
Definition
CbmMCEvent.h:87
CbmMCEvent::fT
Double32_t fT
Definition
CbmMCEvent.h:88
CbmMCEvent::~CbmMCEvent
virtual ~CbmMCEvent()
Definition
CbmMCEvent.cxx:75
CbmMCEvent::Reset
void Reset()
Definition
CbmMCEvent.cxx:80
CbmMCEvent::fB
Double32_t fB
Definition
CbmMCEvent.h:89
CbmMCEvent::fPhi
Double32_t fPhi
Definition
CbmMCEvent.h:90
CbmMCEvent::fIsSet
bool fIsSet
Definition
CbmMCEvent.h:92
CbmMCEvent::fX
Double32_t fX
Definition
CbmMCEvent.h:85
CbmMCEvent::fY
Double32_t fY
Definition
CbmMCEvent.h:86
core
data
CbmMCEvent.cxx
Generated on Sun Dec 22 2024 23:04:08 for CbmRoot by
1.12.0