2 // Taks for jet finding in ALICE
4 #ifndef ALIANALYSISTASKJETS_H
5 #define ALIANALYSISTASKJETS_H
7 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
8 * See cxx source for full Copyright notice */
10 #include "AliAnalysisTaskSE.h"
17 class AliAODExtension;
24 class AliAnalysisTaskJets : public AliAnalysisTaskSE
27 AliAnalysisTaskJets();
28 AliAnalysisTaskJets(const char* name);
29 AliAnalysisTaskJets(const char* name, TChain* chain);
30 virtual ~AliAnalysisTaskJets() {;}
31 // Implementation of interface methods
32 virtual void UserCreateOutputObjects();
34 virtual void LocalInit() {Init();}
35 virtual void UserExec(Option_t *option);
37 virtual void SetConfigFile(const char *c) {fConfigFile = c;}
38 virtual void SetJetFinder(AliJetFinder *finder) {fJetFinder = finder;}
39 virtual void SetNonStdBranch(const char *c){fNonStdBranch = c;}
40 virtual const char* GetNonStdBranch(){return fNonStdBranch.Data();}
41 virtual void SetNonStdOutputFile(const char *c){fNonStdFile = c;}
42 virtual const char* GetNonStdOutputFile() {return fNonStdFile.Data();}
43 virtual void SetBookAODBackground(Bool_t b){fUseAODBackground = b;}
44 virtual void Terminate(Option_t *option);
45 virtual void ReadAODFromOutput() {fReadAODFromOutput = kTRUE;}
46 virtual void SetFilterPt(Float_t f){fFilterPt = f;}
49 AliAnalysisTaskJets(const AliAnalysisTaskJets &det);
50 AliAnalysisTaskJets &operator=(const AliAnalysisTaskJets &det);
53 TString fConfigFile; // the name of the ConfigFile
54 TString fNonStdBranch; // the name of the non-std branch name
55 TString fNonStdFile; // The optional name of the output file the non-std brnach is written to
56 AliJetFinder* fJetFinder; // Pointer to the jet finder
57 AliJetHistos* fHistos; // Histogram manager class
58 AliAODExtension* fAODExtension; // AOD extension we in case we write a non-sdt brnach to a separate file and the aod is standard
59 TList* fListOfHistos; // Output list of histograms
60 TChain* fChain; // Chain
61 Int_t fOpt; // Detector configuration used
62 Bool_t fReadAODFromOutput; // Force reading of the AOD from the output
63 Bool_t fUseAODBackground; // decide wether we book the backround branch or not
64 Float_t fFilterPt; // use this as a switch for writing the AOD, minium p_T of leading jet
65 ClassDef(AliAnalysisTaskJets, 7); // Analysis task for standard jet analysis