CbmRoot
UEvent.h
Go to the documentation of this file.
1 #ifndef UEVENT_H
2 #define UEVENT_H
3 
4 #include "TLorentzVector.h"
5 #include "TObject.h"
6 
7 class UParticle;
8 
9 class TString;
10 class TClonesArray;
11 
12 class UEvent : public TObject {
13 
14 private:
15  Int_t fEventNr; // Event number
16  Double_t fB; // Impact parameter (fm)
17  Double_t fPhi; // Reaction plane angle
18  Int_t fNes; // Number of event steps
19  Int_t fStepNr; // Event step number
20  Double_t fStepT; // Event step time
21  Int_t fNpa; // Number of particles
22  TString fComment; // Generator-specific information
23  TClonesArray* fParticles; // Array of particles
24 
25 public:
26  UEvent();
27  UEvent(const UEvent& right);
28  UEvent& operator=(const UEvent& right);
29  virtual ~UEvent();
30  void Print(Option_t* option = "") const;
31  inline Int_t GetEventNr() const { return fEventNr; }
32  inline Double_t GetB() const { return fB; }
33  inline Double_t GetPhi() const { return fPhi; }
34  inline Int_t GetNes() const { return fNes; }
35  inline Int_t GetStepNr() const { return fStepNr; }
36  inline Double_t GetStepT() const { return fStepT; }
37  inline Int_t GetNpa() const { return fNpa; }
38  inline TClonesArray* GetParticleList() const { return fParticles; }
39  inline void GetComment(TString& comment) const { comment = fComment; }
40  UParticle* GetParticle(Int_t index) const;
41  void SetParameters(Int_t eventNr,
42  Double_t b,
43  Double_t phi,
44  Int_t nes,
45  Int_t stepNr,
46  Double_t stepT,
47  const char* comment = "");
48  inline void SetEventNr(Int_t eventNr) { fEventNr = eventNr; }
49  inline void SetB(Double_t b) { fB = b; }
50  inline void SetPhi(Double_t phi) { fPhi = phi; }
51  inline void SetNes(Int_t nes) { fNes = nes; }
52  inline void SetStepNr(Int_t stepNr) { fStepNr = stepNr; }
53  inline void SetStepT(Double_t stepT) { fStepT = stepT; }
54  inline void SetComment(const char* comment) { fComment = comment; }
55  void AddParticle(Int_t index,
56  Int_t pdg,
57  Int_t status,
58  Int_t parent,
59  Int_t parentDecay,
60  Int_t mate,
61  Int_t decay,
62  Int_t child[2],
63  Double_t px,
64  Double_t py,
65  Double_t pz,
66  Double_t e,
67  Double_t x,
68  Double_t y,
69  Double_t z,
70  Double_t t,
71  Double_t weight);
72  void AddParticle(Int_t index,
73  Int_t pdg,
74  Int_t status,
75  Int_t parent,
76  Int_t parentDecay,
77  Int_t mate,
78  Int_t decay,
79  Int_t child[2],
80  TLorentzVector mom,
81  TLorentzVector pos,
82  Double_t weight);
83  void AddParticle(const UParticle& particle);
84  void Clear(Option_t* = "");
85  void RemoveAt(Int_t i);
86 
88 };
89 
90 
91 #endif
UEvent::GetParticleList
TClonesArray * GetParticleList() const
Definition: UEvent.h:38
UEvent::GetPhi
Double_t GetPhi() const
Definition: UEvent.h:33
UEvent::GetB
Double_t GetB() const
Definition: UEvent.h:32
UParticle
Definition: UParticle.h:10
UEvent::Print
void Print(Option_t *option="") const
Definition: UEvent.cxx:65
UEvent::GetNpa
Int_t GetNpa() const
Definition: UEvent.h:37
UEvent::SetEventNr
void SetEventNr(Int_t eventNr)
Definition: UEvent.h:48
UEvent::fComment
TString fComment
Definition: UEvent.h:22
i
int i
Definition: L1/vectors/P4_F32vec4.h:25
UEvent::GetComment
void GetComment(TString &comment) const
Definition: UEvent.h:39
UEvent::fStepT
Double_t fStepT
Definition: UEvent.h:20
UEvent::AddParticle
void AddParticle(Int_t index, Int_t pdg, Int_t status, Int_t parent, Int_t parentDecay, Int_t mate, Int_t decay, Int_t child[2], Double_t px, Double_t py, Double_t pz, Double_t e, Double_t x, Double_t y, Double_t z, Double_t t, Double_t weight)
Definition: UEvent.cxx:103
UEvent::GetStepNr
Int_t GetStepNr() const
Definition: UEvent.h:35
UEvent
Definition: UEvent.h:12
UEvent::RemoveAt
void RemoveAt(Int_t i)
Definition: UEvent.cxx:230
UEvent::fParticles
TClonesArray * fParticles
Definition: UEvent.h:23
UEvent::SetStepNr
void SetStepNr(Int_t stepNr)
Definition: UEvent.h:52
UEvent::fPhi
Double_t fPhi
Definition: UEvent.h:17
UEvent::fEventNr
Int_t fEventNr
Definition: UEvent.h:15
UEvent::operator=
UEvent & operator=(const UEvent &right)
Definition: UEvent.cxx:179
UEvent::SetB
void SetB(Double_t b)
Definition: UEvent.h:49
UEvent::SetNes
void SetNes(Int_t nes)
Definition: UEvent.h:51
UEvent::SetStepT
void SetStepT(Double_t stepT)
Definition: UEvent.h:53
UEvent::SetComment
void SetComment(const char *comment)
Definition: UEvent.h:54
UEvent::ClassDef
ClassDef(UEvent, 2)
UEvent::GetParticle
UParticle * GetParticle(Int_t index) const
Definition: UEvent.cxx:92
UEvent::fB
Double_t fB
Definition: UEvent.h:16
UEvent::SetParameters
void SetParameters(Int_t eventNr, Double_t b, Double_t phi, Int_t nes, Int_t stepNr, Double_t stepT, const char *comment="")
Definition: UEvent.cxx:201
UEvent::fNpa
Int_t fNpa
Definition: UEvent.h:21
UEvent::~UEvent
virtual ~UEvent()
Definition: UEvent.cxx:56
UEvent::UEvent
UEvent()
Definition: UEvent.cxx:20
UEvent::fStepNr
Int_t fStepNr
Definition: UEvent.h:19
x
Double_t x
Definition: CbmMvdSensorDigiToHitTask.cxx:68
UEvent::GetStepT
Double_t GetStepT() const
Definition: UEvent.h:36
y
Double_t y
Definition: CbmMvdSensorDigiToHitTask.cxx:68
UEvent::fNes
Int_t fNes
Definition: UEvent.h:18
pos
TVector3 pos
Definition: CbmMvdSensorDigiToHitTask.cxx:60
UEvent::GetNes
Int_t GetNes() const
Definition: UEvent.h:34
UEvent::SetPhi
void SetPhi(Double_t phi)
Definition: UEvent.h:50
UEvent::Clear
void Clear(Option_t *="")
Definition: UEvent.cxx:221
UEvent::GetEventNr
Int_t GetEventNr() const
Definition: UEvent.h:31