]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/EMCALJetTasks/AliEmcalJetTask.h
Fix problem in terminate. Add possibility to select the minimum number of vertex...
[u/mrichter/AliRoot.git] / PWGGA / EMCALJetTasks / AliEmcalJetTask.h
1 #ifndef ALIEMCALJETTASK_H
2 #define ALIEMCALJETTASK_H
3
4 // $Id$
5
6 class TClonesArray;
7 class AliVEvent;
8
9 #include "AliAnalysisTaskSE.h"
10
11 class AliEmcalJetTask : public AliAnalysisTaskSE {
12  public:
13   AliEmcalJetTask();
14   AliEmcalJetTask(const char *name);
15   virtual ~AliEmcalJetTask();
16
17   void                   UserCreateOutputObjects();
18   void                   UserExec(Option_t *option);
19   void                   Terminate(Option_t *option);
20
21   void                   SetAlgo(Int_t a)                 { fAlgo          = a     ; }
22   void                   SetClusName(const char *n)       { fCaloName      = n     ; }
23   void                   SetJetsName(const char *n)       { fJetsName      = n     ; }
24   void                   SetMinJetArea(Double_t a)        { fMinJetArea    = a     ; }
25   void                   SetMinJetClusPt(Double_t min)    { fMinJetClusPt  = min   ; }
26   void                   SetMinJetPt(Double_t j)          { fMinJetPt      = j     ; }
27   void                   SetMinJetTrackPt(Double_t min)   { fMinJetTrackPt = min   ; }
28   void                   SetRadius(Double_t r)            { fRadius        = r     ; }
29   void                   SetTracksName(const char *n)     { fTracksName    = n     ; }
30   void                   SetType(Int_t t)                 { fType          = t     ; }
31
32  protected:
33   void                   FindJets(TObjArray *tracks, TObjArray *clus, Int_t algo, Double_t radius, Float_t /*cent*/);
34   TString                GetBeamType();
35
36   TString                fTracksName;             // name of track collection
37   TString                fCaloName;               // name of calo cluster collection
38   TString                fJetsName;               // name of jet collection
39   Int_t                  fAlgo;                   // algo (0==kt, 1==antikt)
40   Double_t               fRadius;                 // jet radius
41   Int_t                  fType;                   // jet type (0=all, 1=ch, 2=neutral)
42   Double_t               fMinJetTrackPt;          // min jet track momentum   (applied before clustering)
43   Double_t               fMinJetClusPt;           // min jet cluster momentum (applied before clustering)
44   Double_t               fMinJetArea;             // min area to keep jet in output
45   Double_t               fMinJetPt;               // min jet pt to keep jet in output
46   TClonesArray          *fJets;                   //!jet collection
47   AliVEvent             *fEvent;                  //!current event
48
49  private:
50   AliEmcalJetTask(const AliEmcalJetTask&);            // not implemented
51   AliEmcalJetTask &operator=(const AliEmcalJetTask&); // not implemented
52
53   ClassDef(AliEmcalJetTask, 3) // Jet producing task
54 };
55 #endif