]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - JETAN/AliAnalysisTaskJets.h
Restoring the functionallity of the PAR files: partial fix
[u/mrichter/AliRoot.git] / JETAN / AliAnalysisTaskJets.h
index 02135d72673913b990919e9dcbb941f54a024a9a..bb0be0ebdf2f5858f7c985b822c52532848be3c3 100644 (file)
@@ -1,3 +1,6 @@
+//
+// Taks for jet finding in ALICE 
+//
 #ifndef ALIANALYSISTASKJETS_H
 #define ALIANALYSISTASKJETS_H
  
@@ -5,12 +8,17 @@
  * See cxx source for full Copyright notice                               */
  
 #include "AliAnalysisTaskSE.h"
+
+
 class AliJetFinder;
 class AliESDEvent;
-class TTree;
-class TChain;
 class AliAODEvent;
 class AliJetHistos;
+class AliAODExtension;
+class TTree;
+class TChain;
+class TString;
+
 
 
 class AliAnalysisTaskJets : public AliAnalysisTaskSE
@@ -25,24 +33,34 @@ class AliAnalysisTaskJets : public AliAnalysisTaskSE
     virtual void Init();
     virtual void LocalInit() {Init();}
     virtual void UserExec(Option_t *option);
-    virtual void SetConfigFile(const char *c){fConfigFile = c;}
+    virtual void SetConfigFile(const char *c) {fConfigFile = c;}
+    virtual void SetJetFinder(AliJetFinder *finder) {fJetFinder = finder;}
     virtual void SetNonStdBranch(const char *c){fNonStdBranch = c;}
+    virtual const char* GetNonStdBranch(){return fNonStdBranch.Data();}
+    virtual void SetNonStdOutputFile(const char *c){fNonStdFile = c;}
+    virtual void SetBookAODBackground(Bool_t b){fUseAODBackground = b;}
     virtual void Terminate(Option_t *option);
-
+    virtual void ReadAODFromOutput() {fReadAODFromOutput = kTRUE;}
+    virtual void SetFilterPt(Float_t f){fFilterPt = f;}
+    
  private:
   AliAnalysisTaskJets(const AliAnalysisTaskJets &det);
   AliAnalysisTaskJets &operator=(const AliAnalysisTaskJets &det);
     
  private:
-  TString       fConfigFile;      // the name of the ConfigFile
-  TString       fNonStdBranch;    // the name of the non-std branch name//commented by syssy
-  AliJetFinder* fJetFinder;       //  Pointer to the jet finder 
-  AliJetHistos* fHistos;          //  Histogram manager class
-  TList*        fListOfHistos;    //  Output list of histograms
-  TChain*       fChain;           //  Chain 
-  Int_t         fOpt;             //  Detector configuration used
-
-  ClassDef(AliAnalysisTaskJets, 3); // Analysis task for standard jet analysis
+  TString       fConfigFile;        // the name of the ConfigFile
+  TString       fNonStdBranch;      // the name of the non-std branch name
+  TString       fNonStdFile;        // The optional name of the output file the non-std brnach is written to
+  AliJetFinder* fJetFinder;         //  Pointer to the jet finder 
+  AliJetHistos* fHistos;            //  Histogram manager class
+  AliAODExtension* fAODExtension;   //  AOD extension we in case we write a non-sdt brnach to a separate file and the aod is standard
+  TList*        fListOfHistos;      //  Output list of histograms
+  TChain*       fChain;             //  Chain 
+  Int_t         fOpt;               //  Detector configuration used
+  Bool_t        fReadAODFromOutput; //  Force reading of the AOD from the output
+  Bool_t        fUseAODBackground;  // decide wether we book the backround branch or not 
+  Float_t       fFilterPt;          // use this as a switch for writing the AOD, minium p_T of leading jet   
+  ClassDef(AliAnalysisTaskJets, 7); // Analysis task for standard jet analysis
 };
  
 #endif