]>
Commit | Line | Data |
---|---|---|
d7c6ab14 | 1 | #ifndef ALIJETEVENT_H |
2 | #define ALIJETEVENT_H | |
3 | ||
4 | /* $Id$ */ | |
5 | ||
6 | /////////////////////////////////////////////////////////////////// | |
7 | // | |
8 | // class AliJetEvent | |
9 | // | |
10 | // Piotr.Skowronski@cern.ch | |
11 | // | |
12 | /////////////////////////////////////////////////////////////////// | |
13 | ||
14 | #include <TObject.h> | |
15 | #include <TClonesArray.h> | |
16 | #include <TObjString.h> | |
17 | #include <TString.h> | |
18 | class TParticle; | |
19 | class AliJetParticle; | |
20 | class AliJet; | |
21 | ||
22 | class AliJetEvent: public TObject | |
23 | { | |
24 | public: | |
25 | #if 0 | |
26 | AliJetEvent(Int_t size=1000); | |
27 | AliJetEvent(const AliJetEvent& source); | |
28 | virtual ~AliJetEvent(); | |
29 | ||
30 | void SetHeader(TString& s){fHeader=s;} | |
31 | //void Reset(Int_t size=-1); //deletes all entries | |
32 | ||
33 | //adds particle to the event | |
34 | void AddJet(AliJet* j); | |
35 | void AddJet(const AliJet* j); | |
36 | ||
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); | |
40 | ||
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;} | |
46 | ||
47 | void Print(Option_t *t="") const; | |
48 | ||
49 | protected: | |
50 | TString fHeader; // event description | |
51 | Int_t fNParticles; // number of particles read | |
52 | TClonesArray *fParticles; //-> particles in event | |
53 | ||
54 | ||
55 | Float_t fVertexX; //vertex x | |
56 | Float_t fVertexY; //vertex y | |
57 | Float_t fVertexZ; //vertex z | |
58 | #endif | |
59 | ClassDef(AliJetEvent,1) //class AliJetEvent | |
60 | }; | |
61 | #endif |