]>
Commit | Line | Data |
---|---|---|
03d23846 | 1 | #ifndef ALIRSNMINIEVENT_H |
2 | #define ALIRSNMINIEVENT_H | |
3 | ||
4 | // | |
5 | // Mini-Event | |
6 | // Contains only the useful quantities computed on the event | |
7 | // which can be used for event mixing, or for direct output | |
8 | // when doing analysis w.r. to multiplicity or event plane, for example. | |
9 | // | |
10 | ||
11 | #include <TArrayI.h> | |
12 | #include <TClonesArray.h> | |
13 | ||
14 | class AliRsnMiniParticle; | |
15 | ||
16 | class AliRsnMiniEvent : public TObject { | |
17 | public: | |
18 | ||
a9ffbf88 | 19 | AliRsnMiniEvent() : fID(-1), fVz(0.0), fMult(0.0), fAngle(0.0), fLeading(-1), fParticles("AliRsnMiniParticle", 0) {} |
03d23846 | 20 | ~AliRsnMiniEvent() {fParticles.Delete();} |
21 | ||
17392566 | 22 | Int_t& ID() {return fID;} |
03d23846 | 23 | Float_t& Vz() {return fVz;} |
24 | Float_t& Mult() {return fMult;} | |
25 | Float_t& Angle() {return fAngle;} | |
26 | TClonesArray& Particles() {return fParticles;} | |
17392566 | 27 | |
9e3a9020 | 28 | TArrayI CountParticles(Char_t charge = 0, Int_t cutID = -1); |
17392566 | 29 | AliRsnMiniParticle* GetParticle(Int_t i); |
03d23846 | 30 | AliRsnMiniParticle* LeadingParticle(); |
31 | void AddParticle(AliRsnMiniParticle copy); | |
32 | ||
33 | private: | |
34 | ||
17392566 | 35 | Int_t fID; // ID number |
03d23846 | 36 | Float_t fVz; // z-position of vertex |
37 | Float_t fMult; // multiplicity or centrality | |
38 | Float_t fAngle; // angle of reaction plane to main reference frame | |
39 | ||
40 | Int_t fLeading; // index of leading particle | |
41 | TClonesArray fParticles; // list of selected particles | |
42 | ||
17392566 | 43 | ClassDef(AliRsnMiniEvent,2) |
03d23846 | 44 | }; |
45 | ||
46 | #endif |