#include "AliAnalysisTaskSE.h"
class TFile;
-class TH2F;
+class TH1F;
+class TList;
+class TString;
+
+class AliESDEvent;
class AliCentralitySelectionTask : public AliAnalysisTaskSE {
void SetInput(const char* input) {fAnalysisInput = input;}
void SetMCInput() {fIsMCInput = kTRUE;}
- void SetPercentileFile(TString filename) {fCentfilename = filename;}
- void SetCentralityMethod(const char* x);
+ void SetPercentileFile(TString filename);
+ void SetPercentileFile2(TString filename);
+ void ReadCentralityHistos();
+ void ReadCentralityHistos2();
+
+ void AddPercentileFileToList(TString filename) { fFileList->Add(new TObjString(filename)); }
+ void AddPercentileFile2ToList(TString filename) { fFileList2->Add(new TObjString(filename)); }
private:
+
+ Int_t SetupRun(AliESDEvent* esd);
+
Int_t fDebug; // Debug flag
TString fAnalysisInput; // "ESD", "AOD"
Bool_t fIsMCInput; // true when input is MC
- TFile *fFile; // file that holds the centrality vs multiplicity
- TString fCentfilename; // name of this file
- TString fMethod; // method to select centrality
- Float_t fCent; // percentile centrality
- TH1D *fHtemp; // histogram with centrality vs multiplicity
-
+ TFile *fFile; // file that holds the centrality vs multiplicity 1d
+ TFile *fFile2; // file that holds the centrality vs multiplicity 2d
+ TString fCentfilename; // name of this file 1d
+ TString fCentfilename2; // name of this file 2d
+ TList* fFileList; //! list of input files names
+ TList* fFileList2; //! list of input files 2 names
+ Int_t fCurrentRun; // current run number
+
+ Float_t fCentV0M; // percentile centrality from V0
+ Float_t fCentFMD; // percentile centrality from FMD
+ Float_t fCentTRK; // percentile centrality from tracks
+ Float_t fCentTKL; // percentile centrality from tracklets
+ Float_t fCentCL0; // percentile centrality from clusters in layer 0
+ Float_t fCentCL1; // percentile centrality from clusters in layer 0
+ Float_t fCentV0MvsFMD; // percentile centrality from V0 vs FMD
+ Float_t fCentTKLvsV0M; // percentile centrality from tracklets vs V0
+ Float_t fCentZEMvsZDC; // percentile centrality from ZEM vs ZDC
+
+ TH1F *fHtempV0M; // histogram with centrality vs multiplicity using V0
+ TH1F *fHtempFMD; // histogram with centrality vs multiplicity using FMD
+ TH1F *fHtempTRK; // histogram with centrality vs multiplicity using tracks
+ TH1F *fHtempTKL; // histogram with centrality vs multiplicity using tracklets
+ TH1F *fHtempCL0; // histogram with centrality vs multiplicity using clusters in layer 0
+ TH1F *fHtempCL1; // histogram with centrality vs multiplicity using clusters in layer 0
+ TH1F *fHtempV0MvsFMD; // histogram with centrality vs multiplicity using V0 vs FMD
+ TH1F *fHtempTKLvsV0M; // histogram with centrality vs multiplicity using tracklets vs V0
+ TH1F *fHtempZEMvsZDC; // histogram with centrality vs multiplicity using ZEM vs ZDC
+
ClassDef(AliCentralitySelectionTask,1);
};