]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGGA/EMCALJetTasks/AliEmcalJetTask.h
get beam type
[u/mrichter/AliRoot.git] / PWGGA / EMCALJetTasks / AliEmcalJetTask.h
index 87a3b3c4f031e86ddbc14590129c05445fbd5b78..7ee939d42ea23accb6916c51f3000d7c488cc488 100644 (file)
@@ -4,9 +4,7 @@
 // $Id$
 
 class TClonesArray;
-class TList;
-class TH1;
-class TH2;
+class AliVEvent;
 
 #include "AliAnalysisTaskSE.h"
 
@@ -16,21 +14,24 @@ class AliEmcalJetTask : public AliAnalysisTaskSE {
   AliEmcalJetTask(const char *name);
   virtual ~AliEmcalJetTask();
 
-  void         UserCreateOutputObjects();
-  void         UserExec(Option_t *option);
-  void         Terminate(Option_t *option);
-
-  void         SetAlgo(Int_t a)                 { fAlgo          = a;  }
-  void         SetClusName(const char *n)       { fCaloName      = n;  }
-  void         SetJetsName(const char *n)       { fJetsName      = n;  }
-  void         SetMinJetTrackPt(Double_t min)   { fMinJetTrackPt = min;}
-  void         SetMinJetClusPt(Double_t min)    { fMinJetClusPt  = min;}
-  void         SetRadius(Double_t r)            { fRadius        = r;  }
-  void         SetTracksName(const char *n)     { fTracksName    = n;  }
-  void         SetType(Int_t t)                 { fType          = t;  }
+  void                   UserCreateOutputObjects();
+  void                   UserExec(Option_t *option);
+  void                   Terminate(Option_t *option);
+
+  void                   SetAlgo(Int_t a)                 { fAlgo          = a     ; }
+  void                   SetClusName(const char *n)       { fCaloName      = n     ; }
+  void                   SetJetsName(const char *n)       { fJetsName      = n     ; }
+  void                   SetMinJetArea(Double_t a)        { fMinJetArea    = a     ; }
+  void                   SetMinJetClusPt(Double_t min)    { fMinJetClusPt  = min   ; }
+  void                   SetMinJetPt(Double_t j)          { fMinJetPt      = j     ; }
+  void                   SetMinJetTrackPt(Double_t min)   { fMinJetTrackPt = min   ; }
+  void                   SetRadius(Double_t r)            { fRadius        = r     ; }
+  void                   SetTracksName(const char *n)     { fTracksName    = n     ; }
+  void                   SetType(Int_t t)                 { fType          = t     ; }
 
  protected:
-  void FindJets(TObjArray *tracks, TObjArray *clus, Int_t algo, Double_t radius, Float_t cent);
+  void                   FindJets(TObjArray *tracks, TObjArray *clus, Int_t algo, Double_t radius, Float_t /*cent*/);
+  TString                GetBeamType();
 
   TString                fTracksName;             // name of track collection
   TString                fCaloName;               // name of calo cluster collection
@@ -38,14 +39,17 @@ class AliEmcalJetTask : public AliAnalysisTaskSE {
   Int_t                  fAlgo;                   // algo (0==kt, 1==antikt)
   Double_t               fRadius;                 // jet radius
   Int_t                  fType;                   // jet type (0=all, 1=ch, 2=neutral)
-  Double_t               fMinJetTrackPt;          // min jet track momentum
-  Double_t               fMinJetClusPt;           // min jet cluster momentum
+  Double_t               fMinJetTrackPt;          // min jet track momentum   (applied before clustering)
+  Double_t               fMinJetClusPt;           // min jet cluster momentum (applied before clustering)
+  Double_t               fMinJetArea;             // min area to keep jet in output
+  Double_t               fMinJetPt;               // min jet pt to keep jet in output
   TClonesArray          *fJets;                   //!jet collection
+  AliVEvent             *fEvent;                  //!current event
 
  private:
   AliEmcalJetTask(const AliEmcalJetTask&);            // not implemented
   AliEmcalJetTask &operator=(const AliEmcalJetTask&); // not implemented
 
-  ClassDef(AliEmcalJetTask, 1) // Jet producing task
+  ClassDef(AliEmcalJetTask, 3) // Jet producing task
 };
 #endif