]>
Commit | Line | Data |
---|---|---|
b9a6a391 | 1 | // $Id$ |
2 | ||
3 | #ifndef ALIJFPARTICLESCUTH | |
4 | #define ALIJFPARTICLESCUTH | |
5 | ||
6 | #include <TMath.h> | |
7 | ||
8 | class TParticle; | |
9 | class TClonesArray; | |
10 | class TH2F; | |
11 | ||
12 | class AliJFParticlesCut | |
13 | { | |
14 | public: | |
15 | AliJFParticlesCut(TClonesArray *p=0); | |
16 | virtual ~AliJFParticlesCut(){}; | |
17 | ||
18 | void SetPtCut(Float_t ptmin=0, Float_t ptmax=1000); | |
19 | void SetPhiCut(Float_t phi=2*TMath::Pi()){SetPhiCut(0,phi);} | |
20 | void SetPhiCut(Float_t phimin, Float_t phimax); | |
21 | void SetEtaCut(Float_t e=1){SetEtaCut(-e,e);} | |
22 | void SetEtaCut(Float_t emin, Float_t emax); | |
23 | void SetNeutral(Bool_t b=kTRUE){fNeutral=b;} | |
24 | void SetCharged(Bool_t b=kTRUE){fCharged=b;} | |
25 | void SetEM(Bool_t b=kTRUE){fEM=b;} | |
26 | ||
27 | void SetParticles(TClonesArray *p){fParts=p;} | |
28 | TClonesArray* GetParticles(TClonesArray */*p*/){return fParts;} | |
29 | ||
30 | Int_t Cut(); | |
31 | Int_t Cut(TClonesArray *p); | |
32 | ||
33 | TH2F* CreateHistogram(Char_t *title,Char_t *text,Int_t phibins=100,Int_t etabins=100); | |
34 | ||
35 | Bool_t IsAcceptedParticle(TParticle *p); | |
36 | ||
37 | protected: | |
38 | Float_t fPtMin; | |
39 | Float_t fPtMax; | |
40 | Float_t fEtaMin; | |
41 | Float_t fEtaMax; | |
42 | Float_t fPhiMin; | |
43 | Float_t fPhiMax; | |
44 | Bool_t fNeutral; | |
45 | Bool_t fCharged; | |
46 | Bool_t fEM; | |
47 | ||
48 | TClonesArray *fParts; | |
49 | ||
50 | ClassDef(AliJFParticlesCut,1) //AliJFParticlesCut class | |
51 | ||
52 | }; | |
53 | ||
54 | #endif /*ALIJFPARTICLESCUTH*/ |