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