6 ///////////////////////////////////////////////////////////////////
10 // loizides@ikf.uni-frankfurt.de
12 ///////////////////////////////////////////////////////////////////
15 #include <TClonesArray.h>
16 #include <TObjString.h>
21 class AliJet: public TObject
25 AliJetEvent(Int_t size=1000);
26 AliJetEvent(const AliJetEvent& source);
27 virtual ~AliJetEvent();
29 void SetVertex(Float_t v[3]){fVertexX=v[0];fVertexY=v[1];fVertexZ=v[2];}
30 void SetVertex(Float_t v1,Float_t v2, Float_t v3){fVertexX=v1;fVertexY=v2;fVertexZ=v3;}
31 void SetHeader(TString& s){fHeader=s;}
32 void Reset(Int_t size=-1); //deletes all entries
34 //adds particle to the event
35 void AddParticle(AliJetParticle* p);
36 void AddParticle(const AliJetParticle* p);
37 void AddParticle(const TParticle* part,Int_t idx=-1, Int_t l=0);
38 void AddParticle(Float_t px, Float_t py, Float_t pz, Float_t etot, Int_t idx=-1, Int_t l=0);
39 void AddParticle(Float_t px, Float_t py, Float_t pz, Float_t etot, Int_t idx, Int_t l,
40 Float_t pt, Float_t phi, Float_t eta);
42 const AliJetParticle* GetParticle(Int_t n) //gets particle without boundary check
43 {return (const AliJetParticle*)fParticles->At(n);}
44 const AliJetParticle* GetParticleSafely(Int_t n);
45 Int_t GetNParticles() const {return fNParticles;}
46 const TClonesArray* GetParticles() const {return fParticles;}
47 Float_t GetVertexX() const {return fVertexX;}
48 Float_t GetVertexY() const {return fVertexY;}
49 Float_t GetVertexZ() const {return fVertexZ;}
51 void Print(Option_t *t="") const;
54 TString fHeader; // event description
55 Int_t fNParticles; // number of particles read
56 TClonesArray *fParticles; //-> particles in event
58 Float_t fVertexX; //vertex x
59 Float_t fVertexY; //vertex y
60 Float_t fVertexZ; //vertex z
62 ClassDef(AliJet,1) //class AliJet