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 virtual void StoreIntFlowFlags();
58 virtual void StoreDiffFlowFlags();
59 virtual void StoreHarmonic();
60 // 2.) method Make() and methods called within Make():
61 virtual void Make(AliFlowEventSimple *anEvent);
62 // 2a.) integrated flow:
63 virtual void FillAverageMultiplicities(Int_t nRP);
64 virtual void CalculateIntFlowCorrelations();
65 virtual void CalculateIntFlowProductOfCorrelations();
66 virtual void CalculateIntFlowSumOfEventWeights();
67 virtual void CalculateIntFlowSumOfProductOfEventWeights();
68 virtual void CalculateIntFlowCorrectionsForNUASinTerms();
69 virtual void CalculateIntFlowCorrectionsForNUACosTerms();
71 virtual void CalculateWeightedCorrelationsForIntegratedFlow();
72 virtual void CalculateWeightedQProductsForIntFlow();
73 virtual void EvaluateNestedLoopsForIntegratedFlow(AliFlowEventSimple* anEvent);
74 // 2b.) differential flow:
75 virtual void CalculateReducedCorrelations1D(TString type, TString ptOrEta); // type = RP or POI
76 virtual void CalculateDiffFlowProductOfCorrelations(TString type, TString ptOrEta); // type = RP or POI
77 virtual void CalculateDiffFlowSumOfEventWeights(TString type, TString ptOrEta); // type = RP or POI
78 virtual void CalculateDiffFlowSumOfProductOfEventWeights(TString type, TString ptOrEta); // type = RP or POI
80 virtual void CalculateCorrelationsForDifferentialFlow2D(TString type); // type = RP or POI
81 virtual void CalculateCorrectionsForNonUniformAcceptanceForDifferentialFlowCosTerms(TString type); // type = RP or POI
82 virtual void CalculateCorrectionsForNonUniformAcceptanceForDifferentialFlowSinTerms(TString type); // type = RP or POI
83 virtual void CalculateWeightedCorrelationsForDifferentialFlow2D(TString type);
84 virtual void EvaluateNestedLoopsForDifferentialFlow(AliFlowEventSimple* anEvent);
85 // 3.) method Finish() and methods called within Finish():
86 virtual void Finish();
87 // 3a.) integrated flow:
88 virtual void FinalizeCorrelationsIntFlow();
89 virtual void FinalizeCorrectionTermsForNUAIntFlow();
90 virtual void CalculateCovariancesIntFlow();
91 virtual void CalculateCumulantsIntFlow();
92 virtual void CalculateIntFlow();
93 virtual void FillCommonHistResultsIntFlow();
95 //virtual void CalculateCorrectionsForNUAForIntQcumulants();
96 virtual void CalculateQcumulantsCorrectedForNUAIntFlow();
97 virtual void CalculateIntFlowCorrectedForNUA();
98 //virtual void ApplyCorrectionForNonUniformAcceptanceToCumulantsForIntFlow(Bool_t useParticleWeights, TString eventWeights);
99 //virtual void PrintQuantifyingCorrectionsForNonUniformAcceptance(Bool_t useParticleWeights, TString eventWeights);
100 virtual void PrintFinalResultsForIntegratedFlow(TString type);
101 virtual void CompareResultsFromNestedLoopsAndFromQVectorsForIntFlow(Bool_t useParticleWeights);
102 // 3b.) differential flow:
103 virtual void FinalizeReducedCorrelations(TString type, TString ptOrEta);
104 virtual void CalculateDiffFlowCovariances(TString type, TString ptOrEta);
105 virtual void CalculateDiffFlowCumulants(TString type, TString ptOrEta);
106 virtual void CalculateDiffFlow(TString type, TString ptOrEta);
107 virtual void CalculateFinalResultsForRPandPOIIntegratedFlow(TString type); // to be improved (add also possibility to integrate over eta yield)
108 virtual void FillCommonHistResultsDiffFlow(TString type);
110 virtual void CalculateFinalCorrectionsForNonUniformAcceptanceForDifferentialFlow(Bool_t useParticleWeights, TString type);
111 virtual void CompareResultsFromNestedLoopsAndFromQVectorsForDiffFlow(Bool_t useParticleWeights);
113 // to be improved (removed):
114 //virtual void FinalizeCorrelationsForDiffFlow(TString type, Bool_t useParticleWeights, TString eventWeights);
116 // 4.) method GetOutputHistograms() and methods called within GetOutputHistograms():
117 virtual void GetOutputHistograms(TList *outputListHistos);
118 virtual void GetPointersForCommonHistograms(TList *outputListHistos);
119 virtual void GetPointersForParticleWeightsHistograms(TList *outputListHistos);
120 virtual void GetPointersForIntFlowHistograms(TList *outputListHistos);
121 virtual void GetPointersForDiffFlowHistograms(TList *outputListHistos);
122 virtual void GetPointersForNestedLoopsHistograms(TList *outputListHistos); // to be improved (no need to pass here argument, use setter for base list instead)
124 // 5.) other methods:
125 TProfile* MakePtProjection(TProfile2D *profilePtEta) const;
126 TProfile* MakeEtaProjection(TProfile2D *profilePtEta) const;
127 virtual void WriteHistograms(TString outputFileName);
129 // **** SETTERS and GETTERS ****
132 TList* GetHistList() const {return this->fHistList;}
135 void SetCommonHists(AliFlowCommonHist* const ch) {this->fCommonHists = ch;};
136 AliFlowCommonHist* GetCommonHists() const {return this->fCommonHists;};
137 void SetCommonHists2nd(AliFlowCommonHist* const ch2nd) {this->fCommonHists2nd = ch2nd;};
138 AliFlowCommonHist* GetCommonHists2nd() const {return this->fCommonHists2nd;};
139 void SetCommonHists4th(AliFlowCommonHist* const ch4th) {this->fCommonHists4th = ch4th;};
140 AliFlowCommonHist* GetCommonHists4th() const {return this->fCommonHists4th;};
141 void SetCommonHists6th(AliFlowCommonHist* const ch6th) {this->fCommonHists6th = ch6th;};
142 AliFlowCommonHist* GetCommonHists6th() const {return this->fCommonHists6th;};
143 void SetCommonHists8th(AliFlowCommonHist* const ch8th) {this->fCommonHists8th = ch8th;};
144 AliFlowCommonHist* GetCommonHists8th() const {return this->fCommonHists8th;};
145 void SetCommonHistsResults2nd(AliFlowCommonHistResults* const chr2nd) {this->fCommonHistsResults2nd = chr2nd;};
146 AliFlowCommonHistResults* GetCommonHistsResults2nd() const {return this->fCommonHistsResults2nd;};
147 void SetCommonHistsResults4th(AliFlowCommonHistResults* const chr4th) {this->fCommonHistsResults4th = chr4th;};
148 AliFlowCommonHistResults* GetCommonHistsResults4th() const {return this->fCommonHistsResults4th;};
149 void SetCommonHistsResults6th(AliFlowCommonHistResults* const chr6th) {this->fCommonHistsResults6th = chr6th;};
150 AliFlowCommonHistResults* GetCommonHistsResults6th() const {return this->fCommonHistsResults6th;};
151 void SetCommonHistsResults8th(AliFlowCommonHistResults* const chr8th) {this->fCommonHistsResults8th = chr8th;};
152 AliFlowCommonHistResults* GetCommonHistsResults8th() const {return this->fCommonHistsResults8th;};
153 void SetHarmonic(Int_t const harmonic) {this->fHarmonic = harmonic;};
154 Int_t GetHarmonic() const {return this->fHarmonic;};
155 void SetAnalysisLabel(const char *aLabel) {this->fAnalysisLabel->Append(*aLabel);};
156 TString *GetAnalysisLabel() const {return this->fAnalysisLabel;};
158 // 2.) particle weights:
159 void SetWeightsList(TList* wlist) {this->fWeightsList = (TList*)wlist->Clone();}
160 TList* GetWeightsList() const {return this->fWeightsList;}
161 void SetUsePhiWeights(Bool_t const uPhiW) {this->fUsePhiWeights = uPhiW;};
162 Bool_t GetUsePhiWeights() const {return this->fUsePhiWeights;};
163 void SetUsePtWeights(Bool_t const uPtW) {this->fUsePtWeights = uPtW;};
164 Bool_t GetUsePtWeights() const {return this->fUsePtWeights;};
165 void SetUseEtaWeights(Bool_t const uEtaW) {this->fUseEtaWeights = uEtaW;};
166 Bool_t GetUseEtaWeights() const {return this->fUseEtaWeights;};
167 void SetUseParticleWeights(TProfile* const uPW) {this->fUseParticleWeights = uPW;};
168 TProfile* GetUseParticleWeights() const {return this->fUseParticleWeights;};
169 void SetPhiWeights(TH1F* const histPhiWeights) {this->fPhiWeights = histPhiWeights;};
170 TH1F* GetPhiWeights() const {return this->fPhiWeights;};
171 void SetPtWeights(TH1D* const histPtWeights) {this->fPtWeights = histPtWeights;};
172 TH1D* GetPtWeights() const {return this->fPtWeights;};
173 void SetEtaWeights(TH1D* const histEtaWeights) {this->fEtaWeights = histEtaWeights;};
174 TH1D* GetEtaWeights() const {return this->fEtaWeights;};
176 // 3.) integrated flow:
178 void SetIntFlowFlags(TProfile* const intFlowFlags) {this->fIntFlowFlags = intFlowFlags;};
179 TProfile* GetIntFlowFlags() const {return this->fIntFlowFlags;};
180 void SetApplyCorrectionForNUA(Bool_t const applyCorrectionForNUA) {this->fApplyCorrectionForNUA = applyCorrectionForNUA;};
181 Bool_t GetApplyCorrectionForNUA() const {return this->fApplyCorrectionForNUA;};
182 // integrated flow profiles:
183 void SetAvMultiplicity(TProfile* const avMultiplicity) {this->fAvMultiplicity = avMultiplicity;};
184 TProfile* GetAvMultiplicity() const {return this->fAvMultiplicity;};
185 void SetIntFlowCorrelationsPro(TProfile* const intFlowCorrelationsPro) {this->fIntFlowCorrelationsPro = intFlowCorrelationsPro;};
186 TProfile* GetIntFlowCorrelationsPro() const {return this->fIntFlowCorrelationsPro;};
187 void SetIntFlowCorrelationsAllPro(TProfile* const intFlowCorrelationsAllPro) {this->fIntFlowCorrelationsAllPro = intFlowCorrelationsAllPro;};
188 TProfile* GetIntFlowCorrelationsAllPro() const {return this->fIntFlowCorrelationsAllPro;};
189 void SetIntFlowProductOfCorrelationsPro(TProfile* const intFlowProductOfCorrelationsPro) {this->fIntFlowProductOfCorrelationsPro = intFlowProductOfCorrelationsPro;};
190 TProfile* GetIntFlowProductOfCorrelationsPro() const {return this->fIntFlowProductOfCorrelationsPro;};
191 void SetIntFlowCorrectionTermsForNUAPro(TProfile* const ifctfnp, Int_t sc) {this->fIntFlowCorrectionTermsForNUAPro[sc] = ifctfnp;};
192 TProfile* GetIntFlowCorrectionTermsForNUAPro(Int_t sc) const {return this->fIntFlowCorrectionTermsForNUAPro[sc];};
193 // integrated flow histograms holding all results:
194 void SetIntFlowCorrelationsHist(TH1D* const intFlowCorrelationsHist) {this->fIntFlowCorrelationsHist = intFlowCorrelationsHist;};
195 TH1D* GetIntFlowCorrelationsHist() const {return this->fIntFlowCorrelationsHist;};
196 void SetIntFlowCorrelationsAllHist(TH1D* const intFlowCorrelationsAllHist) {this->fIntFlowCorrelationsAllHist = intFlowCorrelationsAllHist;};
197 TH1D* GetIntFlowCorrelationsAllHist() const {return this->fIntFlowCorrelationsAllHist;};
198 // to be improved (removed:)
199 //void SetIntFlowProductOfCorrelationsHist(TH1D* const intFlowProductOfCorrelationsHist) {this->fIntFlowProductOfCorrelationsHist = intFlowProductOfCorrelationsHist;};
200 //TH1D* GetIntFlowProductOfCorrelationsHist() const {return this->fIntFlowProductOfCorrelationsHist;};
201 void SetIntFlowCorrectionTermsForNUAHist(TH1D* const ifctfnh, Int_t sc) {this->fIntFlowCorrectionTermsForNUAHist[sc] = ifctfnh;};
202 TH1D* GetIntFlowCorrectionTermsForNUAHist(Int_t sc) const {return this->fIntFlowCorrectionTermsForNUAHist[sc];};
203 void SetIntFlowCovariances(TH1D* const intFlowCovariances) {this->fIntFlowCovariances = intFlowCovariances;};
204 TH1D* GetIntFlowCovariances() const {return this->fIntFlowCovariances;};
205 void SetIntFlowSumOfEventWeights(TH1D* const intFlowSumOfEventWeights, Int_t power) {this->fIntFlowSumOfEventWeights[power] = intFlowSumOfEventWeights;};
206 TH1D* GetIntFlowSumOfEventWeights(Int_t power) const {return this->fIntFlowSumOfEventWeights[power];};
207 void SetIntFlowSumOfProductOfEventWeights(TH1D* const intFlowSumOfProductOfEventWeights) {this->fIntFlowSumOfProductOfEventWeights = intFlowSumOfProductOfEventWeights;};
208 TH1D* GetIntFlowSumOfProductOfEventWeights() const {return this->fIntFlowSumOfProductOfEventWeights;};
209 void SetIntFlowQcumulants(TH1D* const intFlowQcumulants) {this->fIntFlowQcumulants = intFlowQcumulants;};
210 TH1D* GetIntFlowQcumulants() const {return this->fIntFlowQcumulants;};
211 void SetIntFlow(TH1D* const intFlow) {this->fIntFlow = intFlow;};
212 TH1D* GetIntFlow() const {return this->fIntFlow;};
214 // 4.) differential flow:
216 void SetDiffFlowFlags(TProfile* const diffFlowFlags) {this->fDiffFlowFlags = diffFlowFlags;};
217 TProfile* GetDiffFlowFlags() const {return this->fDiffFlowFlags;};
218 void SetCalculate2DFlow(Bool_t const calculate2DFlow) {this->fCalculate2DFlow = calculate2DFlow;};
219 Bool_t GetCalculate2DFlow() const {return this->fCalculate2DFlow;};
222 void SetDiffFlowCorrelationsPro(TProfile* const diffFlowCorrelationsPro, Int_t i, Int_t j, Int_t k) {this->fDiffFlowCorrelationsPro[i][j][k] = diffFlowCorrelationsPro;};
223 TProfile* GetDiffFlowCorrelationsPro(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowCorrelationsPro[i][j][k];};
224 void SetDiffFlowProductOfCorrelationsPro(TProfile* const dfpocp, Int_t i, Int_t j, Int_t k, Int_t l) {this->fDiffFlowProductOfCorrelationsPro[i][j][k][l] = dfpocp;};
225 TProfile* GetDiffFlowProductOfCorrelationsPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowProductOfCorrelationsPro[i][j][k][l];};
227 void SetCorrelationsPro(TProfile2D* const correlPro, Int_t i, Int_t j, Int_t k, Int_t l) {this->fCorrelationsPro[i][j][k][l] = correlPro;};
228 TProfile2D* GetCorrelationsPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fCorrelationsPro[i][j][k][l];};
229 void SetProductsOfCorrelationsPro(TProfile2D* const proOfcorrelPro, Int_t i, Int_t j, Int_t k, Int_t l) {this->fProductsOfCorrelationsPro[i][j][k][l] = proOfcorrelPro;};
230 TProfile2D* GetProductsOfCorrelationsPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fProductsOfCorrelationsPro[i][j][k][l];};
231 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;};
232 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];};
234 void SetDiffFlowCorrelationsHist(TH1D* const diffFlowCorrelationsHist, Int_t i, Int_t j, Int_t k) {this->fDiffFlowCorrelationsHist[i][j][k] = diffFlowCorrelationsHist;};
235 TH1D* GetDiffFlowCorrelationsHist(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowCorrelationsHist[i][j][k];};
236 void SetDiffFlowCovariances(TH1D* const diffFlowCovariances, Int_t i, Int_t j, Int_t k) {this->fDiffFlowCovariances[i][j][k] = diffFlowCovariances;};
237 TH1D* GetDiffFlowCovariances(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowCovariances[i][j][k];};
238 void SetDiffFlowCumulants(TH1D* const diffFlowCumulants, Int_t i, Int_t j, Int_t k) {this->fDiffFlowCumulants[i][j][k] = diffFlowCumulants;};
239 TH1D* GetDiffFlowCumulants(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowCumulants[i][j][k];};
240 void SetDiffFlow(TH1D* const diffFlow, Int_t i, Int_t j, Int_t k) {this->fDiffFlow[i][j][k] = diffFlow;};
241 TH1D* GetDiffFlow(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlow[i][j][k];};
242 void SetDiffFlowSumOfEventWeights(TH1D* const dfsoew, Int_t i, Int_t j, Int_t k, Int_t l) {this->fDiffFlowSumOfEventWeights[i][j][k][l] = dfsoew;};
243 TH1D* GetDiffFlowSumOfEventWeights(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowSumOfEventWeights[i][j][k][l];};
244 void SetDiffFlowSumOfProductOfEventWeights(TH1D* const dfsopoew, Int_t i, Int_t j, Int_t k, Int_t l) {this->fDiffFlowSumOfProductOfEventWeights[i][j][k][l] = dfsopoew;};
245 TH1D* GetDiffFlowSumOfProductOfEventWeights(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowSumOfProductOfEventWeights[i][j][k][l];};
247 // x.) debugging and cross-checking:
248 void SetNestedLoopsList(TList* nllist) {this->fNestedLoopsList = nllist;};
249 TList* GetNestedLoopsList() const {return this->fNestedLoopsList;};
250 void SetEvaluateNestedLoopsForIntFlow(Bool_t const enlfif) {this->fEvaluateNestedLoopsForIntFlow = enlfif;};
251 Bool_t GetEvaluateNestedLoopsForIntFlow() const {return this->fEvaluateNestedLoopsForIntFlow;};
252 void SetEvaluateNestedLoopsForDiffFlow(Bool_t const enlfdf) {this->fEvaluateNestedLoopsForDiffFlow = enlfdf;};
253 Bool_t GetEvaluateNestedLoopsForDiffFlow() const {return this->fEvaluateNestedLoopsForDiffFlow;};
254 void SetEvaluateNestedLoops(TProfile* const enl) {this->fEvaluateNestedLoops = enl;};
255 TProfile* GetEvaluateNestedLoops() const {return this->fEvaluateNestedLoops;};
256 void SetDirectCorrelations(TProfile* const dc) {this->fDirectCorrelations = dc;};
257 TProfile* GetDirectCorrelations() const {return this->fDirectCorrelations;};
258 void SetDirectCorrectionsCos(TProfile* const dcc) {this->fDirectCorrectionsCos = dcc;};
259 TProfile* GetDirectCorrectionsCos() const {return this->fDirectCorrectionsCos;};
260 void SetDirectCorrectionsSin(TProfile* const dcs) {this->fDirectCorrectionsSin = dcs;};
261 TProfile* GetDirectCorrectionsSin() const {return this->fDirectCorrectionsSin;};
262 void SetDirectCorrelationsDiffFlow(TProfile* const dcdf) {this->fDirectCorrelationsDiffFlow = dcdf;};
263 TProfile* GetDirectCorrelationsDiffFlow() const {return this->fDirectCorrelationsDiffFlow;};
264 void SetDirectCorrectionsDiffFlowCos(TProfile* const dcdfc) {this->fDirectCorrectionsDiffFlowCos = dcdfc;};
265 TProfile* GetDirectCorrectionsDiffFlowCos() const {return this->fDirectCorrectionsDiffFlowCos;};
266 void SetDirectCorrectionsDiffFlowSin(TProfile* const dcdfs) {this->fDirectCorrectionsDiffFlowSin = dcdfs;};
267 TProfile* GetDirectCorrectionsDiffFlowSin() const {return this->fDirectCorrectionsDiffFlowSin;};
268 void SetDirectCorrelationsW(TProfile* const dcw) {this->fDirectCorrelationsW = dcw;};
269 TProfile* GetDirectCorrelationsW() const {return this->fDirectCorrelationsW;};
270 void SetDirectCorrectionsCosW(TProfile* const dccw) {this->fDirectCorrectionsCosW = dccw;};
271 TProfile* GetDirectCorrectionsCosW() const {return this->fDirectCorrectionsCosW;};
272 void SetDirectCorrectionsSinW(TProfile* const dcsw) {this->fDirectCorrectionsSinW = dcsw;};
273 TProfile* GetDirectCorrectionsSinW() const {return this->fDirectCorrectionsSinW;};
274 void SetDirectCorrelationsDiffFlowW(TProfile* const dcdfw) {this->fDirectCorrelationsDiffFlowW = dcdfw;};
275 TProfile* GetDirectCorrelationsDiffFlowW() const {return this->fDirectCorrelationsDiffFlowW;};
276 void SetDirectCorrectionsDiffFlowCosW(TProfile* const dcdfcw) {this->fDirectCorrectionsDiffFlowCosW = dcdfcw;};
277 TProfile* GetDirectCorrectionsDiffFlowCosW() const {return this->fDirectCorrectionsDiffFlowCosW;};
278 void SetDirectCorrectionsDiffFlowSinW(TProfile* const dcdfsw) {this->fDirectCorrectionsDiffFlowSinW = dcdfsw;};
279 TProfile* GetDirectCorrectionsDiffFlowSinW() const {return this->fDirectCorrectionsDiffFlowSinW;};
283 AliFlowAnalysisWithQCumulants(const AliFlowAnalysisWithQCumulants& afawQc);
284 AliFlowAnalysisWithQCumulants& operator=(const AliFlowAnalysisWithQCumulants& afawQc);
287 TList* fHistList; // base list to hold all output object
290 AliFlowCommonHist *fCommonHists; // common control histograms (taking into account ALL events)
291 AliFlowCommonHist *fCommonHists2nd; // common control histograms (taking into account only the events with 2 and more particles)
292 AliFlowCommonHist *fCommonHists4th; // common control histograms (taking into account only the events with 4 and more particles)
293 AliFlowCommonHist *fCommonHists6th; // common control histograms (taking into account only the events with 6 and more particles)
294 AliFlowCommonHist *fCommonHists8th; // common control histograms (taking into account only the events with 8 and more particles)
295 AliFlowCommonHistResults *fCommonHistsResults2nd; // final results for 2nd order int. and diff. flow for events with 2 and more particles
296 AliFlowCommonHistResults *fCommonHistsResults4th; // final results for 4th order int. and diff. flow for events with 4 and more particles
297 AliFlowCommonHistResults *fCommonHistsResults6th; // final results for 6th order int. and diff. flow for events with 6 and more particles
298 AliFlowCommonHistResults *fCommonHistsResults8th; // final results for 8th order int. and diff. flow for events with 8 and more particles
299 Int_t fnBinsPhi; // number of phi bins
300 Double_t fPhiMin; // minimum phi
301 Double_t fPhiMax; // maximum phi
302 Double_t fPhiBinWidth; // bin width for phi histograms
303 Int_t fnBinsPt; // number of pt bins
304 Double_t fPtMin; // minimum pt
305 Double_t fPtMax; // maximum pt
306 Double_t fPtBinWidth; // bin width for pt histograms
307 Int_t fnBinsEta; // number of eta bins
308 Double_t fEtaMin; // minimum eta
309 Double_t fEtaMax; // maximum eta
310 Double_t fEtaBinWidth; // bin width for eta histograms
311 Int_t fHarmonic; // harmonic
312 TString *fAnalysisLabel; // analysis label (all histograms and output file will have this label)
315 TList *fWeightsList; // list to hold all histograms with particle weights: fUseParticleWeights, fPhiWeights, fPtWeights and fEtaWeights
316 Bool_t fUsePhiWeights; // use phi weights
317 Bool_t fUsePtWeights; // use pt weights
318 Bool_t fUseEtaWeights; // use eta weights
319 TProfile *fUseParticleWeights; // profile with three bins to hold values of fUsePhiWeights, fUsePtWeights and fUseEtaWeights
320 TH1F *fPhiWeights; // histogram holding phi weights
321 TH1D *fPtWeights; // histogram holding phi weights
322 TH1D *fEtaWeights; // histogram holding phi weights
324 // 3.) integrated flow
326 TList *fIntFlowList; // list to hold all histograms and profiles relevant for integrated flow
327 TList *fIntFlowProfiles; // list to hold all profiles relevant for integrated flow
328 TList *fIntFlowResults; // list to hold all histograms with final results relevant for integrated flow
330 TProfile *fIntFlowFlags; // profile to hold all flags for integrated flow
331 Bool_t fApplyCorrectionForNUA; // apply correction for non-uniform acceptance
332 // 3c.) event-by-event quantities:
333 TMatrixD *fReQ; // fReQ[m][k] = sum_{i=1}^{M} w_{i}^{k} cos(m*phi_{i})
334 TMatrixD *fImQ; // fImQ[m][k] = sum_{i=1}^{M} w_{i}^{k} sin(m*phi_{i})
335 TMatrixD *fSMpk; // fSM[p][k] = (sum_{i=1}^{M} w_{i}^{k})^{p}
336 TH1D *fIntFlowCorrelationsEBE; // 1st bin: <2>, 2nd bin: <4>, 3rd bin: <6>, 4th bin: <8>
337 TH1D *fIntFlowCorrelationsAllEBE; // to be improved (add comment)
338 TH1D *fIntFlowCorrectionTermsForNUAEBE[2]; // [0=sin terms,1=cos terms], NUA = non-uniform acceptance
340 TProfile *fAvMultiplicity; // profile to hold average multiplicities and number of events for events with nRP>=0, nRP>=1, ... , and nRP>=8
341 TProfile *fIntFlowCorrelationsPro; // average correlations <<2>>, <<4>>, <<6>> and <<8>> (with wrong errors!)
342 TProfile *fIntFlowCorrelationsAllPro; // average all correlations for integrated flow (with wrong errors!)
343 TProfile *fIntFlowProductOfCorrelationsPro; // average product of correlations <2>, <4>, <6> and <8>:
344 TProfile *fIntFlowCorrectionTermsForNUAPro[2]; // average correction terms for non-uniform acceptance (with wrong errors!) [0=sin terms,1=cos terms]
345 // 3e.) histograms with final results:
346 TH1D *fIntFlowCorrelationsHist; // final results for average correlations <<2>>, <<4>>, <<6>> and <<8>> (with correct errors!)
347 TH1D *fIntFlowCorrelationsAllHist; // final results for all average correlations (with correct errors!)
348 TH1D *fIntFlowCorrectionTermsForNUAHist[2];// final results for correction terms for non-uniform acceptance (with correct errors!) [0=sin terms,1=cos terms]
349 TH1D *fIntFlowCovariances; // final result for covariances of correlations (multiplied with weight dependent prefactor)
350 TH1D *fIntFlowSumOfEventWeights[2]; // sum of linear and quadratic event weights for <2>, <4>, <6> and <8>: [0=linear 1,1=quadratic]
351 TH1D *fIntFlowSumOfProductOfEventWeights; // sum of products of event weights for correlations <2>, <4>, <6> and <8>
352 TH1D *fIntFlowQcumulants; // final results for integrated Q-cumulants QC{2}, QC{4}, QC{6} and QC{8}
353 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}
355 // 4.) differential flow
357 TList *fDiffFlowList; // list to hold list with all histograms (fDiffFlowResults) and list with profiles (fDiffFlowProfiles) relevant for differential flow
358 TList *fDiffFlowProfiles; // list to hold all profiles relevant for differential flow
359 TList *fDiffFlowResults; // list to hold all histograms with final results relevant for differential flow
360 // 4aa.) nested list in list fDiffFlowProfiles:
361 TList *fDiffFlowCorrelationsProList[2][2]; // list to hold profiles with all correlations for differential flow [0=RP,1=POI][0=pt,1=eta]
362 TList *fDiffFlowProductOfCorrelationsProList[2][2]; // list to hold profiles with products of all correlations for differential flow [0=RP,1=POI][0=pt,1=eta]
363 TList *fDiffFlowCorrectionsProList[2][2]; // list to hold profiles with correction term for NUA for differential flow [0=RP,1=POI][0=pt,1=eta]
364 // 4ab.) nested list in list fDiffFlowResults:
365 TList *fDiffFlowCorrelationsHistList[2][2]; // list to hold histograms with all correlations for differential flow [0=RP,1=POI][0=pt,1=eta]
366 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]
367 TList *fDiffFlowSumOfProductOfEventWeightsHistList[2][2]; // list to hold histograms with sum of products of event weights [0=RP,1=POI][0=pt,1=eta]
368 TList *fDiffFlowCovariancesHistList[2][2]; // list to hold histograms with all covariances for differential flow [0=RP,1=POI][0=pt,1=eta]
369 TList *fDiffFlowCumulantsHistList[2][2]; // list to hold histograms with all cumulants for differential flow [0=RP,1=POI][0=pt,1=eta]
370 TList *fDiffFlowHistList[2][2]; // list to hold histograms with final results for differential flow [0=RP,1=POI][0=pt,1=eta]
372 TProfile *fDiffFlowFlags; // profile to hold all flags for differential flow
373 Bool_t fCalculate2DFlow; // calculate differential flow in (pt,eta) (Remark: this is very expensive in terms of CPU time)
374 // 4c.) event-by-event quantities:
376 TProfile *fReRPQ1dEBE[3][2][4][9]; // real part [0=r,1=p,2=q][0=pt,1=eta][m][k]
377 TProfile *fImRPQ1dEBE[3][2][4][9]; // imaginary part [0=r,1=p,2=q][0=pt,1=eta][m][k]
378 TProfile *fs1dEBE[3][2][9]; // [0=r,1=p,2=q][0=pt,1=eta][k] // to be improved
379 TH1D *fDiffFlowCorrelationsEBE[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][reduced correlation index]
381 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)
382 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)
383 TProfile2D *fs2dEBE[3][9]; // [t][k] // to be improved
386 TProfile *fDiffFlowCorrelationsPro[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][correlation index]
387 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
388 // [0=<2>,1=<2'>,2=<4>,3=<4'>,4=<6>,5=<6'>,6=<8>,7=<8'>]
390 // 4e.) histograms holding final results:
392 TH1D *fDiffFlowCorrelationsHist[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][correlation index]
393 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]
394 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'}]
395 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}]
396 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'>]
397 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
398 // [0=<2>,1=<2'>,2=<4>,3=<4'>,4=<6>,5=<6'>,6=<8>,7=<8'>]
401 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]
402 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]
403 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]
405 // 5.) distributions:
406 TList *fDistributionsList; // list to hold all distributions
407 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>]
409 // x.) debugging and cross-checking:
410 // Remark: for weighted correlations cross-checking is performed only with phi weights (this is sufficient)
411 TList *fNestedLoopsList; // list to hold all profiles filled with nested loops
412 Bool_t fEvaluateNestedLoopsForIntFlow; // evaluate nested loops relevant for integrated flow
413 Bool_t fEvaluateNestedLoopsForDiffFlow; // evaluate nested loops relevant for differential flow
414 TProfile *fEvaluateNestedLoops; // profile with two bins to hold values of fEvaluateNestedLoopsForIntFlow and fEvaluateNestedLoopsForDiffFlow
415 TProfile *fDirectCorrelations; // reduced multi-particle correlations calculated with nested loop relevant for int. flow
416 TProfile *fDirectCorrectionsCos; // corrections for non-uniform acceptance (cos terms) calculated with nested loops (int. flow)
417 TProfile *fDirectCorrectionsSin; // corrections for non-uniform acceptance (sin terms) calculated with nested loops (int. flow)
418 TProfile *fDirectCorrelationsDiffFlow; // multi-particle correlations calculated with nested loop relevant for diff. flow
419 TProfile *fDirectCorrectionsDiffFlowCos; // corrections for non-uniform acceptance (cos terms) calculated with nested loops (diff. flow)
420 TProfile *fDirectCorrectionsDiffFlowSin; // corrections for non-uniform acceptance (sin terms) calculated with nested loops (diff. flow)
421 TProfile *fDirectCorrelationsW; // weighted multi-particle correlations calculated with nested loop relevant for int. flow
422 TProfile *fDirectCorrectionsCosW; // weighted corrections for non-uniform acceptance (cos terms) calculated with nested loops (int. flow)
423 TProfile *fDirectCorrectionsSinW; // weighted corrections for non-uniform acceptance (sin terms) calculated with nested loops (int. flow)
424 TProfile *fDirectCorrelationsDiffFlowW; // weighted reduced multi-particle correlations calculated with nested loop relevant for diff. flow
425 TProfile *fDirectCorrectionsDiffFlowCosW; // weighted corrections for non-uniform acceptance (cos terms) calculated with nested loops (diff. flow)
426 TProfile *fDirectCorrectionsDiffFlowSinW; // weighted corrections for non-uniform acceptance (sin terms) calculated with nested loops (diff. flow)
428 ClassDef(AliFlowAnalysisWithQCumulants, 0);
431 //================================================================================================================