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