6 ///////////////////////////////////////////////////////////////////
10 // Piotr.Skowronski@cern.ch
12 ///////////////////////////////////////////////////////////////////
15 #include <TClonesArray.h>
16 #include <TObjString.h>
22 class AliJetEvent: public TObject
26 AliJetEvent(Int_t size=1000);
27 AliJetEvent(const AliJetEvent& source);
28 virtual ~AliJetEvent();
30 void SetHeader(TString& s){fHeader=s;}
31 //void Reset(Int_t size=-1); //deletes all entries
33 //adds particle to the event
34 void AddJet(AliJet* j);
35 void AddJet(const AliJet* j);
37 const AliJet* GetJet(Int_t n) //gets jet without boundary check
38 {return (const AliJet*)fJets->At(n);}
39 const AliJetParticle* GetParticleSafely(Int_t n);
41 Int_t GetNParticles() const {return fNParticles;}
42 const TClonesArray* GetParticles() const {return fParticles;}
43 Float_t GetVertexX() const {return fVertexX;}
44 Float_t GetVertexY() const {return fVertexY;}
45 Float_t GetVertexZ() const {return fVertexZ;}
47 void Print(Option_t *t="") const;
50 TString fHeader; // event description
51 Int_t fNParticles; // number of particles read
52 TClonesArray *fParticles; //-> particles in event
55 Float_t fVertexX; //vertex x
56 Float_t fVertexY; //vertex y
57 Float_t fVertexZ; //vertex z
59 ClassDef(AliJetEvent,1) //class AliJetEvent