Compatibility with ROOT trunk
[u/mrichter/AliRoot.git] / JETAN / AliAnalysisTaskJets.h
CommitLineData
f0659f11 1//
2// Taks for jet finding in ALICE
3//
e5b96aa0 4#ifndef ALIANALYSISTASKJETS_H
5#define ALIANALYSISTASKJETS_H
6
7/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
8 * See cxx source for full Copyright notice */
9
ae24a5a1 10#include "AliAnalysisTaskSE.h"
95345ec0 11
12
e5b96aa0 13class AliJetFinder;
1b307662 14class AliESDEvent;
1d27ecd2 15class AliAODEvent;
22003a60 16class AliJetHistos;
931c23a1 17class AliAODExtension;
95345ec0 18class TTree;
19class TChain;
20class TString;
21
1f234ace 22
22003a60 23
ae24a5a1 24class AliAnalysisTaskJets : public AliAnalysisTaskSE
e5b96aa0 25{
19e6695b 26 public:
27 AliAnalysisTaskJets();
28 AliAnalysisTaskJets(const char* name);
8838ab7a 29 AliAnalysisTaskJets(const char* name, TChain* chain);
19e6695b 30 virtual ~AliAnalysisTaskJets() {;}
31 // Implementation of interface methods
ae24a5a1 32 virtual void UserCreateOutputObjects();
19e6695b 33 virtual void Init();
76c48857 34 virtual void LocalInit() {Init();}
ae24a5a1 35 virtual void UserExec(Option_t *option);
4c4a95c4 36 virtual void SetConfigFile(const char *c) {fConfigFile = c;}
37 virtual void SetJetFinder(AliJetFinder *finder) {fJetFinder = finder;}
4aa71b6f 38 virtual void SetNonStdBranch(const char *c){fNonStdBranch = c;}
b5b166c5 39 virtual const char* GetNonStdBranch(){return fNonStdBranch.Data();}
931c23a1 40 virtual void SetNonStdOutputFile(const char *c){fNonStdFile = c;}
21ead515 41 virtual void SetBookAODBackground(Bool_t b){fUseAODBackground = b;}
19e6695b 42 virtual void Terminate(Option_t *option);
0f4a88df 43 virtual void ReadAODFromOutput() {fReadAODFromOutput = kTRUE;}
0b64955a 44 virtual void SetFilterPt(Float_t f){fFilterPt = f;}
0f4a88df 45
9e4cc50d 46 private:
47 AliAnalysisTaskJets(const AliAnalysisTaskJets &det);
48 AliAnalysisTaskJets &operator=(const AliAnalysisTaskJets &det);
19e6695b 49
e5b96aa0 50 private:
0f4a88df 51 TString fConfigFile; // the name of the ConfigFile
52 TString fNonStdBranch; // the name of the non-std branch name
53 TString fNonStdFile; // The optional name of the output file the non-std brnach is written to
54 AliJetFinder* fJetFinder; // Pointer to the jet finder
55 AliJetHistos* fHistos; // Histogram manager class
56 AliAODExtension* fAODExtension; // AOD extension we in case we write a non-sdt brnach to a separate file and the aod is standard
57 TList* fListOfHistos; // Output list of histograms
58 TChain* fChain; // Chain
59 Int_t fOpt; // Detector configuration used
60 Bool_t fReadAODFromOutput; // Force reading of the AOD from the output
21ead515 61 Bool_t fUseAODBackground; // decide wether we book the backround branch or not
0b64955a 62 Float_t fFilterPt; // use this as a switch for writing the AOD, minium p_T of leading jet
b5b166c5 63 ClassDef(AliAnalysisTaskJets, 7); // Analysis task for standard jet analysis
e5b96aa0 64};
65
66#endif