]> git.uio.no Git - u/mrichter/AliRoot.git/blob - JETAN/AliAnalysisTaskJets.h
Added option to write non-std jet branch and jet background to a separate file, added...
[u/mrichter/AliRoot.git] / JETAN / AliAnalysisTaskJets.h
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  
7 #include "AliAnalysisTaskSE.h"
8 class AliJetFinder;
9 class AliESDEvent;
10 class TTree;
11 class TChain;
12 class AliAODEvent;
13 class AliJetHistos;
14 class AliAODExtension;
15
16
17 class AliAnalysisTaskJets : public AliAnalysisTaskSE
18 {
19  public:
20     AliAnalysisTaskJets();
21     AliAnalysisTaskJets(const char* name);
22     AliAnalysisTaskJets(const char* name, TChain* chain);
23     virtual ~AliAnalysisTaskJets() {;}
24     // Implementation of interface methods
25     virtual void UserCreateOutputObjects();
26     virtual void Init();
27     virtual void LocalInit() {Init();}
28     virtual void UserExec(Option_t *option);
29     virtual void SetConfigFile(const char *c) {fConfigFile = c;}
30     virtual void SetJetFinder(AliJetFinder *finder) {fJetFinder = finder;}
31     virtual void SetNonStdBranch(const char *c){fNonStdBranch = c;}
32     virtual void SetNonStdOutputFile(const char *c){fNonStdFile = c;}
33     virtual void Terminate(Option_t *option);
34
35  private:
36   AliAnalysisTaskJets(const AliAnalysisTaskJets &det);
37   AliAnalysisTaskJets &operator=(const AliAnalysisTaskJets &det);
38     
39  private:
40   TString       fConfigFile;      // the name of the ConfigFile
41   TString       fNonStdBranch;    // the name of the non-std branch name
42   TString       fNonStdFile;      // The optional name of the output file the non-std brnach is written to
43   AliJetFinder* fJetFinder;       //  Pointer to the jet finder 
44   AliJetHistos* fHistos;          //  Histogram manager class
45   AliAODExtension* fAODExtension; //  AOD extension we in case we write a non-sdt brnach to a separate file and the aod is standard
46   TList*        fListOfHistos;    //  Output list of histograms
47   TChain*       fChain;           //  Chain 
48   Int_t         fOpt;             //  Detector configuration used
49
50   ClassDef(AliAnalysisTaskJets, 4); // Analysis task for standard jet analysis
51 };
52  
53 #endif