1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
6 #ifndef AliAnalysisTaskLeeYangZeros_H
7 #define AliAnalysisTaskLeeYangZeros_H
9 // AliAnalysisTaskLeeYangZeros:
11 // Lee Yang Zeroes method
13 // Naomi van der Kolk (kolk@nikhef.nl)
18 class AliFlowAnalysisWithLeeYangZeros;
19 class AliFlowEventSimpleMaker;
24 #include "AliAnalysisTask.h"
26 class AliAnalysisTaskLeeYangZeros : public AliAnalysisTask {
28 //AliAnalysisTaskLeeYangZeros();
29 AliAnalysisTaskLeeYangZeros(const char *name = "AliAnalysisTaskLeeYangZeros", Bool_t firstrun = kTRUE);
30 virtual ~AliAnalysisTaskLeeYangZeros();
32 virtual void ConnectInputData(Option_t *);
33 virtual void CreateOutputObjects();
34 virtual void Exec(Option_t *option);
35 virtual void Terminate(Option_t *);
38 void SetFirstRunLYZ(Bool_t kt) { this->fFirstRunLYZ = kt ; }
39 Bool_t GetFirstRunLYZ() const { return this->fFirstRunLYZ ; }
40 void SetUseSumLYZ(Bool_t kt) { this->fUseSumLYZ = kt ; }
41 Bool_t GetUseSumLYZ() const { return this->fUseSumLYZ ; }
42 void SetAnalysisType(TString type) {this->fAnalysisType = type ; }
43 TString GetAnalysisType() {return this->fAnalysisType; }
44 void SetCFManager1(AliCFManager* cfmgr) {this->fCFManager1 = cfmgr; }
45 AliCFManager* GetCFManager1() {return this->fCFManager1; }
46 void SetCFManager2(AliCFManager* cfmgr) {this->fCFManager2 = cfmgr; }
47 AliCFManager* GetCFManager2() {return this->fCFManager2; }
52 AliAnalysisTaskLeeYangZeros(const AliAnalysisTaskLeeYangZeros& aAnalysis);
53 AliAnalysisTaskLeeYangZeros& operator=(const AliAnalysisTaskLeeYangZeros& aAnalysis);
55 AliESDEvent* fESD; //ESD object
56 AliAODEvent* fAOD; //AOD object
57 TString fAnalysisType; //string to select which kind of input to analyse: ESD, AOD or MC
58 AliCFManager* fCFManager1; // correction framework manager
59 AliCFManager* fCFManager2; // correction framework manager
60 AliFlowAnalysisWithLeeYangZeros* fLyz; //LYZ analysis object
61 AliFlowEventSimpleMaker* fEventMaker; //FlowEventSimple maker object
63 TFile* fFirstRunFile; // file from the first loop over events
64 TList* fListHistos; // collection of output
67 Bool_t fFirstRunLYZ ; //! flag for lyz analysis
68 Bool_t fUseSumLYZ ; //! flag for lyz analysis
71 ClassDef(AliAnalysisTaskLeeYangZeros, 1); // example of analysis