2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved.
3 * See cxx source for full Copyright notice
7 /**********************************
8 * flow analysis with Q-cumulants *
10 * author: Ante Bilandzic *
12 *********************************/
14 #ifndef ALIFLOWANALYSISWITHQCUMULANTS_H
15 #define ALIFLOWANALYSISWITHQCUMULANTS_H
17 #include "AliFlowCommonConstants.h" // needed as include
31 class AliFlowEventSimple;
34 class AliFlowCommonHist;
35 class AliFlowCommonHistResults;
37 //================================================================================================================
39 class AliFlowAnalysisWithQCumulants{
41 AliFlowAnalysisWithQCumulants();
42 virtual ~AliFlowAnalysisWithQCumulants();
43 // 0.) methods called in the constructor:
44 virtual void InitializeArraysForIntFlow();
45 virtual void InitializeArraysForDiffFlow();
46 virtual void InitializeArraysForDistributions();
47 // 1.) method Init() and methods called within Init():
49 virtual void AccessConstants();
50 virtual void BookAndNestAllLists();
51 virtual void BookCommonHistograms();
52 virtual void BookAndFillWeightsHistograms();
53 virtual void BookEverythingForIntegratedFlow();
54 virtual void BookEverythingForDifferentialFlow();
55 virtual void BookEverythingForDistributions();
56 virtual void BookEverythingForNestedLoops();
57 // 2.) method Make() and methods called within Make():
58 virtual void Make(AliFlowEventSimple *anEvent);
59 // 2a.) integrated flow:
60 virtual void FillAverageMultiplicities(Int_t nRP);
61 virtual void CalculateCorrelationsForIntegratedFlow();
62 virtual void CalculateCorrectionsForNonUniformAcceptanceForIntFlowCosTerms();
63 virtual void CalculateCorrectionsForNonUniformAcceptanceForIntFlowSinTerms();
64 virtual void CalculateQProductsForIntFlow();
65 virtual void CalculateSumAndProductOfEventWeights();
66 virtual void CalculateWeightedCorrelationsForIntegratedFlow();
67 virtual void CalculateWeightedQProductsForIntFlow();
68 virtual void EvaluateNestedLoopsForIntegratedFlow(AliFlowEventSimple* anEvent);
69 // 2b.) differential flow:
70 virtual void CalculateCorrelationsForDifferentialFlow(TString type);
71 virtual void CalculateCorrectionsForNonUniformAcceptanceForDifferentialFlowCosTerms(TString type);
72 virtual void CalculateCorrectionsForNonUniformAcceptanceForDifferentialFlowSinTerms(TString type);
73 virtual void CalculateWeightedCorrelationsForDifferentialFlow(TString type);
74 virtual void EvaluateNestedLoopsForDifferentialFlow(AliFlowEventSimple* anEvent);
75 // 3.) method Finish() and methods called within Finish():
76 virtual void Finish();
77 // 3a.) integrated flow:
78 virtual void FinalizeCorrelationsForIntFlow(Bool_t useParticleWeights, TString eventWeights);
79 virtual void CalculateFinalCorrectionsForNonUniformAcceptanceForCumulantsForIntFlow(Bool_t useParticleWeights, TString eventWeights);
80 virtual void CalculateCovariancesForIntFlow(Bool_t useParticleWeights, TString eventWeights);
81 virtual void CalculateCumulantsForIntFlow(Bool_t useParticleWeights, TString eventWeights);
82 virtual void ApplyCorrectionForNonUniformAcceptanceToCumulantsForIntFlow(Bool_t useParticleWeights, TString eventWeights);
83 virtual void CalculateIntFlow(Bool_t useParticleWeights, TString eventWeights, Bool_t correctedForNUA);
84 virtual void FillCommonHistResultsIntFlow(Bool_t useParticleWeights, TString eventWeights, Bool_t correctedForNUA);
85 virtual void PrintQuantifyingCorrectionsForNonUniformAcceptance(Bool_t useParticleWeights, TString eventWeights);
86 virtual void PrintFinalResultsForIntegratedFlow(TString type);
87 virtual void CompareResultsFromNestedLoopsAndFromQVectorsForIntFlow(Bool_t useParticleWeights);
88 // 3b.) differential flow:
89 virtual void FinalizeCorrelationsForDiffFlow(TString type, Bool_t useParticleWeights, TString eventWeights);
90 virtual void CalculateFinalCorrectionsForNonUniformAcceptanceForDifferentialFlow(Bool_t useParticleWeights, TString type);
91 virtual void CalculateCumulantsForDiffFlow(TString type, Bool_t useParticleWeights, TString eventWeights);
92 virtual void CalculateDiffFlow(TString type, Bool_t useParticleWeights, TString eventWeights);
93 virtual void FillCommonHistResultsDiffFlow(TString type, Bool_t useParticleWeights, TString eventWeights, Bool_t correctedForNUA);
94 virtual void CalculateFinalResultsForRPandPOIIntegratedFlow(TString type, Bool_t useParticleWeights, TString eventWeights);
95 virtual void CompareResultsFromNestedLoopsAndFromQVectorsForDiffFlow(Bool_t useParticleWeights);
97 TProfile* MakePtProjection(TProfile2D *profilePtEta) const;
98 TProfile* MakeEtaProjection(TProfile2D *profilePtEta) const;
99 virtual void GetOutputHistograms(TList *outputListHistos);
100 virtual void WriteHistograms(TString outputFileName);
102 // **** SETTERS and GETTERS ****
105 TList* GetHistList() const {return this->fHistList;}
108 void SetCommonHists(AliFlowCommonHist* const ch) {this->fCommonHists = ch;};
109 AliFlowCommonHist* GetCommonHists() const {return this->fCommonHists;};
110 void SetCommonHists2nd(AliFlowCommonHist* const ch2nd) {this->fCommonHists2nd = ch2nd;};
111 AliFlowCommonHist* GetCommonHists2nd() const {return this->fCommonHists2nd;};
112 void SetCommonHists4th(AliFlowCommonHist* const ch4th) {this->fCommonHists4th = ch4th;};
113 AliFlowCommonHist* GetCommonHists4th() const {return this->fCommonHists4th;};
114 void SetCommonHists6th(AliFlowCommonHist* const ch6th) {this->fCommonHists6th = ch6th;};
115 AliFlowCommonHist* GetCommonHists6th() const {return this->fCommonHists6th;};
116 void SetCommonHists8th(AliFlowCommonHist* const ch8th) {this->fCommonHists8th = ch8th;};
117 AliFlowCommonHist* GetCommonHists8th() const {return this->fCommonHists8th;};
118 void SetCommonHistsResults2nd(AliFlowCommonHistResults* const chr2nd) {this->fCommonHistsResults2nd = chr2nd;};
119 AliFlowCommonHistResults* GetCommonHistsResults2nd() const {return this->fCommonHistsResults2nd;};
120 void SetCommonHistsResults4th(AliFlowCommonHistResults* const chr4th) {this->fCommonHistsResults4th = chr4th;};
121 AliFlowCommonHistResults* GetCommonHistsResults4th() const {return this->fCommonHistsResults4th;};
122 void SetCommonHistsResults6th(AliFlowCommonHistResults* const chr6th) {this->fCommonHistsResults6th = chr6th;};
123 AliFlowCommonHistResults* GetCommonHistsResults6th() const {return this->fCommonHistsResults6th;};
124 void SetCommonHistsResults8th(AliFlowCommonHistResults* const chr8th) {this->fCommonHistsResults8th = chr8th;};
125 AliFlowCommonHistResults* GetCommonHistsResults8th() const {return this->fCommonHistsResults8th;};
126 void SetHarmonic(Int_t const harmonic) {this->fHarmonic = harmonic;};
127 Int_t GetHarmonic() const {return this->fHarmonic;};
130 void SetWeightsList(TList* wlist) {this->fWeightsList = wlist;}
131 TList* GetWeightsList() const {return this->fWeightsList;}
132 void SetUsePhiWeights(Bool_t const uPhiW) {this->fUsePhiWeights = uPhiW;};
133 Bool_t GetUsePhiWeights() const {return this->fUsePhiWeights;};
134 void SetUsePtWeights(Bool_t const uPtW) {this->fUsePtWeights = uPtW;};
135 Bool_t GetUsePtWeights() const {return this->fUsePtWeights;};
136 void SetUseEtaWeights(Bool_t const uEtaW) {this->fUseEtaWeights = uEtaW;};
137 Bool_t GetUseEtaWeights() const {return this->fUseEtaWeights;};
138 void SetUseParticleWeights(TProfile* const uPW) {this->fUseParticleWeights = uPW;};
139 TProfile* GetUseParticleWeights() const {return this->fUseParticleWeights;};
140 void SetPhiWeights(TH1F* const histPhiWeights) {this->fPhiWeights = histPhiWeights;};
141 TH1F* GetPhiWeights() const {return this->fPhiWeights;};
142 void SetPtWeights(TH1D* const histPtWeights) {this->fPtWeights = histPtWeights;};
143 TH1D* GetPtWeights() const {return this->fPtWeights;};
144 void SetEtaWeights(TH1D* const histEtaWeights) {this->fEtaWeights = histEtaWeights;};
145 TH1D* GetEtaWeights() const {return this->fEtaWeights;};
147 // 3.) integrated flow:
148 // integrated flow profiles:
149 void SetAvMultiplicity(TProfile* const avMultiplicity) {this->fAvMultiplicity = avMultiplicity;};
150 TProfile* GetAvMultiplicity() const {return this->fAvMultiplicity;};
151 void SetQCorrelations(TProfile* const qCorrel, Int_t pW, Int_t eW) {this->fQCorrelations[pW][eW] = qCorrel;};
152 TProfile* GetQCorrelations(Int_t pW, Int_t eW) const {return this->fQCorrelations[pW][eW];};
153 void SetQProducts(TProfile* const qProduct, Int_t pW, Int_t eW) {this->fQProducts[pW][eW] = qProduct;};
154 TProfile* GetQProducts(Int_t pW, Int_t eW) const {return this->fQProducts[pW][eW];};
155 void SetQCorrections(TProfile* const qCorrections, Int_t pW, Int_t eW, Int_t sc) {this->fQCorrections[pW][eW][sc] = qCorrections;};
156 TProfile* GetQCorrections(Int_t pW, Int_t eW, Int_t sc) const {return this->fQCorrections[pW][eW][sc];};
157 // integrated flow results:
158 void SetCorrelations(TH1D* const correl, Int_t pW, Int_t eW) {this->fCorrelations[pW][eW] = correl;};
159 TH1D* GetCorrelations(Int_t pW, Int_t eW) const {return this->fCorrelations[pW][eW];};
160 void SetCorrections(TH1D* const correct, Int_t pW, Int_t eW) {this->fCorrections[pW][eW] = correct;};
161 TH1D* GetCorrections(Int_t pW, Int_t eW) const {return this->fCorrections[pW][eW];};
162 void SetCovariances(TH1D* const cov, Int_t pW, Int_t eW) {this->fCovariances[pW][eW] = cov;};
163 TH1D* GetCovariances(Int_t pW, Int_t eW) const {return this->fCovariances[pW][eW];};
164 void SetSumOfEventWeights(TH1D* const soew, Int_t pW, Int_t eW, Int_t power) {this->fSumOfEventWeights[pW][eW][power] = soew;};
165 TH1D* GetSumOfEventWeights(Int_t pW, Int_t eW, Int_t power) const {return this->fSumOfEventWeights[pW][eW][power];};
166 void SetProductOfEventWeights(TH1D* const poew, Int_t pW, Int_t eW) {this->fProductOfEventWeights[pW][eW] = poew;};
167 TH1D* GetProductOfEventWeights(Int_t pW, Int_t eW) const {return this->fProductOfEventWeights[pW][eW];};
168 void SetCumulants(TH1D* const cumulants, Int_t pW, Int_t eW, Int_t nua) {this->fCumulants[pW][eW][nua] = cumulants;};
169 TH1D* GetCumulants(Int_t pW, Int_t eW, Int_t nua) const {return this->fCumulants[pW][eW][nua];};
170 void SetIntFlow(TH1D* const intFlow, Int_t pW, Int_t eW, Int_t nua) {this->fIntFlow[pW][eW][nua] = intFlow;};
171 TH1D* GetIntFlow(Int_t pW, Int_t eW, Int_t nua) const {return this->fIntFlow[pW][eW][nua];};
173 // 4.) differential flow:
175 void SetCorrelationsPro(TProfile2D* const correlPro, Int_t i, Int_t j, Int_t k, Int_t l) {this->fCorrelationsPro[i][j][k][l] = correlPro;};
176 TProfile2D* GetCorrelationsPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fCorrelationsPro[i][j][k][l];};
177 void SetProductsOfCorrelationsPro(TProfile2D* const proOfcorrelPro, Int_t i, Int_t j, Int_t k, Int_t l) {this->fProductsOfCorrelationsPro[i][j][k][l] = proOfcorrelPro;};
178 TProfile2D* GetProductsOfCorrelationsPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fProductsOfCorrelationsPro[i][j][k][l];};
179 void SetCorrectionTermsPro(TProfile2D* const correctTermsPro, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fCorrectionTermsPro[i][j][k][l][m] = correctTermsPro;};
180 TProfile2D* GetCorrectionTermsPro(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fCorrectionTermsPro[i][j][k][l][m];};
182 void SetFinalCorrelations2D(TH2D* const fCorrelations2D, Int_t i, Int_t j, Int_t k, Int_t l) {this->fFinalCorrelations2D[i][j][k][l] = fCorrelations2D;};
183 TH2D* GetFinalCorrelations2D(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fFinalCorrelations2D[i][j][k][l];};
184 void SetFinalCorrelations1D(TH1D* const fCorrelations1D, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalCorrelations1D[i][j][k][l][m] = fCorrelations1D;};
185 TH1D* GetFinalCorrelations1D(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalCorrelations1D[i][j][k][l][m];};
186 void SetFinalCorrections2D(TH2D* const fCorrections2D, Int_t i, Int_t j, Int_t k, Int_t l) {this->fFinalCorrections2D[i][j][k][l] = fCorrections2D;};
187 TH2D* GetFinalCorrections2D(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fFinalCorrections2D[i][j][k][l];};
188 void SetFinalCorrections1D(TH1D* const fCorrections1D, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalCorrections1D[i][j][k][l][m] = fCorrections1D;};
189 TH1D* GetFinalCorrections1D(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalCorrections1D[i][j][k][l][m];};
190 void SetFinalCovariances2D(TH2D* const fCovariances2D, Int_t i, Int_t j, Int_t k, Int_t l) {this->fFinalCovariances2D[i][j][k][l] = fCovariances2D;};
191 TH2D* GetFinalCovariances2D(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fFinalCovariances2D[i][j][k][l];};
192 void SetFinalCovariances1D(TH1D* const fCovariances1D, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalCovariances1D[i][j][k][l][m] = fCovariances1D;};
193 TH1D* GetFinalCovariances1D(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalCovariances1D[i][j][k][l][m];};
194 void SetFinalCumulants2D(TH2D* const fCumulants2D, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalCumulants2D[i][j][k][l][m] = fCumulants2D;};
195 TH2D* GetFinalCumulants2D(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalCumulants2D[i][j][k][l][m];};
196 void SetFinalCumulantsPt(TH1D* const fCumulantsPt, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalCumulantsPt[i][j][k][l][m] = fCumulantsPt;};
197 TH1D* GetFinalCumulantsPt(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalCumulantsPt[i][j][k][l][m];};
198 void SetFinalCumulantsEta(TH1D* const fCumulantsEta, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalCumulantsEta[i][j][k][l][m] = fCumulantsEta;};
199 TH1D* GetFinalCumulantsEta(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalCumulantsEta[i][j][k][l][m];};
200 void SetFinalFlow2D(TH2D* const fFlow2D, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalFlow2D[i][j][k][l][m] = fFlow2D;};
201 TH2D* GetFinalFlow2D(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalFlow2D[i][j][k][l][m];};
202 void SetFinalFlowPt(TH1D* const fFlowPt, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalFlowPt[i][j][k][l][m] = fFlowPt;};
203 TH1D* GetFinalFlowPt(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalFlowPt[i][j][k][l][m];};
204 void SetFinalFlowEta(TH1D* const fFlowEta, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalFlowEta[i][j][k][l][m] = fFlowEta;};
205 TH1D* GetFinalFlowEta(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalFlowEta[i][j][k][l][m];};
206 void SetNonEmptyBins2D(TH2D* const fneb2D, Int_t i) {this->fNonEmptyBins2D[i] = fneb2D;};
207 TH2D* GetNonEmptyBins2D(Int_t i) const {return this->fNonEmptyBins2D[i];};
208 void SetNonEmptyBins1D(TH1D* const fneb1D, Int_t i, Int_t j) {this->fNonEmptyBins1D[i][j] = fneb1D;};
209 TH1D* GetNonEmptyBins1D(Int_t i, Int_t j) const {return this->fNonEmptyBins1D[i][j];};
212 // x.) debugging and cross-checking:
213 void SetNestedLoopsList(TList* nllist) {this->fNestedLoopsList = nllist;};
214 TList* GetNestedLoopsList() const {return this->fNestedLoopsList;};
215 void SetEvaluateNestedLoopsForIntFlow(Bool_t const enlfif) {this->fEvaluateNestedLoopsForIntFlow = enlfif;};
216 Bool_t GetEvaluateNestedLoopsForIntFlow() const {return this->fEvaluateNestedLoopsForIntFlow;};
217 void SetEvaluateNestedLoopsForDiffFlow(Bool_t const enlfdf) {this->fEvaluateNestedLoopsForDiffFlow = enlfdf;};
218 Bool_t GetEvaluateNestedLoopsForDiffFlow() const {return this->fEvaluateNestedLoopsForDiffFlow;};
219 void SetEvaluateNestedLoops(TProfile* const enl) {this->fEvaluateNestedLoops = enl;};
220 TProfile* GetEvaluateNestedLoops() const {return this->fEvaluateNestedLoops;};
221 void SetDirectCorrelations(TProfile* const dc) {this->fDirectCorrelations = dc;};
222 TProfile* GetDirectCorrelations() const {return this->fDirectCorrelations;};
223 void SetDirectCorrectionsCos(TProfile* const dcc) {this->fDirectCorrectionsCos = dcc;};
224 TProfile* GetDirectCorrectionsCos() const {return this->fDirectCorrectionsCos;};
225 void SetDirectCorrectionsSin(TProfile* const dcs) {this->fDirectCorrectionsSin = dcs;};
226 TProfile* GetDirectCorrectionsSin() const {return this->fDirectCorrectionsSin;};
227 void SetDirectCorrelationsDiffFlow(TProfile* const dcdf) {this->fDirectCorrelationsDiffFlow = dcdf;};
228 TProfile* GetDirectCorrelationsDiffFlow() const {return this->fDirectCorrelationsDiffFlow;};
229 void SetDirectCorrectionsDiffFlowCos(TProfile* const dcdfc) {this->fDirectCorrectionsDiffFlowCos = dcdfc;};
230 TProfile* GetDirectCorrectionsDiffFlowCos() const {return this->fDirectCorrectionsDiffFlowCos;};
231 void SetDirectCorrectionsDiffFlowSin(TProfile* const dcdfs) {this->fDirectCorrectionsDiffFlowSin = dcdfs;};
232 TProfile* GetDirectCorrectionsDiffFlowSin() const {return this->fDirectCorrectionsDiffFlowSin;};
233 void SetDirectCorrelationsW(TProfile* const dcw) {this->fDirectCorrelationsW = dcw;};
234 TProfile* GetDirectCorrelationsW() const {return this->fDirectCorrelationsW;};
235 void SetDirectCorrectionsCosW(TProfile* const dccw) {this->fDirectCorrectionsCosW = dccw;};
236 TProfile* GetDirectCorrectionsCosW() const {return this->fDirectCorrectionsCosW;};
237 void SetDirectCorrectionsSinW(TProfile* const dcsw) {this->fDirectCorrectionsSinW = dcsw;};
238 TProfile* GetDirectCorrectionsSinW() const {return this->fDirectCorrectionsSinW;};
239 void SetDirectCorrelationsDiffFlowW(TProfile* const dcdfw) {this->fDirectCorrelationsDiffFlowW = dcdfw;};
240 TProfile* GetDirectCorrelationsDiffFlowW() const {return this->fDirectCorrelationsDiffFlowW;};
241 void SetDirectCorrectionsDiffFlowCosW(TProfile* const dcdfcw) {this->fDirectCorrectionsDiffFlowCosW = dcdfcw;};
242 TProfile* GetDirectCorrectionsDiffFlowCosW() const {return this->fDirectCorrectionsDiffFlowCosW;};
243 void SetDirectCorrectionsDiffFlowSinW(TProfile* const dcdfsw) {this->fDirectCorrectionsDiffFlowSinW = dcdfsw;};
244 TProfile* GetDirectCorrectionsDiffFlowSinW() const {return this->fDirectCorrectionsDiffFlowSinW;};
248 AliFlowAnalysisWithQCumulants(const AliFlowAnalysisWithQCumulants& afawQc);
249 AliFlowAnalysisWithQCumulants& operator=(const AliFlowAnalysisWithQCumulants& afawQc);
252 TList* fHistList; // base list to hold all output object
255 AliFlowCommonHist *fCommonHists; // common control histograms (taking into account ALL events)
256 AliFlowCommonHist *fCommonHists2nd; // common control histograms (taking into account only the events with 2 and more particles)
257 AliFlowCommonHist *fCommonHists4th; // common control histograms (taking into account only the events with 4 and more particles)
258 AliFlowCommonHist *fCommonHists6th; // common control histograms (taking into account only the events with 6 and more particles)
259 AliFlowCommonHist *fCommonHists8th; // common control histograms (taking into account only the events with 8 and more particles)
260 AliFlowCommonHistResults *fCommonHistsResults2nd; // final results for 2nd order int. and diff. flow for events with 2 and more particles
261 AliFlowCommonHistResults *fCommonHistsResults4th; // final results for 4th order int. and diff. flow for events with 4 and more particles
262 AliFlowCommonHistResults *fCommonHistsResults6th; // final results for 6th order int. and diff. flow for events with 6 and more particles
263 AliFlowCommonHistResults *fCommonHistsResults8th; // final results for 8th order int. and diff. flow for events with 8 and more particles
264 Int_t fnBinsPhi; // number of phi bins
265 Double_t fPhiMin; // minimum phi
266 Double_t fPhiMax; // maximum phi
267 Double_t fPhiBinWidth; // bin width for phi histograms
268 Int_t fnBinsPt; // number of pt bins
269 Double_t fPtMin; // minimum pt
270 Double_t fPtMax; // maximum pt
271 Double_t fPtBinWidth; // bin width for pt histograms
272 Int_t fnBinsEta; // number of eta bins
273 Double_t fEtaMin; // minimum eta
274 Double_t fEtaMax; // maximum eta
275 Double_t fEtaBinWidth; // bin width for eta histograms
276 Int_t fHarmonic; // harmonic
279 TList *fWeightsList; // list to hold all histograms with particle weights: fUseParticleWeights, fPhiWeights, fPtWeights and fEtaWeights
280 Bool_t fUsePhiWeights; // use phi weights
281 Bool_t fUsePtWeights; // use pt weights
282 Bool_t fUseEtaWeights; // use eta weights
283 TProfile *fUseParticleWeights; // profile with three bins to hold values of fUsePhiWeights, fUsePtWeights and fUseEtaWeights
284 TH1F *fPhiWeights; // histogram holding phi weights
285 TH1D *fPtWeights; // histogram holding phi weights
286 TH1D *fEtaWeights; // histogram holding phi weights
288 // 3.) integrated flow
289 TList *fIntFlowList; // list to hold all histograms relevant for integrated flow
290 TList *fIntFlowProfiles; // list to hold all profiles relevant for integrated flow
291 TList *fIntFlowResults; // list to hold all histograms with final results relevant for integrated flow
292 // 3a.) event-by-event quantities:
293 TMatrixD *fReQ; // fReQ[m][k] = sum_{i=1}^{M} w_{i}^{k} cos(m*phi_{i})
294 TMatrixD *fImQ; // fImQ[m][k] = sum_{i=1}^{M} w_{i}^{k} sin(m*phi_{i})
295 TMatrixD *fSMpk; // fSM[p][k] = (sum_{i=1}^{M} w_{i}^{k})^{p}
296 TH1D *fQCorrelationsEBE[2]; // [0=weights not used,1=weights used]
297 TH1D *fQCorrectionsEBE[2][2]; // [0=weights not used,1=weights used][0=sin terms, 1=cos terms]
299 TProfile *fAvMultiplicity; // profile to hold average multiplicities and number of events for events with nRP>=0, nRP>=1, ... , and nRP>=8
300 TProfile *fQCorrelations[2][2]; // [0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
301 TProfile *fQProducts[2][2]; // [0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
302 TProfile *fQCorrections[2][2][2]; // [0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights][0=sin terms, 1=cos terms]
304 TH1D *fCorrelations[2][2]; // final results for average correlations: [0=pW not used,1=pW used][0=exact eW,1=non-exact eW]
305 TH1D *fCorrections[2][2]; // corrections for non-uniform acceptance to integrated Q-cumulants: [0=pW not used,1=pW used][0=exact eW,1=non-exact eW]
306 TH1D *fCovariances[2][2]; // covariances of multi-particle correlations: [0=pW not used,1=pW used][0=exact eW,1=non-exact eW]
307 TH1D *fSumOfEventWeights[2][2][2]; // [0=pW not used,1=pW used][0=exact eW,1=non-exact eW][0=power 1,1=power 2][0=eW for <2>, 1=eW for <4>, ...]
308 TH1D *fProductOfEventWeights[2][2]; // [0=pW not used,1=pW used][0=exact eW,1=non-exact eW][0=eWs for <2><4>, 1=eWs for <2><6>, ...]
309 TH1D *fCumulants[2][2][2]; // integrated Q-cumulants: [0=pW not used,1=pW used][0=exact eW,1=non-exact eW][0=not corrected, 1=corrected]
310 TH1D *fIntFlow[2][2][2]; // int. flow estimates from Q-cumulants: [0=pW not used,1=pW used][0=exact eW,1=non-exact eW][0=not corrected, 1=corrected]
313 // 4.) differential flow
314 TList *fDiffFlowList;
315 // nested lists to hold profiles:
316 TList *fDiffFlowProfiles; // list to hold all lists with profiles with correlations, correction terms for NUA and products of correlations
317 TList *fDFPType[2]; // [0=RP,1=POI]
318 TList *fDFPParticleWeights[2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used]
319 TList *fDFPEventWeights[2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
320 TList *fDiffFlowCorrelations[2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
321 TList *fDiffFlowProductsOfCorrelations[2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
322 TList *fDiffFlowCorrectionTerms[2][2][2][2]; // [0=RP,1=POI][0=pW not used,1=pW used][0=exact eWeights,1=non-exact eWeights][0=sin terms,1=cos terms]
323 // 4a.) event-by-event quantities:
324 TProfile2D *fReEBE[3][4][9]; // real part of r_{m*n,k}(pt,eta), p_{m*n,k}(pt,eta) and q_{m*n,k}(pt,eta)
325 TProfile2D *fImEBE[3][4][9]; // imaginary part of r_{m*n,k}(pt,eta), p_{m*n,k}(pt,eta) and q_{m*n,k}(pt,eta)
326 TProfile2D *fs[3][9]; // [t][k] // to be improved
328 TProfile2D *fCorrelationsPro[2][2][2][4]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights][corr.'s index]
329 TProfile2D *fProductsOfCorrelationsPro[2][2][2][5]; // [0=RP,1=POI][0=pW not used,1=pW used][0=exact eWeights,1=non-exact eWeights][products' index]
330 TProfile2D *fCorrectionTermsPro[2][2][2][2][2]; // [0=RP,1=POI][0=pW not used,1=pW used][0=e eW,1=ne eW][0=sin terms,1=cos terms][corr. terms' index]
331 // nested lists to hold histograms with results:
332 TList *fDiffFlowResults; // list to hold all lists with histos with results for diff. flow, cumulants, correlations, covariances and corrections
333 TList *fDFRType[2]; // [0=RP,1=POI]
334 TList *fDFRParticleWeights[2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used]
335 TList *fDFREventWeights[2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
336 TList *fDFRCorrections[2][2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights][0=not corr,1=corr]
337 TList *fDiffFlowFinalCorrelations[2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
338 TList *fDiffFlowFinalCorrections[2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
339 TList *fDiffFlowFinalCovariances[2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
340 TList *fDiffFlowFinalCumulants[2][2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eW,1=non-exact eW][0=not corr,1=corr]
341 TList *fDiffFlowFinalFlow[2][2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eW,1=non-exact eW][0=not corr,1=corr]
342 TH2D *fFinalCorrelations2D[2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=exact eW,1=non-exact eW][index of correlations]
343 TH1D *fFinalCorrelations1D[2][2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=exact eW,1=non-exact eW][0=pt,1=eta][index of correlations]
344 TH2D *fFinalCorrections2D[2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=exact eW,1=non-exact eW][corr.to cumulant of order]
345 TH1D *fFinalCorrections1D[2][2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=exact eW,1=non-exact eW][0=pt,1=eta][corr. to cumulant of order]
346 TH2D *fFinalCovariances2D[2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=exact eW,1=non-exact eW][index of covariances]
347 TH1D *fFinalCovariances1D[2][2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=exact eW,1=non-exact eW][0=pt,1=eta][index of covariances]
348 TH2D *fFinalCumulants2D[2][2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=e eW,1=ne eW][0=not corr,1=corr][cumulant's order]
349 TH1D *fFinalCumulantsPt[2][2][2][2][4]; // [0=RP,1=POI][0=pW nu,1=pW u][0=e eW,1=ne eW][0=nc,1=corr][cumulant's order]
350 TH1D *fFinalCumulantsEta[2][2][2][2][4]; // [0=RP,1=POI][0=pW nu,1=pW u][0=e eW,1=ne eW][0=nc,1=corr][cumulant's order]
351 TH2D *fFinalFlow2D[2][2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=e eW,1=ne eW][0=not corr,1=corr][order of flow estimate]
352 TH1D *fFinalFlowPt[2][2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=e eW,1=ne eW][0=not corr,1=corr][order of flow estimate]
353 TH1D *fFinalFlowEta[2][2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=e eW,1=ne eW][0=not corr,1=corr][order of flow estimate]
354 TH2D *fNonEmptyBins2D[2]; // [0=RP,1=POI]
355 TH1D *fNonEmptyBins1D[2][2]; // [0=RP,1=POI][0=pt,1=eta]
357 // 5.) distributions:
358 TList *fDistributionsList; // list to hold all distributions
359 TH1D *fDistributions[2][2][4]; // [0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights][0=<2>,1=<4>,2=<6>,3=<8>]
361 // x.) debugging and cross-checking:
362 // Remark: for weighted correlations cross-checking is performed only with phi weights (this is sufficient)
363 TList *fNestedLoopsList; // list to hold all profiles filled with nested loops
364 Bool_t fEvaluateNestedLoopsForIntFlow; // evaluate nested loops relevant for integrated flow
365 Bool_t fEvaluateNestedLoopsForDiffFlow; // evaluate nested loops relevant for differential flow
366 TProfile *fEvaluateNestedLoops; // profile with two bins to hold values of fEvaluateNestedLoopsForIntFlow and fEvaluateNestedLoopsForDiffFlow
367 TProfile *fDirectCorrelations; // reduced multi-particle correlations calculated with nested loop relevant for int. flow
368 TProfile *fDirectCorrectionsCos; // corrections for non-uniform acceptance (cos terms) calculated with nested loops (int. flow)
369 TProfile *fDirectCorrectionsSin; // corrections for non-uniform acceptance (sin terms) calculated with nested loops (int. flow)
370 TProfile *fDirectCorrelationsDiffFlow; // multi-particle correlations calculated with nested loop relevant for diff. flow
371 TProfile *fDirectCorrectionsDiffFlowCos; // corrections for non-uniform acceptance (cos terms) calculated with nested loops (diff. flow)
372 TProfile *fDirectCorrectionsDiffFlowSin; // corrections for non-uniform acceptance (sin terms) calculated with nested loops (diff. flow)
373 TProfile *fDirectCorrelationsW; // weighted multi-particle correlations calculated with nested loop relevant for int. flow
374 TProfile *fDirectCorrectionsCosW; // weighted corrections for non-uniform acceptance (cos terms) calculated with nested loops (int. flow)
375 TProfile *fDirectCorrectionsSinW; // weighted corrections for non-uniform acceptance (sin terms) calculated with nested loops (int. flow)
376 TProfile *fDirectCorrelationsDiffFlowW; // weighted reduced multi-particle correlations calculated with nested loop relevant for diff. flow
377 TProfile *fDirectCorrectionsDiffFlowCosW; // weighted corrections for non-uniform acceptance (cos terms) calculated with nested loops (diff. flow)
378 TProfile *fDirectCorrectionsDiffFlowSinW; // weighted corrections for non-uniform acceptance (sin terms) calculated with nested loops (diff. flow)
380 ClassDef(AliFlowAnalysisWithQCumulants, 0);
383 //================================================================================================================