]> git.uio.no Git - u/mrichter/AliRoot.git/blob - JETAN/AliJFJetFinder.h
Version of the jet analysis module from v4-01-Release
[u/mrichter/AliRoot.git] / JETAN / AliJFJetFinder.h
1 // $Id$
2
3 #ifndef ALIJFJETFINDERH
4 #define ALIJFJETFINDERH
5
6 #include <TObject.h>
7
8 class TCollection;
9 class TParticle;
10 class JFTower;
11
12 class AliJFJetFinder
13 {
14  public:
15   AliJFJetFinder(Int_t n=50);
16   virtual ~AliJFJetFinder();
17
18   virtual Int_t Init(TClonesArray */*particles*/){return 0;}
19   virtual Int_t Run(){return 0;}
20
21   inline TObjArray*  GetJets()  {return &fJets;}
22   inline Int_t const GetNJets() const {return fNJets;}
23
24   virtual Bool_t IsAcceptedParticle(TParticle *p);
25   virtual Bool_t IsAcceptedTower(JFTower*){return kFALSE;}
26
27   virtual void Debug(){};
28   virtual void Clean(){fJets.Delete();fNJets=0;}
29
30   void SetPtCut(Float_t ptmin=0, Float_t ptmax=1000);
31   void SetPhiCut(Float_t phi=6.4){SetPhiCut(0,phi);}
32   void SetPhiCut(Float_t phimin, Float_t phimax);
33   void SetEtaCut(Float_t e=1){SetEtaCut(-e,e);}
34   void SetEtaCut(Float_t emin, Float_t emax);
35   void SetNeutral(Bool_t b=kTRUE){fNeutral=b;}
36   void SetCharged(Bool_t b=kTRUE){fCharged=b;}
37   void SetEM(Bool_t b=kTRUE){fEM=b;}
38
39  protected:
40   Int_t fNJets;
41   Int_t fNJetsMax;
42   TObjArray fJets;
43
44   Float_t fPtMin;
45   Float_t fPtMax;
46   Float_t fEtaMin;
47   Float_t fEtaMax;
48   Float_t fPhiMin;
49   Float_t fPhiMax;
50   Bool_t fNeutral;
51   Bool_t fCharged;
52   Bool_t fEM;
53
54   ClassDef(AliJFJetFinder,1) //AliJFJetFinder class
55 };
56
57 #endif /*ALIJFJETFINDERH*/