]>
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 | ||
19 | AliRsnMiniEvent() : fVz(0.0), fMult(0.0), fAngle(0.0), fLeading(-1), fParticles("AliRsnMiniParticle", 0) {} | |
20 | ~AliRsnMiniEvent() {fParticles.Delete();} | |
21 | ||
22 | Float_t& Vz() {return fVz;} | |
23 | Float_t& Mult() {return fMult;} | |
24 | Float_t& Angle() {return fAngle;} | |
25 | TClonesArray& Particles() {return fParticles;} | |
26 | ||
27 | AliRsnMiniParticle* LeadingParticle(); | |
28 | void AddParticle(AliRsnMiniParticle copy); | |
29 | ||
30 | private: | |
31 | ||
32 | Float_t fVz; // z-position of vertex | |
33 | Float_t fMult; // multiplicity or centrality | |
34 | Float_t fAngle; // angle of reaction plane to main reference frame | |
35 | ||
36 | Int_t fLeading; // index of leading particle | |
37 | TClonesArray fParticles; // list of selected particles | |
38 | ||
39 | ClassDef(AliRsnMiniEvent,1) | |
40 | }; | |
41 | ||
42 | #endif |