]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/RESONANCES/AliRsnMiniEvent.h
Added first version of cut monitoring + style format applied
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnMiniEvent.h
CommitLineData
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
14class AliRsnMiniParticle;
15
16class AliRsnMiniEvent : public TObject {
17public:
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();}
61f275d1 21
22 Int_t &ID() {return fID;}
23 Float_t &Vz() {return fVz;}
24 Float_t &Mult() {return fMult;}
25 Float_t &Angle() {return fAngle;}
26 TClonesArray &Particles() {return fParticles;}
9e7b94f5 27 Bool_t IsEmpty() {return fParticles.IsEmpty();}
61f275d1 28
a2455d2a 29 Int_t CountParticles(TArrayI &found, Char_t charge = 0, Int_t cutID = -1);
61f275d1 30 AliRsnMiniParticle *GetParticle(Int_t i);
31 AliRsnMiniParticle *LeadingParticle();
03d23846 32 void AddParticle(AliRsnMiniParticle copy);
61f275d1 33
03d23846 34private:
61f275d1 35
17392566 36 Int_t fID; // ID number
03d23846 37 Float_t fVz; // z-position of vertex
38 Float_t fMult; // multiplicity or centrality
39 Float_t fAngle; // angle of reaction plane to main reference frame
61f275d1 40
03d23846 41 Int_t fLeading; // index of leading particle
42 TClonesArray fParticles; // list of selected particles
61f275d1 43
17392566 44 ClassDef(AliRsnMiniEvent,2)
03d23846 45};
46
47#endif