BmnRoot
Loading...
Searching...
No Matches
UEvent.h
Go to the documentation of this file.
1#ifndef UEVENT_H
2#define UEVENT_H
9#include "TObject.h"
10#include "TLorentzVector.h"
11#include "TNamed.h"
12
13class TString;
14class TClonesArray;
15class UParticle;
16
20class UEvent : public TNamed {
21
22 private:
26 Int_t fEventNr;
30 Double_t fB;
34 Double_t fPhi;
38 Int_t fNes;
42 Int_t fStepNr;
46 Double_t fStepT;
50 Int_t fNpa;
54 TString fComment;
58 TClonesArray* fParticles;
59
60 public:
64 UEvent();
69 UEvent(const UEvent& right);
73 UEvent operator=(const UEvent &right);
74 virtual ~UEvent();
79 void Print(Option_t* option = "");
84 inline Int_t GetEventNr() const {return fEventNr;}
89 inline Double_t GetB() const {return fB;}
94 inline Double_t GetPhi() const {return fPhi;}
99 inline Int_t GetNes() const {return fNes;}
104 inline Int_t GetStepNr() const {return fStepNr;}
109 inline Double_t GetStepT() const {return fStepT;}
114 inline Int_t GetNpa() const {return fNpa;}
119 inline TClonesArray* GetParticleList() const {return fParticles;}
124 inline void GetComment(TString& comment) const {comment = fComment;}
130 UParticle* GetParticle(Int_t index) const;
141 void SetParameters(Int_t eventNr, Double_t b, Double_t phi, Int_t nes,
142 Int_t stepNr, Double_t stepT, const char* comment = "");
147 inline void SetEventNr(Int_t eventNr) {fEventNr = eventNr;}
152 inline void SetB (Double_t b) {fB = b;}
157 inline void SetPhi (Double_t phi) {fPhi = phi;}
162 inline void SetNes (Int_t nes) {fNes = nes;}
167 inline void SetStepNr (Int_t stepNr) {fStepNr = stepNr;}
172 inline void SetStepT (Double_t stepT) {fStepT = stepT;}
177 inline void SetComment(const char* comment) {fComment = comment;}
198 void AddParticle(Int_t index, Int_t pdg, Int_t status,
199 Int_t parent, Int_t parentDecay,
200 Int_t mate, Int_t decay, Int_t child[2],
201 Double_t px, Double_t py, Double_t pz, Double_t e,
202 Double_t x, Double_t y, Double_t z, Double_t t,
203 Double_t weight);
218 void AddParticle(Int_t index, Int_t pdg, Int_t status,
219 Int_t parent, Int_t parentDecay,
220 Int_t mate, Int_t decay, Int_t child[2],
221 TLorentzVector mom, TLorentzVector pos,
222 Double_t weight);
223// void Rebuild(UEvent* ev);
228 void AddParticle(const UParticle& particle);
232 void Clear();
237 void Clear(Option_t *otp){Clear();};
242 void RemoveAt(Int_t i);
243
244 ClassDef(UEvent, 3)
245};
246
247
248#endif
int i
Definition P4_F32vec4.h:22
void SetNes(Int_t nes)
Definition UEvent.h:162
void SetPhi(Double_t phi)
Definition UEvent.h:157
void Clear()
Definition UEvent.cxx:197
Int_t GetEventNr() const
Definition UEvent.h:84
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:117
void RemoveAt(Int_t i)
Definition UEvent.cxx:208
Int_t GetNpa() const
Definition UEvent.h:114
virtual ~UEvent()
Definition UEvent.cxx:61
Double_t GetPhi() const
Definition UEvent.h:94
UEvent()
Definition UEvent.cxx:21
void Clear(Option_t *otp)
Definition UEvent.h:237
void SetComment(const char *comment)
Definition UEvent.h:177
void Print(Option_t *option="")
Definition UEvent.cxx:72
void SetStepNr(Int_t stepNr)
Definition UEvent.h:167
Int_t GetNes() const
Definition UEvent.h:99
Double_t GetStepT() const
Definition UEvent.h:109
UEvent operator=(const UEvent &right)
Definition UEvent.cxx:159
TClonesArray * GetParticleList() const
Definition UEvent.h:119
void SetB(Double_t b)
Definition UEvent.h:152
Int_t GetStepNr() const
Definition UEvent.h:104
UParticle * GetParticle(Int_t index) const
Definition UEvent.cxx:100
void GetComment(TString &comment) const
Definition UEvent.h:124
void SetStepT(Double_t stepT)
Definition UEvent.h:172
void SetEventNr(Int_t eventNr)
Definition UEvent.h:147
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:182
Double_t GetB() const
Definition UEvent.h:89