3 #ifndef ALITKHIJINGANA_H
4 #define ALITKHIJINGANA_H
8 #include "AliTkEtaPhiVector.h"
10 class AliTkHijingAna : public TObject {
12 // how to use it: - call setCenter
13 // - call setParticles at beginning (not mandatory)
14 // - call getParticlesInRadius with maximum radius
15 // - call analysis functions
16 // - repeat last 2 steps with decreasing radia
19 void setCenter(Float_t eta, Float_t phi);
20 Float_t getCenterEta() const;
21 Float_t getCenterPhi() const;
24 Bool_t isParticleInRadius(TParticle *particle,Float_t radius);
25 Bool_t isParticleAccepted(TParticle *particle, Float_t pt=0.1, Bool_t neutral=kFALSE);
26 Bool_t isParticleAcceptedALICE(TParticle *particle, Float_t pt=0.1, Bool_t neutral=kFALSE);
30 // functions to create local copies of particles
31 void setParticles(TClonesArray *particles);
32 void setParticles(TClonesArray *particles,Float_t pt,Bool_t neutral);
33 TClonesArray *getParticlesInRadius(Float_t radius);
34 TClonesArray *getParticlesInRadius(TClonesArray *particles, Float_t radius);
37 Int_t getNParticlesInRadius(Float_t ptCut);
38 Int_t getNParticlesInRadius() { return getNParticlesInRadius(0); }
39 Float_t getEtInRadius(Float_t ptCut);
40 Float_t getEtInRadius() { return getEtInRadius(0); }
43 //--- old stuff, don't use anymore
44 Float_t getEtInRadius(TClonesArray *particles,Float_t radius);
45 //--- end of old stuff
48 AliTkEtaPhiVector center;
49 TClonesArray *oParticles;
50 TClonesArray *mParticles;
54 ClassDef(AliTkHijingAna,0)