CbmRoot
CbmMCEvent.cxx
Go to the documentation of this file.
1 
9 #include "CbmMCEvent.h"
10 
11 
12 // ----- Default constructor ------------------------------------------
14  : TNamed("MC Event", "CBM MC Event")
15  , fRunId(0)
16  , fEventId(0)
17  , fX(0.)
18  , fY(0.)
19  , fZ(0.)
20  , fT(0.)
21  , fPhi(0.)
22  , fB(0.)
23  , fNPrim(0)
24  , fIsSet(kFALSE)
25 
26 {}
27 // ------------------------------------------------------------------------
28 
29 
30 // ----- Constructor with run identifier ------------------------------
32  : TNamed("MC Event", "CBM MC Event")
33  , fRunId(runId)
34  , fEventId(0)
35  , fX(0.)
36  , fY(0.)
37  , fZ(0.)
38  , fT(0.)
39  , fB(0.)
40  , fPhi(0.)
41  , fNPrim(0)
42  , fIsSet(kFALSE)
43 
44 {}
45 // ------------------------------------------------------------------------
46 
47 
48 // ----- Standard constructor -----------------------------------------
50  Int_t iEvent,
51  Double_t x,
52  Double_t y,
53  Double_t z,
54  Double_t t,
55  Double_t b,
56  Double_t phi,
57  Int_t nPrim)
58  : TNamed("MCEvent", "MC")
59  , fRunId(0)
60  , fEventId(iEvent)
61  , fX(x)
62  , fY(y)
63  , fZ(z)
64  , fT(t)
65  , fB(b)
66  , fPhi(phi)
67  , fNPrim(nPrim)
68  , fIsSet(kFALSE)
69 
70 {}
71 // ------------------------------------------------------------------------
72 
73 
74 // ----- Destructor ---------------------------------------------------
76 // ------------------------------------------------------------------------
77 
78 
79 // ----- Public method Reset ------------------------------------------
81  fEventId = fNPrim = 0;
82  fX = fY = fZ = fT = fB = fPhi = 0.;
83  fIsSet = kFALSE;
84 }
85 // ------------------------------------------------------------------------
86 
87 
CbmMCEvent::fZ
Double32_t fZ
Definition: CbmMCEvent.h:88
CbmMCEvent::fX
Double32_t fX
Definition: CbmMCEvent.h:86
CbmMCEvent::CbmMCEvent
CbmMCEvent()
Definition: CbmMCEvent.cxx:13
CbmMCEvent::fY
Double32_t fY
Definition: CbmMCEvent.h:87
CbmMCEvent::~CbmMCEvent
virtual ~CbmMCEvent()
Definition: CbmMCEvent.cxx:75
CbmMCEvent::fPhi
Double32_t fPhi
Definition: CbmMCEvent.h:91
CbmMCEvent.h
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition: CbmConverterManager.cxx:12
CbmMCEvent::fIsSet
Bool_t fIsSet
Definition: CbmMCEvent.h:93
CbmMCEvent::fT
Double32_t fT
Definition: CbmMCEvent.h:89
CbmMCEvent::fEventId
UInt_t fEventId
Definition: CbmMCEvent.h:85
x
Double_t x
Definition: CbmMvdSensorDigiToHitTask.cxx:68
CbmMCEvent::Reset
void Reset()
Definition: CbmMCEvent.cxx:80
y
Double_t y
Definition: CbmMvdSensorDigiToHitTask.cxx:68
CbmMCEvent
Definition: CbmMCEvent.h:18
CbmMCEvent::fB
Double32_t fB
Definition: CbmMCEvent.h:90
CbmMCEvent::fNPrim
Int_t fNPrim
Definition: CbmMCEvent.h:92