CbmRoot
Loading...
Searching...
No Matches
UEvent.h
Go to the documentation of this file.
1/* Copyright (C) 2008-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
5#ifndef UEVENT_H
6#define UEVENT_H
7
8#include "TLorentzVector.h"
9#include "TObject.h"
10#include "TString.h"
11
12class UParticle;
13
14class TString;
15class TClonesArray;
16
17class UEvent : public TObject {
18
19private:
20 Int_t fEventNr; // Event number
21 Double_t fB; // Impact parameter (fm)
22 Double_t fPhi; // Reaction plane angle
23 Int_t fNes; // Number of event steps
24 Int_t fStepNr; // Event step number
25 Double_t fStepT; // Event step time
26 Int_t fNpa; // Number of particles
27 TString fComment; // Generator-specific information
28 TClonesArray* fParticles; // Array of particles
29
30public:
31 UEvent();
32 UEvent(const UEvent& right);
33 UEvent& operator=(const UEvent& right);
34 virtual ~UEvent();
35 void Print(Option_t* option = "") const;
36 inline Int_t GetEventNr() const { return fEventNr; }
37 inline Double_t GetB() const { return fB; }
38 inline Double_t GetPhi() const { return fPhi; }
39 inline Int_t GetNes() const { return fNes; }
40 inline Int_t GetStepNr() const { return fStepNr; }
41 inline Double_t GetStepT() const { return fStepT; }
42 inline Int_t GetNpa() const { return fNpa; }
43 inline TClonesArray* GetParticleList() const { return fParticles; }
44 inline void GetComment(TString& comment) const { comment = fComment; }
45 UParticle* GetParticle(Int_t index) const;
46 void SetParameters(Int_t eventNr, Double_t b, Double_t phi, Int_t nes, Int_t stepNr, 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, Int_t pdg, Int_t status, Int_t parent, Int_t parentDecay, Int_t mate, Int_t decay,
56 Int_t child[2], Double_t px, Double_t py, Double_t pz, Double_t e, Double_t x, Double_t y,
57 Double_t z, Double_t t, Double_t weight);
58 void AddParticle(Int_t index, Int_t pdg, Int_t status, Int_t parent, Int_t parentDecay, Int_t mate, Int_t decay,
59 Int_t child[2], TLorentzVector mom, TLorentzVector pos, Double_t weight);
60 void AddParticle(const UParticle& particle);
61 void Clear(Option_t* = "");
62 void RemoveAt(Int_t i);
63
65};
66
67
68#endif
Double_t fB
Definition UEvent.h:21
void SetNes(Int_t nes)
Definition UEvent.h:51
void SetPhi(Double_t phi)
Definition UEvent.h:50
Int_t fStepNr
Definition UEvent.h:24
Double_t fStepT
Definition UEvent.h:25
void Print(Option_t *option="") const
Definition UEvent.cxx:73
UEvent & operator=(const UEvent &right)
Definition UEvent.cxx:144
Int_t GetEventNr() const
Definition UEvent.h:36
ClassDef(UEvent, 2)
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:113
void RemoveAt(Int_t i)
Definition UEvent.cxx:193
Int_t GetNpa() const
Definition UEvent.h:42
virtual ~UEvent()
Definition UEvent.cxx:63
Double_t GetPhi() const
Definition UEvent.h:38
UEvent()
Definition UEvent.cxx:24
void Clear(Option_t *="")
Definition UEvent.cxx:183
void SetComment(const char *comment)
Definition UEvent.h:54
TString fComment
Definition UEvent.h:27
Int_t fEventNr
Definition UEvent.h:20
void SetStepNr(Int_t stepNr)
Definition UEvent.h:52
Int_t GetNes() const
Definition UEvent.h:39
Double_t GetStepT() const
Definition UEvent.h:41
TClonesArray * fParticles
Definition UEvent.h:28
TClonesArray * GetParticleList() const
Definition UEvent.h:43
void SetB(Double_t b)
Definition UEvent.h:49
Int_t fNpa
Definition UEvent.h:26
Double_t fPhi
Definition UEvent.h:22
Int_t GetStepNr() const
Definition UEvent.h:40
UParticle * GetParticle(Int_t index) const
Definition UEvent.cxx:101
Int_t fNes
Definition UEvent.h:23
void GetComment(TString &comment) const
Definition UEvent.h:44
void SetStepT(Double_t stepT)
Definition UEvent.h:53
void SetEventNr(Int_t eventNr)
Definition UEvent.h:48
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:167
Double_t GetB() const
Definition UEvent.h:37