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 ------------------------------------------
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 ------------------------------
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 -----------------------------------------
55CbmMCEvent::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 ---------------------------------------------------
76// ------------------------------------------------------------------------
77
78
79// ----- Public method Reset ------------------------------------------
81{
82 fEventId = fNPrim = 0;
83 fX = fY = fZ = fT = fB = fPhi = 0.;
84 fIsSet = false;
85}
86// ------------------------------------------------------------------------
87
88
ClassImp(CbmConverterManager)
uint32_t fEventId
Definition CbmMCEvent.h:84
int32_t fNPrim
Definition CbmMCEvent.h:91
Double32_t fZ
Definition CbmMCEvent.h:87
Double32_t fT
Definition CbmMCEvent.h:88
virtual ~CbmMCEvent()
void Reset()
Double32_t fB
Definition CbmMCEvent.h:89
Double32_t fPhi
Definition CbmMCEvent.h:90
bool fIsSet
Definition CbmMCEvent.h:92
Double32_t fX
Definition CbmMCEvent.h:85
Double32_t fY
Definition CbmMCEvent.h:86