]>
Commit | Line | Data |
---|---|---|
dcd68d00 | 1 | #ifndef ALICENTRALITYSELECTIONTASK_H |
2 | #define ALICENTRALITYSELECTIONTASK_H | |
3 | ||
4 | /* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | //***************************************************** | |
8 | // Class AliCentralitySelectionTask | |
9 | // author: Alberica Toia | |
10 | //***************************************************** | |
11 | ||
12 | #include "AliAnalysisTaskSE.h" | |
13 | ||
14 | class TFile; | |
9f14d90a | 15 | class TH1F; |
68e344b7 | 16 | class TList; |
9f14d90a | 17 | class TString; |
68e344b7 | 18 | |
19 | class AliESDEvent; | |
dcd68d00 | 20 | |
21 | class AliCentralitySelectionTask : public AliAnalysisTaskSE { | |
22 | ||
23 | public: | |
24 | ||
25 | AliCentralitySelectionTask(); | |
26 | AliCentralitySelectionTask(const char *name); | |
27 | AliCentralitySelectionTask& operator= (const AliCentralitySelectionTask& ana); | |
28 | AliCentralitySelectionTask(const AliCentralitySelectionTask& c); | |
29 | virtual ~AliCentralitySelectionTask(); | |
30 | ||
31 | // Implementation of interface methods | |
32 | virtual void UserCreateOutputObjects(); | |
33 | virtual void UserExec(Option_t *option); | |
34 | virtual void Terminate(Option_t *option); | |
35 | ||
36 | virtual void SetDebugLevel(Int_t level) {fDebug = level;} | |
37 | void SetInput(const char* input) {fAnalysisInput = input;} | |
38 | void SetMCInput() {fIsMCInput = kTRUE;} | |
39 | ||
d15bf53f | 40 | void SetPercentileFile(TString filename); |
41 | void SetPercentileFile2(TString filename); | |
42 | void ReadCentralityHistos(); | |
43 | void ReadCentralityHistos2(); | |
dcd68d00 | 44 | |
68e344b7 | 45 | void AddPercentileFileToList(TString filename) { fFileList->Add(new TObjString(filename)); } |
46 | void AddPercentileFile2ToList(TString filename) { fFileList2->Add(new TObjString(filename)); } | |
47 | ||
dcd68d00 | 48 | private: |
68e344b7 | 49 | |
50 | Int_t SetupRun(AliESDEvent* esd); | |
51 | ||
dcd68d00 | 52 | Int_t fDebug; // Debug flag |
53 | TString fAnalysisInput; // "ESD", "AOD" | |
54 | Bool_t fIsMCInput; // true when input is MC | |
d15bf53f | 55 | TFile *fFile; // file that holds the centrality vs multiplicity 1d |
68e344b7 | 56 | TFile *fFile2; // file that holds the centrality vs multiplicity 2d |
d15bf53f | 57 | TString fCentfilename; // name of this file 1d |
68e344b7 | 58 | TString fCentfilename2; // name of this file 2d |
59 | ||
9f14d90a | 60 | TList* fFileList; //! list of input files names |
61 | TList* fFileList2; //! list of input files 2 names | |
68e344b7 | 62 | Int_t fCurrentRun; // current run number |
d15bf53f | 63 | |
64 | Float_t fCentV0M; // percentile centrality from V0 | |
65 | Float_t fCentFMD; // percentile centrality from FMD | |
66 | Float_t fCentTRK; // percentile centrality from tracks | |
67 | Float_t fCentTKL; // percentile centrality from tracklets | |
68 | Float_t fCentCL0; // percentile centrality from clusters in layer 0 | |
be0d4e9b | 69 | Float_t fCentCL1; // percentile centrality from clusters in layer 0 |
d15bf53f | 70 | Float_t fCentV0MvsFMD; // percentile centrality from V0 vs FMD |
71 | Float_t fCentTKLvsV0M; // percentile centrality from tracklets vs V0 | |
72 | Float_t fCentZEMvsZDC; // percentile centrality from ZEM vs ZDC | |
73 | ||
9f14d90a | 74 | TH1F *fHtempV0M; // histogram with centrality vs multiplicity using V0 |
75 | TH1F *fHtempFMD; // histogram with centrality vs multiplicity using FMD | |
76 | TH1F *fHtempTRK; // histogram with centrality vs multiplicity using tracks | |
77 | TH1F *fHtempTKL; // histogram with centrality vs multiplicity using tracklets | |
78 | TH1F *fHtempCL0; // histogram with centrality vs multiplicity using clusters in layer 0 | |
79 | TH1F *fHtempCL1; // histogram with centrality vs multiplicity using clusters in layer 0 | |
80 | TH1F *fHtempV0MvsFMD; // histogram with centrality vs multiplicity using V0 vs FMD | |
81 | TH1F *fHtempTKLvsV0M; // histogram with centrality vs multiplicity using tracklets vs V0 | |
82 | TH1F *fHtempZEMvsZDC; // histogram with centrality vs multiplicity using ZEM vs ZDC | |
d15bf53f | 83 | |
dcd68d00 | 84 | ClassDef(AliCentralitySelectionTask,1); |
85 | ||
86 | }; | |
87 | ||
88 | #endif | |
89 |