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 *
11 * (abilandzic@gmail.com) *
12 *********************************/
14 #ifndef ALIFLOWANALYSISWITHQCUMULANTS_H
15 #define ALIFLOWANALYSISWITHQCUMULANTS_H
17 #include "AliFlowCommonConstants.h" // needed as include
32 class AliFlowEventSimple;
35 class AliFlowCommonHist;
36 class AliFlowCommonHistResults;
38 //================================================================================================================
40 class AliFlowAnalysisWithQCumulants{
42 AliFlowAnalysisWithQCumulants();
43 virtual ~AliFlowAnalysisWithQCumulants();
44 // 0.) methods called in the constructor:
45 virtual void InitializeArraysForIntFlow();
46 virtual void InitializeArraysForDiffFlow();
47 virtual void InitializeArraysForDistributions();
48 virtual void InitializeArraysForVarious();
49 virtual void InitializeArraysForNestedLoops();
50 // 1.) method Init() and methods called within Init():
52 virtual void CrossCheckSettings();
53 virtual void AccessConstants();
54 virtual void BookAndNestAllLists();
55 virtual void BookCommonHistograms();
56 virtual void BookAndFillWeightsHistograms();
57 virtual void BookEverythingForIntegratedFlow();
58 virtual void BookEverythingForDifferentialFlow();
59 virtual void BookEverythingForDistributions();
60 virtual void BookEverythingForVarious();
61 virtual void BookEverythingForNestedLoops();
62 virtual void StoreIntFlowFlags();
63 virtual void StoreDiffFlowFlags();
64 virtual void StoreFlagsForDistributions();
65 virtual void StoreHarmonic();
66 // 2.) method Make() and methods called within Make():
67 virtual void Make(AliFlowEventSimple *anEvent);
69 virtual void CheckPointersUsedInMake();
70 virtual void FillAverageMultiplicities(Int_t nRP);
71 virtual void FillCommonControlHistograms(AliFlowEventSimple *anEvent);
72 virtual void ResetEventByEventQuantities();
73 // 2b.) integrated flow:
74 virtual void CalculateIntFlowCorrelations();
75 virtual void CalculateIntFlowCorrelationsUsingParticleWeights();
76 virtual void CalculateIntFlowProductOfCorrelations();
77 virtual void CalculateIntFlowSumOfEventWeights();
78 virtual void CalculateIntFlowSumOfProductOfEventWeights();
79 virtual void CalculateIntFlowCorrectionsForNUACosTerms();
80 virtual void CalculateIntFlowCorrectionsForNUACosTermsUsingParticleWeights();
81 virtual void CalculateIntFlowCorrectionsForNUASinTerms();
82 virtual void CalculateIntFlowCorrectionsForNUASinTermsUsingParticleWeights();
83 virtual void CalculateIntFlowProductOfCorrectionTermsForNUA();
84 virtual void CalculateIntFlowSumOfEventWeightsNUA();
85 virtual void CalculateIntFlowSumOfProductOfEventWeightsNUA();
87 virtual void EvaluateIntFlowCorrelationsWithNestedLoops(AliFlowEventSimple* const anEvent);
88 virtual void EvaluateIntFlowCorrelationsWithNestedLoopsUsingParticleWeights(AliFlowEventSimple* const anEvent);
89 virtual void EvaluateIntFlowCorrectionsForNUAWithNestedLoops(AliFlowEventSimple* const anEvent);
90 virtual void EvaluateIntFlowCorrectionsForNUAWithNestedLoopsUsingParticleWeights(AliFlowEventSimple* const anEvent);
91 // 2c.) differential flow:
92 virtual void CalculateDiffFlowCorrelations(TString type, TString ptOrEta); // type = RP or POI
93 virtual void CalculateDiffFlowCorrelationsUsingParticleWeights(TString type, TString ptOrEta); // type = RP or POI
94 virtual void CalculateDiffFlowProductOfCorrelations(TString type, TString ptOrEta); // type = RP or POI
95 virtual void CalculateDiffFlowSumOfEventWeights(TString type, TString ptOrEta); // type = RP or POI
96 virtual void CalculateDiffFlowSumOfProductOfEventWeights(TString type, TString ptOrEta); // type = RP or POI
97 virtual void CalculateDiffFlowCorrectionsForNUACosTerms(TString type, TString ptOrEta);
98 virtual void CalculateDiffFlowCorrectionsForNUACosTermsUsingParticleWeights(TString type, TString ptOrEta);
99 virtual void CalculateDiffFlowCorrectionsForNUASinTerms(TString type, TString ptOrEta);
100 virtual void CalculateDiffFlowCorrectionsForNUASinTermsUsingParticleWeights(TString type, TString ptOrEta);
102 //virtual void CalculateCorrelationsForDifferentialFlow2D(TString type); // type = RP or POI
103 virtual void EvaluateDiffFlowCorrelationsWithNestedLoops(AliFlowEventSimple* const anEvent, TString type, TString ptOrEta);
104 virtual void EvaluateDiffFlowCorrelationsWithNestedLoopsUsingParticleWeights(AliFlowEventSimple* const anEvent, TString type, TString ptOrEta);
105 virtual void EvaluateDiffFlowCorrectionTermsForNUAWithNestedLoops(AliFlowEventSimple* const anEvent, TString type, TString ptOrEta);
106 virtual void EvaluateDiffFlowCorrectionTermsForNUAWithNestedLoopsUsingParticleWeights(AliFlowEventSimple* const anEvent, TString type, TString ptOrEta);
107 // 2d.) distributions of correlations:
108 virtual void StoreDistributionsOfCorrelations();
109 // 2e.) store phi distibution for one event to vizualize flow:
110 virtual void StorePhiDistributionForOneEvent(AliFlowEventSimple* const anEvent);
111 // 3.) method Finish() and methods called within Finish():
112 virtual void Finish();
113 virtual void CheckPointersUsedInFinish();
114 // 3a.) integrated flow:
115 virtual void FinalizeCorrelationsIntFlow();
116 virtual void FinalizeCorrectionTermsForNUAIntFlow();
117 virtual void CalculateCovariancesIntFlow();
118 virtual void CalculateCovariancesNUAIntFlow();
119 virtual void CalculateCumulantsIntFlow();
120 virtual void CalculateReferenceFlow();
121 virtual void FillCommonHistResultsIntFlow();
123 virtual void CalculateQcumulantsCorrectedForNUAIntFlow();
124 virtual void PrintFinalResultsForIntegratedFlow(TString type);
125 virtual void CrossCheckIntFlowCorrelations();
126 virtual void CrossCheckIntFlowExtraCorrelations(); // extra correlations which appear only when particle weights are used
127 virtual void CrossCheckIntFlowCorrectionTermsForNUA();
128 // 3b.) differential flow:
129 virtual void FinalizeReducedCorrelations(TString type, TString ptOrEta);
130 virtual void CalculateDiffFlowCovariances(TString type, TString ptOrEta);
131 virtual void CalculateDiffFlowCumulants(TString type, TString ptOrEta);
132 virtual void CalculateDiffFlow(TString type, TString ptOrEta);
133 virtual void FinalizeCorrectionTermsForNUADiffFlow(TString type, TString ptOrEta);
134 virtual void CalculateDiffFlowCumulantsCorrectedForNUA(TString type, TString ptOrEta);
135 virtual void CalculateDiffFlowCorrectedForNUA(TString type, TString ptOrEta);
136 virtual void CalculateFinalResultsForRPandPOIIntegratedFlow(TString type); // to be improved (add also possibility to integrate over eta yield)
137 virtual void FillCommonHistResultsDiffFlow(TString type);
138 virtual void CrossCheckDiffFlowCorrelations(TString type, TString ptOrEta);
139 virtual void PrintNumberOfParticlesInSelectedBin();
140 virtual void CrossCheckDiffFlowCorrectionTermsForNUA(TString type, TString ptOrEta);
142 // to be improved (removed):
143 //virtual void FinalizeCorrelationsForDiffFlow(TString type, Bool_t useParticleWeights, TString eventWeights);
145 // 4.) method GetOutputHistograms() and methods called within GetOutputHistograms():
146 virtual void GetOutputHistograms(TList *outputListHistos);
147 virtual void GetPointersForCommonHistograms();
148 virtual void GetPointersForParticleWeightsHistograms();
149 virtual void GetPointersForIntFlowHistograms();
150 virtual void GetPointersForDiffFlowHistograms();
151 virtual void GetPointersForNestedLoopsHistograms();
153 // 5.) other methods:
154 TProfile* MakePtProjection(TProfile2D *profilePtEta) const;
155 TProfile* MakeEtaProjection(TProfile2D *profilePtEta) const;
156 virtual void WriteHistograms(TString outputFileName);
157 virtual void WriteHistograms(TDirectoryFile *outputFileName);
159 // **** SETTERS and GETTERS ****
162 void SetHistList(TList* const hlist) {this->fHistList = hlist;}
163 TList* GetHistList() const {return this->fHistList;}
166 void SetCommonHists(AliFlowCommonHist* const ch) {this->fCommonHists = ch;};
167 AliFlowCommonHist* GetCommonHists() const {return this->fCommonHists;};
168 void SetCommonHists2nd(AliFlowCommonHist* const ch2nd) {this->fCommonHists2nd = ch2nd;};
169 AliFlowCommonHist* GetCommonHists2nd() const {return this->fCommonHists2nd;};
170 void SetCommonHists4th(AliFlowCommonHist* const ch4th) {this->fCommonHists4th = ch4th;};
171 AliFlowCommonHist* GetCommonHists4th() const {return this->fCommonHists4th;};
172 void SetCommonHists6th(AliFlowCommonHist* const ch6th) {this->fCommonHists6th = ch6th;};
173 AliFlowCommonHist* GetCommonHists6th() const {return this->fCommonHists6th;};
174 void SetCommonHists8th(AliFlowCommonHist* const ch8th) {this->fCommonHists8th = ch8th;};
175 AliFlowCommonHist* GetCommonHists8th() const {return this->fCommonHists8th;};
176 void SetCommonHistsResults2nd(AliFlowCommonHistResults* const chr2nd) {this->fCommonHistsResults2nd = chr2nd;};
177 AliFlowCommonHistResults* GetCommonHistsResults2nd() const {return this->fCommonHistsResults2nd;};
178 void SetCommonHistsResults4th(AliFlowCommonHistResults* const chr4th) {this->fCommonHistsResults4th = chr4th;};
179 AliFlowCommonHistResults* GetCommonHistsResults4th() const {return this->fCommonHistsResults4th;};
180 void SetCommonHistsResults6th(AliFlowCommonHistResults* const chr6th) {this->fCommonHistsResults6th = chr6th;};
181 AliFlowCommonHistResults* GetCommonHistsResults6th() const {return this->fCommonHistsResults6th;};
182 void SetCommonHistsResults8th(AliFlowCommonHistResults* const chr8th) {this->fCommonHistsResults8th = chr8th;};
183 AliFlowCommonHistResults* GetCommonHistsResults8th() const {return this->fCommonHistsResults8th;};
184 void SetHarmonic(Int_t const harmonic) {this->fHarmonic = harmonic;};
185 Int_t GetHarmonic() const {return this->fHarmonic;};
186 void SetAnalysisLabel(const char *aLabel) {this->fAnalysisLabel->Append(*aLabel);}; // to be improved (Append(*aLabel) changed into Append(aLabel))
187 TString *GetAnalysisLabel() const {return this->fAnalysisLabel;};
188 void SetPrintFinalResults(Bool_t const printOrNot, Int_t const i) {this->fPrintFinalResults[i] = printOrNot;};
189 Bool_t GetPrintFinalResults(Int_t i) const {return this->fPrintFinalResults[i];};
191 // 2a.) particle weights:
192 void SetWeightsList(TList* const wlist) {this->fWeightsList = (TList*)wlist->Clone();}
193 TList* GetWeightsList() const {return this->fWeightsList;}
194 void SetUsePhiWeights(Bool_t const uPhiW) {this->fUsePhiWeights = uPhiW;};
195 Bool_t GetUsePhiWeights() const {return this->fUsePhiWeights;};
196 void SetUsePtWeights(Bool_t const uPtW) {this->fUsePtWeights = uPtW;};
197 Bool_t GetUsePtWeights() const {return this->fUsePtWeights;};
198 void SetUseEtaWeights(Bool_t const uEtaW) {this->fUseEtaWeights = uEtaW;};
199 Bool_t GetUseEtaWeights() const {return this->fUseEtaWeights;};
200 void SetUseParticleWeights(TProfile* const uPW) {this->fUseParticleWeights = uPW;};
201 TProfile* GetUseParticleWeights() const {return this->fUseParticleWeights;};
202 void SetPhiWeights(TH1F* const histPhiWeights) {this->fPhiWeights = histPhiWeights;};
203 TH1F* GetPhiWeights() const {return this->fPhiWeights;};
204 void SetPtWeights(TH1D* const histPtWeights) {this->fPtWeights = histPtWeights;};
205 TH1D* GetPtWeights() const {return this->fPtWeights;};
206 void SetEtaWeights(TH1D* const histEtaWeights) {this->fEtaWeights = histEtaWeights;};
207 TH1D* GetEtaWeights() const {return this->fEtaWeights;};
209 // 2b.) event weights:
210 void SetMultiplicityWeight(const char *multiplicityWeight) {*this->fMultiplicityWeight = multiplicityWeight;};
212 // 3.) Reference flow:
214 void SetIntFlowFlags(TProfile* const intFlowFlags) {this->fIntFlowFlags = intFlowFlags;};
215 TProfile* GetIntFlowFlags() const {return this->fIntFlowFlags;};
216 void SetApplyCorrectionForNUA(Bool_t const applyCorrectionForNUA) {this->fApplyCorrectionForNUA = applyCorrectionForNUA;};
217 Bool_t GetApplyCorrectionForNUA() const {return this->fApplyCorrectionForNUA;};
218 void SetApplyCorrectionForNUAVsM(Bool_t const applyCorrectionForNUAVsM) {this->fApplyCorrectionForNUAVsM = applyCorrectionForNUAVsM;};
219 Bool_t GetApplyCorrectionForNUAVsM() const {return this->fApplyCorrectionForNUAVsM;};
220 void SetnBinsMult(Int_t const nbm) {this->fnBinsMult = nbm;};
221 Int_t GetnBinsMult() const {return this->fnBinsMult;};
222 void SetMinMult(Double_t const minm) {this->fMinMult = minm;};
223 Double_t GetMinMult() const {return this->fMinMult;};
224 void SetMaxMult(Double_t const maxm) {this->fMaxMult = maxm;};
225 Double_t GetMaxMult() const {return this->fMaxMult;};
226 void SetPropagateErrorAlsoFromNIT(Bool_t const peafNIT) {this->fPropagateErrorAlsoFromNIT = peafNIT;};
227 Bool_t GetPropagateErrorAlsoFromNIT() const {return this->fPropagateErrorAlsoFromNIT;};
228 void SetCalculateCumulantsVsM(Bool_t const ccvm) {this->fCalculateCumulantsVsM = ccvm;};
229 Bool_t GetCalculateCumulantsVsM() const {return this->fCalculateCumulantsVsM;};
230 void SetMinimumBiasReferenceFlow(Bool_t const mmrf) {this->fMinimumBiasReferenceFlow = mmrf;};
231 Bool_t GetMinimumBiasReferenceFlow() const {return this->fMinimumBiasReferenceFlow;};
232 void SetForgetAboutCovariances(Bool_t const fac) {this->fForgetAboutCovariances = fac;};
233 Bool_t GetForgetAboutCovariances() const {return this->fForgetAboutCovariances;};
234 void SetStorePhiDistributionForOneEvent(Bool_t const spdfoe) {this->fStorePhiDistributionForOneEvent = spdfoe;};
235 Bool_t GetStorePhiDistributionForOneEvent() const {return this->fStorePhiDistributionForOneEvent;};
236 void SetPhiDistributionForOneEventSettings(Double_t const pdfoes, Int_t const i) {this->fPhiDistributionForOneEventSettings[i] = pdfoes;};
237 Double_t GetPhiDistributionForOneEventSettings(Int_t const i) const {return this->fPhiDistributionForOneEventSettings[i];};
239 // Reference flow profiles:
240 void SetAvMultiplicity(TProfile* const avMultiplicity) {this->fAvMultiplicity = avMultiplicity;};
241 TProfile* GetAvMultiplicity() const {return this->fAvMultiplicity;};
242 void SetIntFlowCorrelationsPro(TProfile* const intFlowCorrelationsPro) {this->fIntFlowCorrelationsPro = intFlowCorrelationsPro;};
243 TProfile* GetIntFlowCorrelationsPro() const {return this->fIntFlowCorrelationsPro;};
244 void SetIntFlowSquaredCorrelationsPro(TProfile* const ifscp) {this->fIntFlowSquaredCorrelationsPro = ifscp;};
245 TProfile* GetIntFlowSquaredCorrelationsPro() const {return this->fIntFlowSquaredCorrelationsPro;};
246 void SetIntFlowCorrelationsVsMPro(TProfile* const ifcvp, Int_t const ci) {this->fIntFlowCorrelationsVsMPro[ci] = ifcvp;};
247 TProfile* GetIntFlowCorrelationsVsMPro(Int_t const ci) const {return this->fIntFlowCorrelationsVsMPro[ci];};
248 void SetIntFlowSquaredCorrelationsVsMPro(TProfile* const ifscvp, Int_t const ci) {this->fIntFlowSquaredCorrelationsVsMPro[ci] = ifscvp;};
249 TProfile* GetIntFlowSquaredCorrelationsVsMPro(Int_t const ci) const {return this->fIntFlowSquaredCorrelationsVsMPro[ci];};
250 void SetIntFlowCorrelationsAllPro(TProfile* const intFlowCorrelationsAllPro) {this->fIntFlowCorrelationsAllPro = intFlowCorrelationsAllPro;};
251 TProfile* GetIntFlowCorrelationsAllPro() const {return this->fIntFlowCorrelationsAllPro;};
252 void SetIntFlowExtraCorrelationsPro(TProfile* const intFlowExtraCorrelationsPro) {this->fIntFlowExtraCorrelationsPro = intFlowExtraCorrelationsPro;};
253 TProfile* GetIntFlowExtraCorrelationsPro() const {return this->fIntFlowExtraCorrelationsPro;};
254 void SetIntFlowProductOfCorrelationsPro(TProfile* const intFlowProductOfCorrelationsPro) {this->fIntFlowProductOfCorrelationsPro = intFlowProductOfCorrelationsPro;};
255 TProfile* GetIntFlowProductOfCorrelationsPro() const {return this->fIntFlowProductOfCorrelationsPro;};
256 void SetIntFlowProductOfCorrelationsVsMPro(TProfile* const ifpocvm, Int_t const pi) {this->fIntFlowProductOfCorrelationsVsMPro[pi] = ifpocvm;};
257 TProfile* GetIntFlowProductOfCorrelationsVsMPro(Int_t const pi) const {return this->fIntFlowProductOfCorrelationsVsMPro[pi];};
258 void SetIntFlowProductOfCorrectionTermsForNUAPro(TProfile* const ifpoctfNUA) {this->fIntFlowProductOfCorrectionTermsForNUAPro = ifpoctfNUA;};
259 TProfile* GetIntFlowProductOfCorrectionTermsForNUAPro() const {return this->fIntFlowProductOfCorrectionTermsForNUAPro;};
260 void SetIntFlowCorrectionTermsForNUAPro(TProfile* const ifctfnp, Int_t const sc) {this->fIntFlowCorrectionTermsForNUAPro[sc] = ifctfnp;};
261 TProfile* GetIntFlowCorrectionTermsForNUAPro(Int_t sc) const {return this->fIntFlowCorrectionTermsForNUAPro[sc];};
262 void SetIntFlowCorrectionTermsForNUAVsMPro(TProfile* const ifctfnpvm, Int_t const sc, Int_t const ci) {this->fIntFlowCorrectionTermsForNUAVsMPro[sc][ci] = ifctfnpvm;};
263 TProfile* GetIntFlowCorrectionTermsForNUAVsMPro(Int_t sc, Int_t ci) const {return this->fIntFlowCorrectionTermsForNUAVsMPro[sc][ci];};
264 // integrated flow histograms holding all results:
265 void SetIntFlowCorrelationsHist(TH1D* const intFlowCorrelationsHist) {this->fIntFlowCorrelationsHist = intFlowCorrelationsHist;};
266 TH1D* GetIntFlowCorrelationsHist() const {return this->fIntFlowCorrelationsHist;};
267 void SetIntFlowCorrelationsVsMHist(TH1D* const ifcvmh, Int_t const ci) {this->fIntFlowCorrelationsVsMHist[ci] = ifcvmh;};
268 TH1D* GetIntFlowCorrelationsVsMHist(Int_t const ci) const {return this->fIntFlowCorrelationsVsMHist[ci];};
269 void SetIntFlowCorrelationsAllHist(TH1D* const intFlowCorrelationsAllHist) {this->fIntFlowCorrelationsAllHist = intFlowCorrelationsAllHist;};
270 TH1D* GetIntFlowCorrelationsAllHist() const {return this->fIntFlowCorrelationsAllHist;};
271 void SetIntFlowCorrectionTermsForNUAHist(TH1D* const ifctfnh, Int_t const sc) {this->fIntFlowCorrectionTermsForNUAHist[sc] = ifctfnh;};
272 TH1D* GetIntFlowCorrectionTermsForNUAHist(Int_t sc) const {return this->fIntFlowCorrectionTermsForNUAHist[sc];};
273 void SetIntFlowCovariances(TH1D* const intFlowCovariances) {this->fIntFlowCovariances = intFlowCovariances;};
274 TH1D* GetIntFlowCovariances() const {return this->fIntFlowCovariances;};
275 void SetIntFlowSumOfEventWeights(TH1D* const intFlowSumOfEventWeights, Int_t const power) {this->fIntFlowSumOfEventWeights[power] = intFlowSumOfEventWeights;};
276 TH1D* GetIntFlowSumOfEventWeights(Int_t power) const {return this->fIntFlowSumOfEventWeights[power];};
277 void SetIntFlowSumOfProductOfEventWeights(TH1D* const intFlowSumOfProductOfEventWeights) {this->fIntFlowSumOfProductOfEventWeights = intFlowSumOfProductOfEventWeights;};
278 TH1D* GetIntFlowSumOfProductOfEventWeights() const {return this->fIntFlowSumOfProductOfEventWeights;};
279 void SetIntFlowCovariancesVsM(TH1D* const ifcvm, Int_t ci) {this->fIntFlowCovariancesVsM[ci] = ifcvm;};
280 TH1D* GetIntFlowCovariancesVsM(Int_t ci) const {return this->fIntFlowCovariancesVsM[ci];};
281 void SetIntFlowSumOfEventWeightsVsM(TH1D* const ifsoewvm, Int_t si, Int_t lc) {this->fIntFlowSumOfEventWeightsVsM[si][lc] = ifsoewvm;};
282 TH1D* GetIntFlowSumOfEventWeightsVsM(Int_t si, Int_t lc) const {return this->fIntFlowSumOfEventWeightsVsM[si][lc];};
283 void SetIntFlowSumOfProductOfEventWeightsVsM(TH1D* const ifsopoevm, Int_t si) {this->fIntFlowSumOfProductOfEventWeightsVsM[si] = ifsopoevm;};
284 TH1D* GetIntFlowSumOfProductOfEventWeightsVsM(Int_t si) const {return this->fIntFlowSumOfProductOfEventWeightsVsM[si];};
285 void SetIntFlowCovariancesNUA(TH1D* const intFlowCovariancesNUA) {this->fIntFlowCovariancesNUA = intFlowCovariancesNUA;};
286 TH1D* GetIntFlowCovariancesNUA() const {return this->fIntFlowCovariancesNUA;};
287 void SetIntFlowSumOfEventWeightsNUA(TH1D* const ifsoewNUA, Int_t const sc, Int_t const power) {this->fIntFlowSumOfEventWeightsNUA[sc][power] = ifsoewNUA;};
288 TH1D* GetIntFlowSumOfEventWeightsNUA(Int_t sc, Int_t power) const {return this->fIntFlowSumOfEventWeightsNUA[sc][power];};
289 void SetIntFlowSumOfProductOfEventWeightsNUA(TH1D* const ifsopoewNUA) {this->fIntFlowSumOfProductOfEventWeightsNUA = ifsopoewNUA;};
290 TH1D* GetIntFlowSumOfProductOfEventWeightsNUA() const {return this->fIntFlowSumOfProductOfEventWeightsNUA;};
291 void SetIntFlowQcumulants(TH1D* const intFlowQcumulants) {this->fIntFlowQcumulants = intFlowQcumulants;};
292 TH1D* GetIntFlowQcumulants() const {return this->fIntFlowQcumulants;};
293 void SetIntFlowQcumulantsVsM(TH1D* const intFlowQcumulantsVsM, Int_t co) {this->fIntFlowQcumulantsVsM[co] = intFlowQcumulantsVsM;};
294 TH1D* GetIntFlowQcumulantsVsM(Int_t co) const {return this->fIntFlowQcumulantsVsM[co];};
295 void SetIntFlowQcumulantsRebinnedInM(TH1D* const ifqcrim) {this->fIntFlowQcumulantsRebinnedInM = ifqcrim;};
296 TH1D* GetIntFlowQcumulantsRebinnedInM() const {return this->fIntFlowQcumulantsRebinnedInM;};
297 void SetIntFlowQcumulantsErrorSquaredRatio(TH1D* const ifqcesr) {this->fIntFlowQcumulantsErrorSquaredRatio = ifqcesr;};
298 TH1D* GetIntFlowQcumulantsErrorSquaredRatio() const {return this->fIntFlowQcumulantsErrorSquaredRatio;};
299 void SetIntFlow(TH1D* const intFlow) {this->fIntFlow = intFlow;};
300 TH1D* GetIntFlow() const {return this->fIntFlow;};
301 void SetIntFlowVsM(TH1D* const intFlowVsM, Int_t co) {this->fIntFlowVsM[co] = intFlowVsM;};
302 TH1D* GetIntFlowVsM(Int_t co) const {return this->fIntFlowVsM[co];};
303 void SetIntFlowRebinnedInM(TH1D* const ifrim) {this->fIntFlowRebinnedInM = ifrim;};
304 TH1D* GetIntFlowRebinnedInM() const {return this->fIntFlowRebinnedInM;};
305 void SetIntFlowDetectorBias(TH1D* const ifdb) {this->fIntFlowDetectorBias = ifdb;};
306 TH1D* GetIntFlowDetectorBias() const {return this->fIntFlowDetectorBias;};
307 void SetIntFlowDetectorBiasVsM(TH1D* const ifdbvm, Int_t ci) {this->fIntFlowDetectorBiasVsM[ci] = ifdbvm;};
308 TH1D* GetIntFlowDetectorBiasVsM(Int_t ci) const {return this->fIntFlowDetectorBiasVsM[ci];};
309 // 4.) differential flow:
311 void SetDiffFlowFlags(TProfile* const diffFlowFlags) {this->fDiffFlowFlags = diffFlowFlags;};
312 TProfile* GetDiffFlowFlags() const {return this->fDiffFlowFlags;};
313 void SetCalculate2DFlow(Bool_t const calculate2DFlow) {this->fCalculate2DFlow = calculate2DFlow;};
314 Bool_t GetCalculate2DFlow() const {return this->fCalculate2DFlow;};
317 void SetDiffFlowCorrelationsPro(TProfile* const diffFlowCorrelationsPro, Int_t const i, Int_t const j, Int_t const k) {this->fDiffFlowCorrelationsPro[i][j][k] = diffFlowCorrelationsPro;};
318 TProfile* GetDiffFlowCorrelationsPro(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowCorrelationsPro[i][j][k];};
319 void SetDiffFlowSquaredCorrelationsPro(TProfile* const diffFlowSquaredCorrelationsPro, Int_t const i, Int_t const j, Int_t const k) {this->fDiffFlowSquaredCorrelationsPro[i][j][k] = diffFlowSquaredCorrelationsPro;};
320 TProfile* GetDiffFlowSquaredCorrelationsPro(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowSquaredCorrelationsPro[i][j][k];};
321 void SetDiffFlowProductOfCorrelationsPro(TProfile* const dfpocp, Int_t const i, Int_t const j, Int_t const k, Int_t const l) {this->fDiffFlowProductOfCorrelationsPro[i][j][k][l] = dfpocp;};
322 TProfile* GetDiffFlowProductOfCorrelationsPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowProductOfCorrelationsPro[i][j][k][l];};
323 void SetDiffFlowCorrectionTermsForNUAPro(TProfile* const dfctfnp, Int_t const i, Int_t const j, Int_t const k, Int_t const l) {this->fDiffFlowCorrectionTermsForNUAPro[i][j][k][l] = dfctfnp;};
324 TProfile* GetDiffFlowCorrectionTermsForNUAPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowCorrectionTermsForNUAPro[i][j][k][l];};
326 void SetCorrelationsPro(TProfile2D* const correlPro, Int_t const i, Int_t const j, Int_t const k, Int_t const l) {this->fCorrelationsPro[i][j][k][l] = correlPro;};
327 TProfile2D* GetCorrelationsPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fCorrelationsPro[i][j][k][l];};
328 void SetProductsOfCorrelationsPro(TProfile2D* const proOfcorrelPro, Int_t const i, Int_t const j, Int_t const k, Int_t const l) {this->fProductsOfCorrelationsPro[i][j][k][l] = proOfcorrelPro;};
329 TProfile2D* GetProductsOfCorrelationsPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fProductsOfCorrelationsPro[i][j][k][l];};
330 void SetCorrectionTermsPro(TProfile2D* const correctTermsPro, Int_t const i, Int_t const j, Int_t const k, Int_t const l, Int_t const m) {this->fCorrectionTermsPro[i][j][k][l][m] = correctTermsPro;};
331 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];};
333 void SetDiffFlowCorrelationsHist(TH1D* const diffFlowCorrelationsHist, Int_t const i, Int_t const j, Int_t const k) {this->fDiffFlowCorrelationsHist[i][j][k] = diffFlowCorrelationsHist;};
334 TH1D* GetDiffFlowCorrelationsHist(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowCorrelationsHist[i][j][k];};
335 void SetDiffFlowCovariances(TH1D* const diffFlowCovariances, Int_t const i, Int_t const j, Int_t const k) {this->fDiffFlowCovariances[i][j][k] = diffFlowCovariances;};
336 TH1D* GetDiffFlowCovariances(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowCovariances[i][j][k];};
337 void SetDiffFlowCumulants(TH1D* const diffFlowCumulants, Int_t const i, Int_t const j, Int_t const k) {this->fDiffFlowCumulants[i][j][k] = diffFlowCumulants;};
338 TH1D* GetDiffFlowCumulants(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowCumulants[i][j][k];};
339 void SetDiffFlow(TH1D* const diffFlow, Int_t const i, Int_t const j, Int_t const k) {this->fDiffFlow[i][j][k] = diffFlow;};
340 TH1D* GetDiffFlow(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlow[i][j][k];};
341 void SetDiffFlowSumOfEventWeights(TH1D* const dfsoew, Int_t const i, Int_t const j, Int_t const k, Int_t const l) {this->fDiffFlowSumOfEventWeights[i][j][k][l] = dfsoew;};
342 TH1D* GetDiffFlowSumOfEventWeights(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowSumOfEventWeights[i][j][k][l];};
343 void SetDiffFlowSumOfProductOfEventWeights(TH1D* const dfsopoew, Int_t const i, Int_t const j, Int_t const k, Int_t const l) {this->fDiffFlowSumOfProductOfEventWeights[i][j][k][l] = dfsopoew;};
344 TH1D* GetDiffFlowSumOfProductOfEventWeights(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowSumOfProductOfEventWeights[i][j][k][l];};
345 void SetDiffFlowCorrectionTermsForNUAHist(TH1D* const dfctfnh, Int_t const i, Int_t const j, Int_t const k, Int_t const l) {this->fDiffFlowCorrectionTermsForNUAHist[i][j][k][l] = dfctfnh;};
346 TH1D* GetDiffFlowCorrectionTermsForNUAHist(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowCorrectionTermsForNUAHist[i][j][k][l];};
348 // 5.) distributions of correlations:
350 void SetStoreDistributions(Bool_t const storeDistributions) {this->fStoreDistributions = storeDistributions;};
351 Bool_t GetStoreDistributions() const {return this->fStoreDistributions;};
353 void SetDistributionsFlags(TProfile* const distributionsFlags) {this->fDistributionsFlags = distributionsFlags;};
354 TProfile* GetDistributionsFlags() const {return this->fDistributionsFlags;};
356 void SetDistributions(TH1D* const distributions, Int_t const i) {this->fDistributions[i] = distributions;};
357 TH1D* GetDistributions(Int_t i) const {return this->fDistributions[i];};
358 // min and max values of correlations (ci is correlations index [0=<2>,1=<4>,2=<6>,3=<8>]):
359 void SetMinValueOfCorrelation(Int_t const ci, Double_t const minValue) {this->fMinValueOfCorrelation[ci] = minValue;};
360 Double_t GetMinValueOfCorrelation(Int_t ci) const {return this->fMinValueOfCorrelation[ci];};
361 void SetMaxValueOfCorrelation(Int_t const ci, Double_t const maxValue) {this->fMaxValueOfCorrelation[ci] = maxValue;};
362 Double_t GetMaxValueOfCorrelation(Int_t ci) const {return this->fMaxValueOfCorrelation[ci];};
364 // x.) debugging and cross-checking:
365 void SetNestedLoopsList(TList* const nllist) {this->fNestedLoopsList = nllist;};
366 TList* GetNestedLoopsList() const {return this->fNestedLoopsList;};
367 void SetEvaluateIntFlowNestedLoops(Bool_t const eifnl) {this->fEvaluateIntFlowNestedLoops = eifnl;};
368 Bool_t GetEvaluateIntFlowNestedLoops() const {return this->fEvaluateIntFlowNestedLoops;};
369 void SetEvaluateDiffFlowNestedLoops(Bool_t const edfnl) {this->fEvaluateDiffFlowNestedLoops = edfnl;};
370 Bool_t GetEvaluateDiffFlowNestedLoops() const {return this->fEvaluateDiffFlowNestedLoops;};
371 void SetMaxAllowedMultiplicity(Int_t const maxAllowedMultiplicity) {this->fMaxAllowedMultiplicity = maxAllowedMultiplicity;};
372 Int_t GetMaxAllowedMultiplicity() const {return this->fMaxAllowedMultiplicity;};
373 void SetEvaluateNestedLoops(TProfile* const enl) {this->fEvaluateNestedLoops = enl;};
374 TProfile* GetEvaluateNestedLoops() const {return this->fEvaluateNestedLoops;};
375 void SetIntFlowDirectCorrelations(TProfile* const ifdc) {this->fIntFlowDirectCorrelations = ifdc;};
376 TProfile* GetIntFlowDirectCorrelations() const {return this->fIntFlowDirectCorrelations;};
377 void SetIntFlowExtraDirectCorrelations(TProfile* const ifedc) {this->fIntFlowExtraDirectCorrelations = ifedc;};
378 TProfile* GetIntFlowExtraDirectCorrelations() const {return this->fIntFlowExtraDirectCorrelations;};
379 void SetIntFlowDirectCorrectionTermsForNUA(TProfile* const ifdctfn, Int_t const sc) {this->fIntFlowDirectCorrectionTermsForNUA[sc] = ifdctfn;};
380 TProfile* GetIntFlowDirectCorrectionTermsForNUA(Int_t sc) const {return this->fIntFlowDirectCorrectionTermsForNUA[sc];};
381 void SetCrossCheckInPtBinNo(Int_t const crossCheckInPtBinNo) {this->fCrossCheckInPtBinNo = crossCheckInPtBinNo;};
382 Int_t GetCrossCheckInPtBinNo() const {return this->fCrossCheckInPtBinNo;};
383 void SetCrossCheckInEtaBinNo(Int_t const crossCheckInEtaBinNo) {this->fCrossCheckInEtaBinNo = crossCheckInEtaBinNo;};
384 Int_t GetCrossCheckInEtaBinNo() const {return this->fCrossCheckInEtaBinNo;};
385 void SetNoOfParticlesInBin(TH1D* const noOfParticlesInBin) {this->fNoOfParticlesInBin = noOfParticlesInBin;};
386 TH1D* GetNoOfParticlesInBin() const {return this->fNoOfParticlesInBin;};
387 void SetDiffFlowDirectCorrelations(TProfile* const diffFlowDirectCorrelations,Int_t const i,Int_t const j,Int_t const k){this->fDiffFlowDirectCorrelations[i][j][k]=diffFlowDirectCorrelations;};
388 TProfile* GetDiffFlowDirectCorrelations(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowDirectCorrelations[i][j][k];};
389 void SetDiffFlowDirectCorrectionTermsForNUA(TProfile* const dfdctfn, Int_t const i, Int_t const j, Int_t const k, Int_t const l) {this->fDiffFlowDirectCorrectionTermsForNUA[i][j][k][l] = dfdctfn;};
390 TProfile* GetDiffFlowDirectCorrectionTermsForNUA(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowDirectCorrectionTermsForNUA[i][j][k][l];};
394 AliFlowAnalysisWithQCumulants(const AliFlowAnalysisWithQCumulants& afawQc);
395 AliFlowAnalysisWithQCumulants& operator=(const AliFlowAnalysisWithQCumulants& afawQc);
398 TList* fHistList; // base list to hold all output object
401 AliFlowCommonHist *fCommonHists; // common control histograms (taking into account ALL events)
402 AliFlowCommonHist *fCommonHists2nd; // common control histograms (taking into account only the events with 2 and more particles)
403 AliFlowCommonHist *fCommonHists4th; // common control histograms (taking into account only the events with 4 and more particles)
404 AliFlowCommonHist *fCommonHists6th; // common control histograms (taking into account only the events with 6 and more particles)
405 AliFlowCommonHist *fCommonHists8th; // common control histograms (taking into account only the events with 8 and more particles)
406 AliFlowCommonHistResults *fCommonHistsResults2nd; // final results for 2nd order int. and diff. flow for events with 2 and more particles
407 AliFlowCommonHistResults *fCommonHistsResults4th; // final results for 4th order int. and diff. flow for events with 4 and more particles
408 AliFlowCommonHistResults *fCommonHistsResults6th; // final results for 6th order int. and diff. flow for events with 6 and more particles
409 AliFlowCommonHistResults *fCommonHistsResults8th; // final results for 8th order int. and diff. flow for events with 8 and more particles
410 Int_t fnBinsPhi; // number of phi bins
411 Double_t fPhiMin; // minimum phi
412 Double_t fPhiMax; // maximum phi
413 Double_t fPhiBinWidth; // bin width for phi histograms
414 Int_t fnBinsPt; // number of pt bins
415 Double_t fPtMin; // minimum pt
416 Double_t fPtMax; // maximum pt
417 Double_t fPtBinWidth; // bin width for pt histograms
418 Int_t fnBinsEta; // number of eta bins
419 Double_t fEtaMin; // minimum eta
420 Double_t fEtaMax; // maximum eta
421 Double_t fEtaBinWidth; // bin width for eta histograms
422 Int_t fHarmonic; // harmonic
423 TString *fAnalysisLabel; // analysis label (all histograms and output file will have this label)
424 Bool_t fPrintFinalResults[4]; // print on the screen the final results (0=RF, 1=RP, 2=POI, 3=RF rebinned in M)
426 // 2a.) particle weights:
427 TList *fWeightsList; // list to hold all histograms with particle weights: fUseParticleWeights, fPhiWeights, fPtWeights and fEtaWeights
428 Bool_t fUsePhiWeights; // use phi weights
429 Bool_t fUsePtWeights; // use pt weights
430 Bool_t fUseEtaWeights; // use eta weights
431 TProfile *fUseParticleWeights; // profile with three bins to hold values of fUsePhiWeights, fUsePtWeights and fUseEtaWeights
432 TH1F *fPhiWeights; // histogram holding phi weights
433 TH1D *fPtWeights; // histogram holding phi weights
434 TH1D *fEtaWeights; // histogram holding phi weights
436 // 2b.) event weights:
437 TString *fMultiplicityWeight; // event-by-event weights for multiparticle correlations
439 // 3.) integrated flow
441 TList *fIntFlowList; // list to hold all histograms and profiles relevant for integrated flow
442 TList *fIntFlowProfiles; // list to hold all profiles relevant for integrated flow
443 TList *fIntFlowResults; // list to hold all histograms with final results relevant for integrated flow
445 TProfile *fIntFlowFlags; // profile to hold all flags for integrated flow
446 Bool_t fApplyCorrectionForNUA; // apply correction for non-uniform acceptance
447 Bool_t fApplyCorrectionForNUAVsM; // apply correction for non-uniform acceptance versus M
448 Int_t fnBinsMult; // number of multiplicity bins for flow analysis versus multiplicity
449 Double_t fMinMult; // minimal multiplicity for flow analysis versus multiplicity
450 Double_t fMaxMult; // maximal multiplicity for flow analysis versus multiplicity
451 Bool_t fPropagateErrorAlsoFromNIT; // propagate error by taking into account also non-isotropic terms (not sure if resulting error then is correct - to be improved)
452 Bool_t fCalculateCumulantsVsM; // calculate cumulants versus multiplicity
453 Bool_t fMinimumBiasReferenceFlow; // store as reference flow in AliFlowCommonHistResults the minimum bias result (kFALSE by default)
454 Bool_t fForgetAboutCovariances; // when propagating error forget about the covariances
455 Bool_t fStorePhiDistributionForOneEvent; // store phi distribution for one event to illustrate flow
456 Double_t fPhiDistributionForOneEventSettings[4]; // [v_min,v_max,refMult_min,refMult_max]
457 // 3c.) event-by-event quantities:
458 TMatrixD *fReQ; // fReQ[m][k] = sum_{i=1}^{M} w_{i}^{k} cos(m*phi_{i})
459 TMatrixD *fImQ; // fImQ[m][k] = sum_{i=1}^{M} w_{i}^{k} sin(m*phi_{i})
460 TMatrixD *fSMpk; // fSM[p][k] = (sum_{i=1}^{M} w_{i}^{k})^{p+1}
461 TH1D *fIntFlowCorrelationsEBE; // 1st bin: <2>, 2nd bin: <4>, 3rd bin: <6>, 4th bin: <8>
462 TH1D *fIntFlowEventWeightsForCorrelationsEBE; // 1st bin: eW_<2>, 2nd bin: eW_<4>, 3rd bin: eW_<6>, 4th bin: eW_<8>
463 TH1D *fIntFlowCorrelationsAllEBE; // to be improved (add comment)
464 TH1D *fIntFlowCorrectionTermsForNUAEBE[2]; // [0=sin terms,1=cos terms], NUA = non-uniform acceptance
465 TH1D *fIntFlowEventWeightForCorrectionTermsForNUAEBE[2]; // [0=sin terms,1=cos terms], NUA = non-uniform acceptance
466 Double_t fReferenceMultiplicityEBE; // reference multiplicity
468 TProfile *fAvMultiplicity; // profile to hold average multiplicities and number of events for events with nRP>=0, nRP>=1, ... , and nRP>=8
469 TProfile *fIntFlowCorrelationsPro; // average correlations <<2>>, <<4>>, <<6>> and <<8>> (with wrong errors!)
470 TProfile *fIntFlowSquaredCorrelationsPro; // average correlations squared <<2>^2>, <<4>^2>, <<6>^2> and <<8>^2>
471 TProfile *fIntFlowCorrelationsVsMPro[4]; // average correlations <<2>>, <<4>>, <<6>> and <<8>> versus multiplicity (error is wrong here!)
472 TProfile *fIntFlowSquaredCorrelationsVsMPro[4]; // average correlations <<2>^2>, <<4>^2>, <<6>^2> and <<8>^2> versus multiplicity
473 TProfile *fIntFlowCorrelationsAllPro; // average all correlations for integrated flow (with wrong errors!)
474 TProfile *fIntFlowExtraCorrelationsPro; // when particle weights are used some extra correlations appear
475 TProfile *fIntFlowProductOfCorrelationsPro; // average product of correlations <2>, <4>, <6> and <8>
476 TProfile *fIntFlowProductOfCorrelationsVsMPro[6]; // average product of correlations <2>, <4>, <6> and <8>
477 // [0=<<2><4>>,1=<<2><6>>,2=<<2><8>>,3=<<4><6>>,4=<<4><8>>,5=<<6><8>>]
478 TProfile *fIntFlowProductOfCorrectionTermsForNUAPro; // average product of correction terms for NUA
479 TProfile *fIntFlowCorrectionTermsForNUAPro[2]; // average correction terms for non-uniform acceptance (with wrong errors!) [0=sin terms,1=cos terms]
480 TProfile *fIntFlowCorrectionTermsForNUAVsMPro[2][4]; // average correction terms for non-uniform acceptance (with wrong errors!) [0=sin terms,1=cos terms][correction term index] vs multiplicity
481 // 3e.) histograms with final results:
482 TH1D *fIntFlowCorrelationsHist; // final results for average correlations <<2>>, <<4>>, <<6>> and <<8>> (with correct errors!)
483 TH1D *fIntFlowCorrelationsVsMHist[4]; // average correlations <<2>>, <<4>>, <<6>> and <<8>> versus multiplicity (error is correct here!)
484 TH1D *fIntFlowCorrelationsAllHist; // final results for all average correlations (with correct errors!)
485 TH1D *fIntFlowCorrectionTermsForNUAHist[2];// final results for correction terms for non-uniform acceptance (with correct errors!) [0=sin terms,1=cos terms]
486 TH1D *fIntFlowCovariances; // final result for covariances of correlations (multiplied with weight dependent prefactor)
487 TH1D *fIntFlowSumOfEventWeights[2]; // sum of linear and quadratic event weights for <2>, <4>, <6> and <8>: [0=linear 1,1=quadratic]
488 TH1D *fIntFlowSumOfProductOfEventWeights; // sum of products of event weights for correlations <2>, <4>, <6> and <8>
489 TH1D *fIntFlowCovariancesVsM[6]; // final result for covariances of correlations (multiplied with weight dependent prefactor) versus M
490 // [0=Cov(2,4),1=Cov(2,6),2=Cov(2,8),3=Cov(4,6),4=Cov(4,8),5=Cov(6,8)]
491 TH1D *fIntFlowSumOfEventWeightsVsM[4][2]; // sum of linear and quadratic event weights for <2>, <4>, <6> and <8> versum multiplicity
492 // [0=sum{w_{<2>}},1=sum{w_{<4>}},2=sum{w_{<6>}},3=sum{w_{<8>}}][0=linear 1,1=quadratic]
493 TH1D *fIntFlowSumOfProductOfEventWeightsVsM[6]; // sum of products of event weights for correlations <2>, <4>, <6> and <8> vs M
494 // [0=sum{w_{<2>}w_{<4>}},1=sum{w_{<2>}w_{<6>}},2=sum{w_{<2>}w_{<8>}},
495 // 3=sum{w_{<4>}w_{<6>}},4=sum{w_{<4>}w_{<8>}},5=sum{w_{<6>}w_{<8>}}]
496 TH1D *fIntFlowCovariancesNUA; // final result for covariances of all terms needed for NUA (multiplied with weight dependent prefactor)
497 TH1D *fIntFlowSumOfEventWeightsNUA[2][2]; // sum of linear and quadratic event weights for NUA terms: [0=sin,1=cos][0=linear 1,1=quadratic]
498 TH1D *fIntFlowSumOfProductOfEventWeightsNUA; // sum of products of event weights for NUA terms
499 TH1D *fIntFlowQcumulants; // final results for integrated Q-cumulants QC{2}, QC{4}, QC{6} and QC{8}
500 TH1D *fIntFlowQcumulantsVsM[4]; // final results for integrated Q-cumulants QC{2}, QC{4}, QC{6} and QC{8} versus multiplicity
501 TH1D *fIntFlowQcumulantsRebinnedInM; // final results for reference Q-cumulants QC{2}, QC{4}, QC{6} and QC{8} rebinned in M
502 TH1D *fIntFlowQcumulantsErrorSquaredRatio; // ratio between error squared: with/without non-isotropic terms
503 TH1D *fIntFlow; // final results for integrated flow estimates v_n{2,QC}, v_n{4,QC}, v_n{6,QC} and v_n{8,QC}
504 TH1D *fIntFlowVsM[4]; // final results for integrated flow estimates v_n{2,QC}, v_n{4,QC}, v_n{6,QC} and v_n{8,QC} versus multiplicity
505 TH1D *fIntFlowRebinnedInM; // final results for ref. flow estimates v_n{2,QC}, v_n{4,QC}, v_n{6,QC} and v_n{8,QC} rebinned in M
506 TH1D *fIntFlowDetectorBias; // bias coming from detector inefficiencies to <<2>>, <<4>>, <<6>> and <<8>> (corrected/measured)
507 TH1D *fIntFlowDetectorBiasVsM[4]; // bias coming from detector inefficiencies to <<2>>, <<4>>, <<6>> and <<8>> vs M (corrected/measured)
508 // 4.) differential flow
510 TList *fDiffFlowList; // list to hold list with all histograms (fDiffFlowResults) and list with profiles (fDiffFlowProfiles) relevant for differential flow
511 TList *fDiffFlowProfiles; // list to hold all profiles relevant for differential flow
512 TList *fDiffFlowResults; // list to hold all histograms with final results relevant for differential flow
513 // 4aa.) nested list in list fDiffFlowProfiles:
514 TList *fDiffFlowCorrelationsProList[2][2]; // list to hold profiles with all correlations for differential flow [0=RP,1=POI][0=pt,1=eta]
515 TList *fDiffFlowProductOfCorrelationsProList[2][2]; // list to hold profiles with products of all correlations for differential flow [0=RP,1=POI][0=pt,1=eta]
516 TList *fDiffFlowCorrectionsProList[2][2]; // list to hold profiles with correction term for NUA for differential flow [0=RP,1=POI][0=pt,1=eta]
517 // 4ab.) nested list in list fDiffFlowResults:
518 TList *fDiffFlowCorrelationsHistList[2][2]; // list to hold histograms with all correlations for differential flow [0=RP,1=POI][0=pt,1=eta]
519 TList *fDiffFlowSumOfEventWeightsHistList[2][2][2]; // list to hold histograms with sum of linear/quadratic event weights [0=RP,1=POI][0=pt,1=eta][0=linear 1,1=quadratic]
520 TList *fDiffFlowSumOfProductOfEventWeightsHistList[2][2]; // list to hold histograms with sum of products of event weights [0=RP,1=POI][0=pt,1=eta]
521 TList *fDiffFlowCorrectionsHistList[2][2]; // list to hold histograms with correction term for NUA for differential flow [0=RP,1=POI][0=pt,1=eta]
522 TList *fDiffFlowCovariancesHistList[2][2]; // list to hold histograms with all covariances for differential flow [0=RP,1=POI][0=pt,1=eta]
523 TList *fDiffFlowCumulantsHistList[2][2]; // list to hold histograms with all cumulants for differential flow [0=RP,1=POI][0=pt,1=eta]
524 TList *fDiffFlowHistList[2][2]; // list to hold histograms with final results for differential flow [0=RP,1=POI][0=pt,1=eta]
526 TProfile *fDiffFlowFlags; // profile to hold all flags for differential flow
527 Bool_t fCalculate2DFlow; // calculate differential flow in (pt,eta) (Remark: this is very expensive in terms of CPU time)
528 // 4c.) event-by-event quantities:
530 TProfile *fReRPQ1dEBE[3][2][4][9]; // real part [0=r,1=p,2=q][0=pt,1=eta][m][k]
531 TProfile *fImRPQ1dEBE[3][2][4][9]; // imaginary part [0=r,1=p,2=q][0=pt,1=eta][m][k]
532 TProfile *fs1dEBE[3][2][9]; // [0=r,1=p,2=q][0=pt,1=eta][k] // to be improved
533 TH1D *fDiffFlowCorrelationsEBE[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][reduced correlation index]
534 TH1D *fDiffFlowEventWeightsForCorrelationsEBE[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][event weights for reduced correlation index]
535 TH1D *fDiffFlowCorrectionTermsForNUAEBE[2][2][2][10]; // [0=RP,1=POI][0=pt,1=eta][0=sin terms,1=cos terms][correction term index]
537 TProfile2D *fReRPQ2dEBE[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)
538 TProfile2D *fImRPQ2dEBE[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)
539 TProfile2D *fs2dEBE[3][9]; // [t][k] // to be improved
542 TProfile *fDiffFlowCorrelationsPro[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][correlation index]
543 TProfile *fDiffFlowSquaredCorrelationsPro[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][correlation index]
544 TProfile *fDiffFlowProductOfCorrelationsPro[2][2][8][8]; // [0=RP,1=POI][0=pt,1=eta] [0=<2>,1=<2'>,2=<4>,3=<4'>,4=<6>,5=<6'>,6=<8>,7=<8'>] x
545 // [0=<2>,1=<2'>,2=<4>,3=<4'>,4=<6>,5=<6'>,6=<8>,7=<8'>]
546 TProfile *fDiffFlowCorrectionTermsForNUAPro[2][2][2][10]; // [0=RP,1=POI][0=pt,1=eta][0=sin terms,1=cos terms][correction term index]
548 // 4e.) histograms holding final results:
550 TH1D *fDiffFlowCorrelationsHist[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][correlation index]
551 TH1D *fDiffFlowCovariances[2][2][5]; // [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]
552 TH1D *fDiffFlowCumulants[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][0=QC{2'},1=QC{4'},2=QC{6'},3=QC{8'}]
553 TH1D *fDiffFlow[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][0=v'{2},1=v'{4},2=v'{6},3=v'{8}]
554 TH1D *fDiffFlowSumOfEventWeights[2][2][2][4]; // [0=RP,1=POI][0=pt,1=eta][0=linear 1,1=quadratic][0=<2'>,1=<4'>,2=<6'>,3=<8'>]
555 TH1D *fDiffFlowSumOfProductOfEventWeights[2][2][8][8]; // [0=RP,1=POI][0=pt,1=eta] [0=<2>,1=<2'>,2=<4>,3=<4'>,4=<6>,5=<6'>,6=<8>,7=<8'>] x
556 // [0=<2>,1=<2'>,2=<4>,3=<4'>,4=<6>,5=<6'>,6=<8>,7=<8'>]
557 TH1D *fDiffFlowCorrectionTermsForNUAHist[2][2][2][10]; // [0=RP,1=POI][0=pt,1=eta][0=sin terms,1=cos terms][correction term index]
560 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]
561 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]
562 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]
564 // 5.) distributions:
565 TList *fDistributionsList; // list to hold all distributions of correlations
566 TProfile *fDistributionsFlags; // profile to hold all flags for distributions of correlations
567 Bool_t fStoreDistributions; // store or not distributions of correlations
568 TH1D *fDistributions[4]; // [0=distribution of <2>,1=distribution of <4>,2=distribution of <6>,3=distribution of <8>]
569 Double_t fMinValueOfCorrelation[4]; // min values of <2>, <4>, <6> and <8>
570 Double_t fMaxValueOfCorrelation[4]; // max values of <2>, <4>, <6> and <8>
573 TList *fVariousList; // list to hold various unclassified objects
574 TH1D *fPhiDistributionForOneEvent; // store phi distribution for one event to illustrate flow
576 // x.) debugging and cross-checking:
577 TList *fNestedLoopsList; // list to hold all profiles filled with nested loops
578 Bool_t fEvaluateIntFlowNestedLoops; // evaluate nested loops relevant for integrated flow
579 Bool_t fEvaluateDiffFlowNestedLoops; // evaluate nested loops relevant for differential flow
580 Int_t fMaxAllowedMultiplicity; // nested loops will be evaluated only for events with multiplicity <= fMaxAllowedMultiplicity
581 TProfile *fEvaluateNestedLoops; // profile with four bins: fEvaluateIntFlowNestedLoops, fEvaluateDiffFlowNestedLoops, fCrossCheckInPtBinNo and fCrossCheckInEtaBinNo
583 TProfile *fIntFlowDirectCorrelations; // multiparticle correlations relevant for int. flow calculated with nested loops
584 TProfile *fIntFlowExtraDirectCorrelations; // when particle weights are used some extra correlations appear
585 TProfile *fIntFlowDirectCorrectionTermsForNUA[2]; // average correction terms for non-uniform acceptance evaluated with nested loops [0=sin terms,1=cos terms]
586 // differential flow:
587 Int_t fCrossCheckInPtBinNo; // cross-check results for reduced correlations and corrections in this pt bin
588 Int_t fCrossCheckInEtaBinNo; // cross-check results for reduced correlations and corrections in this eta bin
589 TH1D *fNoOfParticlesInBin; // bin: 1 = # of RPs in pt bin, 2 = # of RPs in eta bin, 3 = # of POIs in pt bin, 4 = # of POIs in eta bin
590 TProfile *fDiffFlowDirectCorrelations[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][correlation index]
591 TProfile *fDiffFlowDirectCorrectionTermsForNUA[2][2][2][10]; // [0=RP,1=POI][0=pt,1=eta][0=sin terms,1=cos terms][correction term index]
593 ClassDef(AliFlowAnalysisWithQCumulants, 0);
596 //================================================================================================================