]>
Commit | Line | Data |
---|---|---|
c028b974 | 1 | #ifndef ALIAODEVENT_H |
2 | #define ALIAODEVENT_H | |
3 | ||
4 | #include <TObject.h> | |
5 | #include <TClonesArray.h> | |
6 | ||
7 | class AliESD; | |
8 | class AliAODv0; | |
9 | class AliAODxi; | |
10 | ||
11 | class AliAODevent : public TObject { | |
12 | ||
13 | private : | |
14 | TClonesArray* fV0s; | |
15 | TClonesArray* fCascades; | |
16 | Double_t fPrimVertexX; // here put the whole AliESDVertex ? | |
17 | Double_t fPrimVertexY; | |
18 | Double_t fPrimVertexZ; | |
19 | ||
20 | UInt_t fRunNumber; | |
21 | UInt_t fEventNumber; | |
22 | UInt_t fNumberOfTracks; | |
23 | ||
24 | public : | |
25 | AliAODevent(); | |
26 | ~AliAODevent(); | |
27 | AliAODevent(AliESD*); | |
28 | AliAODevent(const AliAODevent&); | |
29 | AliAODevent& operator=(const AliAODevent&); | |
30 | ||
31 | void AddV0(AliAODv0*); | |
32 | void AddCascade(AliAODxi*); | |
33 | inline TClonesArray* GetV0s() {return fV0s;} | |
34 | inline TClonesArray* GetCascades() {return fCascades;} | |
35 | inline AliAODv0* GetV0 (UInt_t idx) {return ((AliAODv0*)fV0s->UncheckedAt(idx));} | |
36 | inline AliAODxi* GetCascade(UInt_t idx) {return ((AliAODxi*)fCascades->UncheckedAt(idx));} | |
37 | ||
38 | inline UInt_t GetNumberOfTracks() {return fNumberOfTracks;} | |
39 | inline UInt_t GetNumberOfV0s() {return fV0s->GetEntries();} | |
40 | inline UInt_t GetNumberOfCascades() {return fCascades->GetEntries();} | |
41 | inline UInt_t GetRunNumber() {return fRunNumber;} | |
42 | inline UInt_t GetEventNumber() {return fEventNumber;} | |
43 | ||
44 | inline Double_t GetPrimVertexX() {return fPrimVertexX;} | |
45 | inline Double_t GetPrimVertexY() {return fPrimVertexY;} | |
46 | inline Double_t GetPrimVertexZ() {return fPrimVertexZ;} | |
47 | ||
48 | ClassDef(AliAODevent,1); | |
49 | }; | |
50 | ||
51 | #endif |