Small fix for offline mode
[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 * *
10 * author: Ante Bilandzic *
11 * (anteb@nikhef.nl) *
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();
91d019b8 48 virtual void InitializeArraysForNestedLoops();
2aa4ebcd 49 // 1.) method Init() and methods called within Init():
e085f1a9 50 virtual void Init();
3b552efe 51 virtual void CrossCheckSettings();
2aa4ebcd 52 virtual void AccessConstants();
53 virtual void BookAndNestAllLists();
54 virtual void BookCommonHistograms();
55 virtual void BookAndFillWeightsHistograms();
56 virtual void BookEverythingForIntegratedFlow();
57 virtual void BookEverythingForDifferentialFlow();
58 virtual void BookEverythingForDistributions();
59 virtual void BookEverythingForNestedLoops();
e2168f8f 60 virtual void StoreIntFlowFlags();
61 virtual void StoreDiffFlowFlags();
57340a27 62 virtual void StoreFlagsForDistributions();
e2168f8f 63 virtual void StoreHarmonic();
2aa4ebcd 64 // 2.) method Make() and methods called within Make():
65 virtual void Make(AliFlowEventSimple *anEvent);
b1edde6c 66 // 2a.) common:
2aa4ebcd 67 virtual void FillAverageMultiplicities(Int_t nRP);
b1edde6c 68 virtual void FillCommonControlHistograms(AliFlowEventSimple *anEvent);
69 virtual void ResetEventByEventQuantities();
70 // 2b.) integrated flow:
e2168f8f 71 virtual void CalculateIntFlowCorrelations();
57340a27 72 virtual void CalculateIntFlowCorrelationsUsingParticleWeights();
e2168f8f 73 virtual void CalculateIntFlowProductOfCorrelations();
74 virtual void CalculateIntFlowSumOfEventWeights();
75 virtual void CalculateIntFlowSumOfProductOfEventWeights();
e2168f8f 76 virtual void CalculateIntFlowCorrectionsForNUACosTerms();
57340a27 77 virtual void CalculateIntFlowCorrectionsForNUACosTermsUsingParticleWeights();
78 virtual void CalculateIntFlowCorrectionsForNUASinTerms();
79 virtual void CalculateIntFlowCorrectionsForNUASinTermsUsingParticleWeights();
0328db2d 80 virtual void CalculateIntFlowProductOfCorrectionTermsForNUA();
81 virtual void CalculateIntFlowSumOfEventWeightsNUA();
82 virtual void CalculateIntFlowSumOfProductOfEventWeightsNUA();
e2168f8f 83 // ...
2aa4ebcd 84 virtual void CalculateWeightedQProductsForIntFlow();
4fbdb40a 85 virtual void EvaluateIntFlowCorrelationsWithNestedLoops(AliFlowEventSimple* const anEvent);
86 virtual void EvaluateIntFlowCorrelationsWithNestedLoopsUsingParticleWeights(AliFlowEventSimple* const anEvent);
57340a27 87 virtual void EvaluateIntFlowCorrectionsForNUAWithNestedLoops(AliFlowEventSimple* const anEvent);
88 virtual void EvaluateIntFlowCorrectionsForNUAWithNestedLoopsUsingParticleWeights(AliFlowEventSimple* const anEvent);
b1edde6c 89 // 2c.) differential flow:
91d019b8 90 virtual void CalculateDiffFlowCorrelations(TString type, TString ptOrEta); // type = RP or POI
91 virtual void CalculateDiffFlowCorrelationsUsingParticleWeights(TString type, TString ptOrEta); // type = RP or POI
e2168f8f 92 virtual void CalculateDiffFlowProductOfCorrelations(TString type, TString ptOrEta); // type = RP or POI
93 virtual void CalculateDiffFlowSumOfEventWeights(TString type, TString ptOrEta); // type = RP or POI
94 virtual void CalculateDiffFlowSumOfProductOfEventWeights(TString type, TString ptOrEta); // type = RP or POI
1614cb51 95 virtual void CalculateDiffFlowCorrectionsForNUACosTerms(TString type, TString ptOrEta);
57340a27 96 virtual void CalculateDiffFlowCorrectionsForNUACosTermsUsingParticleWeights(TString type, TString ptOrEta);
97 virtual void CalculateDiffFlowCorrectionsForNUASinTerms(TString type, TString ptOrEta);
98 virtual void CalculateDiffFlowCorrectionsForNUASinTermsUsingParticleWeights(TString type, TString ptOrEta);
e2168f8f 99 // ...
91d019b8 100 //virtual void CalculateCorrelationsForDifferentialFlow2D(TString type); // type = RP or POI
1614cb51 101 //virtual void CalculateCorrectionsForNonUniformAcceptanceForDifferentialFlowCosTerms(TString type); // type = RP or POI
102 //virtual void CalculateCorrectionsForNonUniformAcceptanceForDifferentialFlowSinTerms(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();
2aa4ebcd 109 // 3.) method Finish() and methods called within Finish():
bc92c0cb 110 virtual void Finish();
2aa4ebcd 111 // 3a.) integrated flow:
e2168f8f 112 virtual void FinalizeCorrelationsIntFlow();
113 virtual void FinalizeCorrectionTermsForNUAIntFlow();
114 virtual void CalculateCovariancesIntFlow();
0328db2d 115 virtual void CalculateCovariancesNUAIntFlow();
e2168f8f 116 virtual void CalculateCumulantsIntFlow();
117 virtual void CalculateIntFlow();
118 virtual void FillCommonHistResultsIntFlow();
119 // nua:
120 //virtual void CalculateCorrectionsForNUAForIntQcumulants();
121 virtual void CalculateQcumulantsCorrectedForNUAIntFlow();
122 virtual void CalculateIntFlowCorrectedForNUA();
123 //virtual void ApplyCorrectionForNonUniformAcceptanceToCumulantsForIntFlow(Bool_t useParticleWeights, TString eventWeights);
124 //virtual void PrintQuantifyingCorrectionsForNonUniformAcceptance(Bool_t useParticleWeights, TString eventWeights);
2aa4ebcd 125 virtual void PrintFinalResultsForIntegratedFlow(TString type);
91d019b8 126 virtual void CrossCheckIntFlowCorrelations();
127 virtual void CrossCheckIntFlowExtraCorrelations(); // extra correlations which appear only when particle weights are used
128 virtual void CrossCheckIntFlowCorrectionTermsForNUA();
2aa4ebcd 129 // 3b.) differential flow:
63911185 130 virtual void FinalizeReducedCorrelations(TString type, TString ptOrEta);
e2168f8f 131 virtual void CalculateDiffFlowCovariances(TString type, TString ptOrEta);
132 virtual void CalculateDiffFlowCumulants(TString type, TString ptOrEta);
133 virtual void CalculateDiffFlow(TString type, TString ptOrEta);
1614cb51 134 virtual void FinalizeCorrectionTermsForNUADiffFlow(TString type, TString ptOrEta);
489d5531 135 virtual void CalculateDiffFlowCumulantsCorrectedForNUA(TString type, TString ptOrEta);
1614cb51 136 virtual void CalculateDiffFlowCorrectedForNUA(TString type, TString ptOrEta);
e2168f8f 137 virtual void CalculateFinalResultsForRPandPOIIntegratedFlow(TString type); // to be improved (add also possibility to integrate over eta yield)
91d019b8 138 virtual void FillCommonHistResultsDiffFlow(TString type);
3b552efe 139 virtual void CrossCheckDiffFlowCorrelations(TString type, TString ptOrEta);
140 virtual void PrintNumberOfParticlesInSelectedBin();
91d019b8 141 virtual void CrossCheckDiffFlowCorrectionTermsForNUA(TString type, TString ptOrEta);
549112ad 142
143 // to be improved (removed):
e2168f8f 144 //virtual void FinalizeCorrelationsForDiffFlow(TString type, Bool_t useParticleWeights, TString eventWeights);
549112ad 145
e2168f8f 146 // 4.) method GetOutputHistograms() and methods called within GetOutputHistograms():
147 virtual void GetOutputHistograms(TList *outputListHistos);
3b552efe 148 virtual void GetPointersForCommonHistograms();
149 virtual void GetPointersForParticleWeightsHistograms();
150 virtual void GetPointersForIntFlowHistograms();
151 virtual void GetPointersForDiffFlowHistograms();
152 virtual void GetPointersForNestedLoopsHistograms();
e2168f8f 153
154 // 5.) other methods:
9c1a9547 155 TProfile* MakePtProjection(TProfile2D *profilePtEta) const;
156 TProfile* MakeEtaProjection(TProfile2D *profilePtEta) const;
4057ba99 157 virtual void WriteHistograms(TString outputFileName);
ad87ae62 158 virtual void WriteHistograms(TDirectoryFile *outputFileName);
9c1a9547 159
2aa4ebcd 160 // **** SETTERS and GETTERS ****
03a02aca 161
3b552efe 162 // 0.) base:
163 void SetHistList(TList* const hlist) {this->fHistList = hlist;}
2aa4ebcd 164 TList* GetHistList() const {return this->fHistList;}
8842fb2b 165
2aa4ebcd 166 // 1.) common:
167 void SetCommonHists(AliFlowCommonHist* const ch) {this->fCommonHists = ch;};
168 AliFlowCommonHist* GetCommonHists() const {return this->fCommonHists;};
7e58a232 169 void SetCommonHists2nd(AliFlowCommonHist* const ch2nd) {this->fCommonHists2nd = ch2nd;};
170 AliFlowCommonHist* GetCommonHists2nd() const {return this->fCommonHists2nd;};
7e58a232 171 void SetCommonHists4th(AliFlowCommonHist* const ch4th) {this->fCommonHists4th = ch4th;};
172 AliFlowCommonHist* GetCommonHists4th() const {return this->fCommonHists4th;};
7e58a232 173 void SetCommonHists6th(AliFlowCommonHist* const ch6th) {this->fCommonHists6th = ch6th;};
174 AliFlowCommonHist* GetCommonHists6th() const {return this->fCommonHists6th;};
7e58a232 175 void SetCommonHists8th(AliFlowCommonHist* const ch8th) {this->fCommonHists8th = ch8th;};
176 AliFlowCommonHist* GetCommonHists8th() const {return this->fCommonHists8th;};
52021ae2 177 void SetCommonHistsResults2nd(AliFlowCommonHistResults* const chr2nd) {this->fCommonHistsResults2nd = chr2nd;};
178 AliFlowCommonHistResults* GetCommonHistsResults2nd() const {return this->fCommonHistsResults2nd;};
52021ae2 179 void SetCommonHistsResults4th(AliFlowCommonHistResults* const chr4th) {this->fCommonHistsResults4th = chr4th;};
180 AliFlowCommonHistResults* GetCommonHistsResults4th() const {return this->fCommonHistsResults4th;};
52021ae2 181 void SetCommonHistsResults6th(AliFlowCommonHistResults* const chr6th) {this->fCommonHistsResults6th = chr6th;};
182 AliFlowCommonHistResults* GetCommonHistsResults6th() const {return this->fCommonHistsResults6th;};
52021ae2 183 void SetCommonHistsResults8th(AliFlowCommonHistResults* const chr8th) {this->fCommonHistsResults8th = chr8th;};
184 AliFlowCommonHistResults* GetCommonHistsResults8th() const {return this->fCommonHistsResults8th;};
2aa4ebcd 185 void SetHarmonic(Int_t const harmonic) {this->fHarmonic = harmonic;};
186 Int_t GetHarmonic() const {return this->fHarmonic;};
a5b7efd0 187 void SetAnalysisLabel(const char *aLabel) {this->fAnalysisLabel->Append(*aLabel);}; // to be improved (Append(*aLabel) changed into Append(aLabel))
b343e7e8 188 TString *GetAnalysisLabel() const {return this->fAnalysisLabel;};
3b552efe 189 void SetPrintFinalResults(Bool_t const printOrNot, Int_t const i) {this->fPrintFinalResults[i] = printOrNot;};
190 Bool_t GetPrintFinalResults(Int_t i) const {return this->fPrintFinalResults[i];};
191
a5b7efd0 192 // 2a.) particle weights:
4fbdb40a 193 void SetWeightsList(TList* const wlist) {this->fWeightsList = (TList*)wlist->Clone();}
2aa4ebcd 194 TList* GetWeightsList() const {return this->fWeightsList;}
e04e4ec5 195 void SetUsePhiWeights(Bool_t const uPhiW) {this->fUsePhiWeights = uPhiW;};
03a02aca 196 Bool_t GetUsePhiWeights() const {return this->fUsePhiWeights;};
e04e4ec5 197 void SetUsePtWeights(Bool_t const uPtW) {this->fUsePtWeights = uPtW;};
03a02aca 198 Bool_t GetUsePtWeights() const {return this->fUsePtWeights;};
e04e4ec5 199 void SetUseEtaWeights(Bool_t const uEtaW) {this->fUseEtaWeights = uEtaW;};
03a02aca 200 Bool_t GetUseEtaWeights() const {return this->fUseEtaWeights;};
2aa4ebcd 201 void SetUseParticleWeights(TProfile* const uPW) {this->fUseParticleWeights = uPW;};
202 TProfile* GetUseParticleWeights() const {return this->fUseParticleWeights;};
203 void SetPhiWeights(TH1F* const histPhiWeights) {this->fPhiWeights = histPhiWeights;};
204 TH1F* GetPhiWeights() const {return this->fPhiWeights;};
205 void SetPtWeights(TH1D* const histPtWeights) {this->fPtWeights = histPtWeights;};
206 TH1D* GetPtWeights() const {return this->fPtWeights;};
207 void SetEtaWeights(TH1D* const histEtaWeights) {this->fEtaWeights = histEtaWeights;};
208 TH1D* GetEtaWeights() const {return this->fEtaWeights;};
209
a5b7efd0 210 // 2b.) event weights:
211 void SetMultiplicityWeight(const char *multiplicityWeight) {*this->fMultiplicityWeight = multiplicityWeight;};
212
2aa4ebcd 213 // 3.) integrated flow:
e2168f8f 214 // flags:
215 void SetIntFlowFlags(TProfile* const intFlowFlags) {this->fIntFlowFlags = intFlowFlags;};
216 TProfile* GetIntFlowFlags() const {return this->fIntFlowFlags;};
217 void SetApplyCorrectionForNUA(Bool_t const applyCorrectionForNUA) {this->fApplyCorrectionForNUA = applyCorrectionForNUA;};
218 Bool_t GetApplyCorrectionForNUA() const {return this->fApplyCorrectionForNUA;};
2aa4ebcd 219 // integrated flow profiles:
220 void SetAvMultiplicity(TProfile* const avMultiplicity) {this->fAvMultiplicity = avMultiplicity;};
221 TProfile* GetAvMultiplicity() const {return this->fAvMultiplicity;};
e2168f8f 222 void SetIntFlowCorrelationsPro(TProfile* const intFlowCorrelationsPro) {this->fIntFlowCorrelationsPro = intFlowCorrelationsPro;};
223 TProfile* GetIntFlowCorrelationsPro() const {return this->fIntFlowCorrelationsPro;};
224 void SetIntFlowCorrelationsAllPro(TProfile* const intFlowCorrelationsAllPro) {this->fIntFlowCorrelationsAllPro = intFlowCorrelationsAllPro;};
225 TProfile* GetIntFlowCorrelationsAllPro() const {return this->fIntFlowCorrelationsAllPro;};
91d019b8 226 void SetIntFlowExtraCorrelationsPro(TProfile* const intFlowExtraCorrelationsPro) {this->fIntFlowExtraCorrelationsPro = intFlowExtraCorrelationsPro;};
227 TProfile* GetIntFlowExtraCorrelationsPro() const {return this->fIntFlowExtraCorrelationsPro;};
e2168f8f 228 void SetIntFlowProductOfCorrelationsPro(TProfile* const intFlowProductOfCorrelationsPro) {this->fIntFlowProductOfCorrelationsPro = intFlowProductOfCorrelationsPro;};
0328db2d 229 TProfile* GetIntFlowProductOfCorrelationsPro() const {return this->fIntFlowProductOfCorrelationsPro;};
230 void SetIntFlowProductOfCorrectionTermsForNUAPro(TProfile* const ifpoctfNUA) {this->fIntFlowProductOfCorrectionTermsForNUAPro = ifpoctfNUA;};
231 TProfile* GetIntFlowProductOfCorrectionTermsForNUAPro() const {return this->fIntFlowProductOfCorrectionTermsForNUAPro;};
4fbdb40a 232 void SetIntFlowCorrectionTermsForNUAPro(TProfile* const ifctfnp, Int_t const sc) {this->fIntFlowCorrectionTermsForNUAPro[sc] = ifctfnp;};
e2168f8f 233 TProfile* GetIntFlowCorrectionTermsForNUAPro(Int_t sc) const {return this->fIntFlowCorrectionTermsForNUAPro[sc];};
234 // integrated flow histograms holding all results:
235 void SetIntFlowCorrelationsHist(TH1D* const intFlowCorrelationsHist) {this->fIntFlowCorrelationsHist = intFlowCorrelationsHist;};
236 TH1D* GetIntFlowCorrelationsHist() const {return this->fIntFlowCorrelationsHist;};
237 void SetIntFlowCorrelationsAllHist(TH1D* const intFlowCorrelationsAllHist) {this->fIntFlowCorrelationsAllHist = intFlowCorrelationsAllHist;};
238 TH1D* GetIntFlowCorrelationsAllHist() const {return this->fIntFlowCorrelationsAllHist;};
239 // to be improved (removed:)
240 //void SetIntFlowProductOfCorrelationsHist(TH1D* const intFlowProductOfCorrelationsHist) {this->fIntFlowProductOfCorrelationsHist = intFlowProductOfCorrelationsHist;};
241 //TH1D* GetIntFlowProductOfCorrelationsHist() const {return this->fIntFlowProductOfCorrelationsHist;};
4fbdb40a 242 void SetIntFlowCorrectionTermsForNUAHist(TH1D* const ifctfnh, Int_t const sc) {this->fIntFlowCorrectionTermsForNUAHist[sc] = ifctfnh;};
e2168f8f 243 TH1D* GetIntFlowCorrectionTermsForNUAHist(Int_t sc) const {return this->fIntFlowCorrectionTermsForNUAHist[sc];};
244 void SetIntFlowCovariances(TH1D* const intFlowCovariances) {this->fIntFlowCovariances = intFlowCovariances;};
245 TH1D* GetIntFlowCovariances() const {return this->fIntFlowCovariances;};
4fbdb40a 246 void SetIntFlowSumOfEventWeights(TH1D* const intFlowSumOfEventWeights, Int_t const power) {this->fIntFlowSumOfEventWeights[power] = intFlowSumOfEventWeights;};
e2168f8f 247 TH1D* GetIntFlowSumOfEventWeights(Int_t power) const {return this->fIntFlowSumOfEventWeights[power];};
248 void SetIntFlowSumOfProductOfEventWeights(TH1D* const intFlowSumOfProductOfEventWeights) {this->fIntFlowSumOfProductOfEventWeights = intFlowSumOfProductOfEventWeights;};
249 TH1D* GetIntFlowSumOfProductOfEventWeights() const {return this->fIntFlowSumOfProductOfEventWeights;};
0328db2d 250 void SetIntFlowCovariancesNUA(TH1D* const intFlowCovariancesNUA) {this->fIntFlowCovariancesNUA = intFlowCovariancesNUA;};
251 TH1D* GetIntFlowCovariancesNUA() const {return this->fIntFlowCovariancesNUA;};
252 void SetIntFlowSumOfEventWeightsNUA(TH1D* const ifsoewNUA, Int_t const sc, Int_t const power) {this->fIntFlowSumOfEventWeightsNUA[sc][power] = ifsoewNUA;};
253 TH1D* GetIntFlowSumOfEventWeightsNUA(Int_t sc, Int_t power) const {return this->fIntFlowSumOfEventWeightsNUA[sc][power];};
254 void SetIntFlowSumOfProductOfEventWeightsNUA(TH1D* const ifsopoewNUA) {this->fIntFlowSumOfProductOfEventWeightsNUA = ifsopoewNUA;};
255 TH1D* GetIntFlowSumOfProductOfEventWeightsNUA() const {return this->fIntFlowSumOfProductOfEventWeightsNUA;};
e2168f8f 256 void SetIntFlowQcumulants(TH1D* const intFlowQcumulants) {this->fIntFlowQcumulants = intFlowQcumulants;};
257 TH1D* GetIntFlowQcumulants() const {return this->fIntFlowQcumulants;};
258 void SetIntFlow(TH1D* const intFlow) {this->fIntFlow = intFlow;};
259 TH1D* GetIntFlow() const {return this->fIntFlow;};
2aa4ebcd 260
261 // 4.) differential flow:
63911185 262 // flags:
e2168f8f 263 void SetDiffFlowFlags(TProfile* const diffFlowFlags) {this->fDiffFlowFlags = diffFlowFlags;};
264 TProfile* GetDiffFlowFlags() const {return this->fDiffFlowFlags;};
63911185 265 void SetCalculate2DFlow(Bool_t const calculate2DFlow) {this->fCalculate2DFlow = calculate2DFlow;};
266 Bool_t GetCalculate2DFlow() const {return this->fCalculate2DFlow;};
2aa4ebcd 267 // profiles:
63911185 268 // 1D:
4fbdb40a 269 void SetDiffFlowCorrelationsPro(TProfile* const diffFlowCorrelationsPro, Int_t const i, Int_t const j, Int_t const k) {this->fDiffFlowCorrelationsPro[i][j][k] = diffFlowCorrelationsPro;};
e2168f8f 270 TProfile* GetDiffFlowCorrelationsPro(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowCorrelationsPro[i][j][k];};
4fbdb40a 271 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 272 TProfile* GetDiffFlowProductOfCorrelationsPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowProductOfCorrelationsPro[i][j][k][l];};
4fbdb40a 273 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 274 TProfile* GetDiffFlowCorrectionTermsForNUAPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowCorrectionTermsForNUAPro[i][j][k][l];};
63911185 275 // 2D:
4fbdb40a 276 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 277 TProfile2D* GetCorrelationsPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fCorrelationsPro[i][j][k][l];};
4fbdb40a 278 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 279 TProfile2D* GetProductsOfCorrelationsPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fProductsOfCorrelationsPro[i][j][k][l];};
4fbdb40a 280 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 281 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 282 // histograms:
4fbdb40a 283 void SetDiffFlowCorrelationsHist(TH1D* const diffFlowCorrelationsHist, Int_t const i, Int_t const j, Int_t const k) {this->fDiffFlowCorrelationsHist[i][j][k] = diffFlowCorrelationsHist;};
e2168f8f 284 TH1D* GetDiffFlowCorrelationsHist(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowCorrelationsHist[i][j][k];};
4fbdb40a 285 void SetDiffFlowCovariances(TH1D* const diffFlowCovariances, Int_t const i, Int_t const j, Int_t const k) {this->fDiffFlowCovariances[i][j][k] = diffFlowCovariances;};
e2168f8f 286 TH1D* GetDiffFlowCovariances(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowCovariances[i][j][k];};
4fbdb40a 287 void SetDiffFlowCumulants(TH1D* const diffFlowCumulants, Int_t const i, Int_t const j, Int_t const k) {this->fDiffFlowCumulants[i][j][k] = diffFlowCumulants;};
e2168f8f 288 TH1D* GetDiffFlowCumulants(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowCumulants[i][j][k];};
4fbdb40a 289 void SetDiffFlow(TH1D* const diffFlow, Int_t const i, Int_t const j, Int_t const k) {this->fDiffFlow[i][j][k] = diffFlow;};
e2168f8f 290 TH1D* GetDiffFlow(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlow[i][j][k];};
4fbdb40a 291 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 292 TH1D* GetDiffFlowSumOfEventWeights(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowSumOfEventWeights[i][j][k][l];};
4fbdb40a 293 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 294 TH1D* GetDiffFlowSumOfProductOfEventWeights(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowSumOfProductOfEventWeights[i][j][k][l];};
4fbdb40a 295 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 296 TH1D* GetDiffFlowCorrectionTermsForNUAHist(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowCorrectionTermsForNUAHist[i][j][k][l];};
9c1a9547 297
57340a27 298 // 5.) distributions of correlations:
299 // flags:
300 void SetStoreDistributions(Bool_t const storeDistributions) {this->fStoreDistributions = storeDistributions;};
301 Bool_t GetStoreDistributions() const {return this->fStoreDistributions;};
302 // profile:
303 void SetDistributionsFlags(TProfile* const distributionsFlags) {this->fDistributionsFlags = distributionsFlags;};
304 TProfile* GetDistributionsFlags() const {return this->fDistributionsFlags;};
305 // histograms:
306 void SetDistributions(TH1D* const distributions, Int_t const i) {this->fDistributions[i] = distributions;};
307 TH1D* GetDistributions(Int_t i) const {return this->fDistributions[i];};
308 // min and max values of correlations (ci is correlations index [0=<2>,1=<4>,2=<6>,3=<8>]):
309 void SetMinValueOfCorrelation(Int_t const ci, Double_t const minValue) {this->fMinValueOfCorrelation[ci] = minValue;};
310 Double_t GetMinValueOfCorrelation(Int_t ci) const {return this->fMinValueOfCorrelation[ci];};
311 void SetMaxValueOfCorrelation(Int_t const ci, Double_t const maxValue) {this->fMaxValueOfCorrelation[ci] = maxValue;};
312 Double_t GetMaxValueOfCorrelation(Int_t ci) const {return this->fMaxValueOfCorrelation[ci];};
313
2aa4ebcd 314 // x.) debugging and cross-checking:
4fbdb40a 315 void SetNestedLoopsList(TList* const nllist) {this->fNestedLoopsList = nllist;};
2aa4ebcd 316 TList* GetNestedLoopsList() const {return this->fNestedLoopsList;};
91d019b8 317 void SetEvaluateIntFlowNestedLoops(Bool_t const eifnl) {this->fEvaluateIntFlowNestedLoops = eifnl;};
318 Bool_t GetEvaluateIntFlowNestedLoops() const {return this->fEvaluateIntFlowNestedLoops;};
319 void SetEvaluateDiffFlowNestedLoops(Bool_t const edfnl) {this->fEvaluateDiffFlowNestedLoops = edfnl;};
320 Bool_t GetEvaluateDiffFlowNestedLoops() const {return this->fEvaluateDiffFlowNestedLoops;};
321 void SetMaxAllowedMultiplicity(Int_t const maxAllowedMultiplicity) {this->fMaxAllowedMultiplicity = maxAllowedMultiplicity;};
322 Int_t GetMaxAllowedMultiplicity() const {return this->fMaxAllowedMultiplicity;};
2aa4ebcd 323 void SetEvaluateNestedLoops(TProfile* const enl) {this->fEvaluateNestedLoops = enl;};
91d019b8 324 TProfile* GetEvaluateNestedLoops() const {return this->fEvaluateNestedLoops;};
325 void SetIntFlowDirectCorrelations(TProfile* const ifdc) {this->fIntFlowDirectCorrelations = ifdc;};
326 TProfile* GetIntFlowDirectCorrelations() const {return this->fIntFlowDirectCorrelations;};
327 void SetIntFlowExtraDirectCorrelations(TProfile* const ifedc) {this->fIntFlowExtraDirectCorrelations = ifedc;};
328 TProfile* GetIntFlowExtraDirectCorrelations() const {return this->fIntFlowExtraDirectCorrelations;};
4fbdb40a 329 void SetIntFlowDirectCorrectionTermsForNUA(TProfile* const ifdctfn, Int_t const sc) {this->fIntFlowDirectCorrectionTermsForNUA[sc] = ifdctfn;};
91d019b8 330 TProfile* GetIntFlowDirectCorrectionTermsForNUA(Int_t sc) const {return this->fIntFlowDirectCorrectionTermsForNUA[sc];};
331 void SetCrossCheckInPtBinNo(Int_t const crossCheckInPtBinNo) {this->fCrossCheckInPtBinNo = crossCheckInPtBinNo;};
332 Int_t GetCrossCheckInPtBinNo() const {return this->fCrossCheckInPtBinNo;};
333 void SetCrossCheckInEtaBinNo(Int_t const crossCheckInEtaBinNo) {this->fCrossCheckInEtaBinNo = crossCheckInEtaBinNo;};
334 Int_t GetCrossCheckInEtaBinNo() const {return this->fCrossCheckInEtaBinNo;};
3b552efe 335 void SetNoOfParticlesInBin(TH1D* const noOfParticlesInBin) {this->fNoOfParticlesInBin = noOfParticlesInBin;};
336 TH1D* GetNoOfParticlesInBin() const {return this->fNoOfParticlesInBin;};
4fbdb40a 337 void SetDiffFlowDirectCorrelations(TProfile* const diffFlowDirectCorrelations,Int_t const i,Int_t const j,Int_t const k){this->fDiffFlowDirectCorrelations[i][j][k]=diffFlowDirectCorrelations;};
91d019b8 338 TProfile* GetDiffFlowDirectCorrelations(Int_t i, Int_t j, Int_t k) const {return this->fDiffFlowDirectCorrelations[i][j][k];};
4fbdb40a 339 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 340 TProfile* GetDiffFlowDirectCorrectionTermsForNUA(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fDiffFlowDirectCorrectionTermsForNUA[i][j][k][l];};
341
2aa4ebcd 342 private:
2bdc5281 343
2aa4ebcd 344 AliFlowAnalysisWithQCumulants(const AliFlowAnalysisWithQCumulants& afawQc);
345 AliFlowAnalysisWithQCumulants& operator=(const AliFlowAnalysisWithQCumulants& afawQc);
346
347 // 0.) base:
348 TList* fHistList; // base list to hold all output object
349
350 // 1.) common:
351 AliFlowCommonHist *fCommonHists; // common control histograms (taking into account ALL events)
352 AliFlowCommonHist *fCommonHists2nd; // common control histograms (taking into account only the events with 2 and more particles)
353 AliFlowCommonHist *fCommonHists4th; // common control histograms (taking into account only the events with 4 and more particles)
354 AliFlowCommonHist *fCommonHists6th; // common control histograms (taking into account only the events with 6 and more particles)
355 AliFlowCommonHist *fCommonHists8th; // common control histograms (taking into account only the events with 8 and more particles)
356 AliFlowCommonHistResults *fCommonHistsResults2nd; // final results for 2nd order int. and diff. flow for events with 2 and more particles
357 AliFlowCommonHistResults *fCommonHistsResults4th; // final results for 4th order int. and diff. flow for events with 4 and more particles
358 AliFlowCommonHistResults *fCommonHistsResults6th; // final results for 6th order int. and diff. flow for events with 6 and more particles
359 AliFlowCommonHistResults *fCommonHistsResults8th; // final results for 8th order int. and diff. flow for events with 8 and more particles
360 Int_t fnBinsPhi; // number of phi bins
361 Double_t fPhiMin; // minimum phi
362 Double_t fPhiMax; // maximum phi
363 Double_t fPhiBinWidth; // bin width for phi histograms
364 Int_t fnBinsPt; // number of pt bins
365 Double_t fPtMin; // minimum pt
366 Double_t fPtMax; // maximum pt
367 Double_t fPtBinWidth; // bin width for pt histograms
368 Int_t fnBinsEta; // number of eta bins
369 Double_t fEtaMin; // minimum eta
370 Double_t fEtaMax; // maximum eta
371 Double_t fEtaBinWidth; // bin width for eta histograms
372 Int_t fHarmonic; // harmonic
b343e7e8 373 TString *fAnalysisLabel; // analysis label (all histograms and output file will have this label)
3b552efe 374 Bool_t fPrintFinalResults[3]; // print on the screen the final results (0=NONAME, 1=RP, 2=POI)
2aa4ebcd 375
a5b7efd0 376 // 2a.) particle weights:
2aa4ebcd 377 TList *fWeightsList; // list to hold all histograms with particle weights: fUseParticleWeights, fPhiWeights, fPtWeights and fEtaWeights
378 Bool_t fUsePhiWeights; // use phi weights
379 Bool_t fUsePtWeights; // use pt weights
380 Bool_t fUseEtaWeights; // use eta weights
381 TProfile *fUseParticleWeights; // profile with three bins to hold values of fUsePhiWeights, fUsePtWeights and fUseEtaWeights
382 TH1F *fPhiWeights; // histogram holding phi weights
383 TH1D *fPtWeights; // histogram holding phi weights
384 TH1D *fEtaWeights; // histogram holding phi weights
385
a5b7efd0 386 // 2b.) event weights:
387 TString *fMultiplicityWeight; // event-by-event weights for multiparticle correlations
388
2aa4ebcd 389 // 3.) integrated flow
e2168f8f 390 // 3a.) lists:
391 TList *fIntFlowList; // list to hold all histograms and profiles relevant for integrated flow
2aa4ebcd 392 TList *fIntFlowProfiles; // list to hold all profiles relevant for integrated flow
393 TList *fIntFlowResults; // list to hold all histograms with final results relevant for integrated flow
e2168f8f 394 // 3b.) flags:
395 TProfile *fIntFlowFlags; // profile to hold all flags for integrated flow
3b552efe 396 Bool_t fApplyCorrectionForNUA; // apply correction for non-uniform acceptance
e2168f8f 397 // 3c.) event-by-event quantities:
2aa4ebcd 398 TMatrixD *fReQ; // fReQ[m][k] = sum_{i=1}^{M} w_{i}^{k} cos(m*phi_{i})
399 TMatrixD *fImQ; // fImQ[m][k] = sum_{i=1}^{M} w_{i}^{k} sin(m*phi_{i})
57340a27 400 TMatrixD *fSMpk; // fSM[p][k] = (sum_{i=1}^{M} w_{i}^{k})^{p+1}
e2168f8f 401 TH1D *fIntFlowCorrelationsEBE; // 1st bin: <2>, 2nd bin: <4>, 3rd bin: <6>, 4th bin: <8>
b1edde6c 402 TH1D *fIntFlowEventWeightsForCorrelationsEBE; // 1st bin: eW_<2>, 2nd bin: eW_<4>, 3rd bin: eW_<6>, 4th bin: eW_<8>
e2168f8f 403 TH1D *fIntFlowCorrelationsAllEBE; // to be improved (add comment)
404 TH1D *fIntFlowCorrectionTermsForNUAEBE[2]; // [0=sin terms,1=cos terms], NUA = non-uniform acceptance
0328db2d 405 TH1D *fIntFlowEventWeightForCorrectionTermsForNUAEBE[2]; // [0=sin terms,1=cos terms], NUA = non-uniform acceptance
e2168f8f 406 // 3d.) profiles:
2aa4ebcd 407 TProfile *fAvMultiplicity; // profile to hold average multiplicities and number of events for events with nRP>=0, nRP>=1, ... , and nRP>=8
e2168f8f 408 TProfile *fIntFlowCorrelationsPro; // average correlations <<2>>, <<4>>, <<6>> and <<8>> (with wrong errors!)
91d019b8 409 TProfile *fIntFlowCorrelationsAllPro; // average all correlations for integrated flow (with wrong errors!)
410 TProfile *fIntFlowExtraCorrelationsPro; // when particle weights are used some extra correlations appear
0328db2d 411 TProfile *fIntFlowProductOfCorrelationsPro; // average product of correlations <2>, <4>, <6> and <8>
412 TProfile *fIntFlowProductOfCorrectionTermsForNUAPro; // average product of correction terms for NUA
e2168f8f 413 TProfile *fIntFlowCorrectionTermsForNUAPro[2]; // average correction terms for non-uniform acceptance (with wrong errors!) [0=sin terms,1=cos terms]
414 // 3e.) histograms with final results:
415 TH1D *fIntFlowCorrelationsHist; // final results for average correlations <<2>>, <<4>>, <<6>> and <<8>> (with correct errors!)
416 TH1D *fIntFlowCorrelationsAllHist; // final results for all average correlations (with correct errors!)
417 TH1D *fIntFlowCorrectionTermsForNUAHist[2];// final results for correction terms for non-uniform acceptance (with correct errors!) [0=sin terms,1=cos terms]
418 TH1D *fIntFlowCovariances; // final result for covariances of correlations (multiplied with weight dependent prefactor)
419 TH1D *fIntFlowSumOfEventWeights[2]; // sum of linear and quadratic event weights for <2>, <4>, <6> and <8>: [0=linear 1,1=quadratic]
420 TH1D *fIntFlowSumOfProductOfEventWeights; // sum of products of event weights for correlations <2>, <4>, <6> and <8>
0328db2d 421 TH1D *fIntFlowCovariancesNUA; // final result for covariances of all terms needed for NUA (multiplied with weight dependent prefactor)
422 TH1D *fIntFlowSumOfEventWeightsNUA[2][2]; // sum of linear and quadratic event weights for NUA terms: [0=sin,1=cos][0=linear 1,1=quadratic]
423 TH1D *fIntFlowSumOfProductOfEventWeightsNUA; // sum of products of event weights for NUA terms
e2168f8f 424 TH1D *fIntFlowQcumulants; // final results for integrated Q-cumulants QC{2}, QC{4}, QC{6} and QC{8}
425 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}
426
2aa4ebcd 427 // 4.) differential flow
e2168f8f 428 // 4a.) lists:
429 TList *fDiffFlowList; // list to hold list with all histograms (fDiffFlowResults) and list with profiles (fDiffFlowProfiles) relevant for differential flow
430 TList *fDiffFlowProfiles; // list to hold all profiles relevant for differential flow
431 TList *fDiffFlowResults; // list to hold all histograms with final results relevant for differential flow
432 // 4aa.) nested list in list fDiffFlowProfiles:
433 TList *fDiffFlowCorrelationsProList[2][2]; // list to hold profiles with all correlations for differential flow [0=RP,1=POI][0=pt,1=eta]
434 TList *fDiffFlowProductOfCorrelationsProList[2][2]; // list to hold profiles with products of all correlations for differential flow [0=RP,1=POI][0=pt,1=eta]
435 TList *fDiffFlowCorrectionsProList[2][2]; // list to hold profiles with correction term for NUA for differential flow [0=RP,1=POI][0=pt,1=eta]
436 // 4ab.) nested list in list fDiffFlowResults:
437 TList *fDiffFlowCorrelationsHistList[2][2]; // list to hold histograms with all correlations for differential flow [0=RP,1=POI][0=pt,1=eta]
438 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]
439 TList *fDiffFlowSumOfProductOfEventWeightsHistList[2][2]; // list to hold histograms with sum of products of event weights [0=RP,1=POI][0=pt,1=eta]
1614cb51 440 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 441 TList *fDiffFlowCovariancesHistList[2][2]; // list to hold histograms with all covariances for differential flow [0=RP,1=POI][0=pt,1=eta]
442 TList *fDiffFlowCumulantsHistList[2][2]; // list to hold histograms with all cumulants for differential flow [0=RP,1=POI][0=pt,1=eta]
443 TList *fDiffFlowHistList[2][2]; // list to hold histograms with final results for differential flow [0=RP,1=POI][0=pt,1=eta]
444 // 4b.) flags:
445 TProfile *fDiffFlowFlags; // profile to hold all flags for differential flow
63911185 446 Bool_t fCalculate2DFlow; // calculate differential flow in (pt,eta) (Remark: this is very expensive in terms of CPU time)
e2168f8f 447 // 4c.) event-by-event quantities:
63911185 448 // 1D:
e2168f8f 449 TProfile *fReRPQ1dEBE[3][2][4][9]; // real part [0=r,1=p,2=q][0=pt,1=eta][m][k]
450 TProfile *fImRPQ1dEBE[3][2][4][9]; // imaginary part [0=r,1=p,2=q][0=pt,1=eta][m][k]
451 TProfile *fs1dEBE[3][2][9]; // [0=r,1=p,2=q][0=pt,1=eta][k] // to be improved
452 TH1D *fDiffFlowCorrelationsEBE[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][reduced correlation index]
b1edde6c 453 TH1D *fDiffFlowEventWeightsForCorrelationsEBE[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][event weights for reduced correlation index]
1614cb51 454 TH1D *fDiffFlowCorrectionTermsForNUAEBE[2][2][2][10]; // [0=RP,1=POI][0=pt,1=eta][0=sin terms,1=cos terms][correction term index]
63911185 455 // 2D:
e2168f8f 456 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)
457 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)
458 TProfile2D *fs2dEBE[3][9]; // [t][k] // to be improved
459 // 4d.) profiles:
63911185 460 // 1D:
e2168f8f 461 TProfile *fDiffFlowCorrelationsPro[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][correlation index]
462 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
463 // [0=<2>,1=<2'>,2=<4>,3=<4'>,4=<6>,5=<6'>,6=<8>,7=<8'>]
1614cb51 464 TProfile *fDiffFlowCorrectionTermsForNUAPro[2][2][2][10]; // [0=RP,1=POI][0=pt,1=eta][0=sin terms,1=cos terms][correction term index]
e2168f8f 465
466 // 4e.) histograms holding final results:
467 // 1D:
468 TH1D *fDiffFlowCorrelationsHist[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][correlation index]
469 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]
470 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'}]
471 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}]
472 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'>]
473 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
474 // [0=<2>,1=<2'>,2=<4>,3=<4'>,4=<6>,5=<6'>,6=<8>,7=<8'>]
1614cb51 475 TH1D *fDiffFlowCorrectionTermsForNUAHist[2][2][2][10]; // [0=RP,1=POI][0=pt,1=eta][0=sin terms,1=cos terms][correction term index]
e2168f8f 476
63911185 477 // 2D:
2aa4ebcd 478 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]
479 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]
480 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 481
2aa4ebcd 482 // 5.) distributions:
57340a27 483 TList *fDistributionsList; // list to hold all distributions of correlations
484 TProfile *fDistributionsFlags; // profile to hold all flags for distributions of correlations
485 Bool_t fStoreDistributions; // store or not distributions of correlations
486 TH1D *fDistributions[4]; // [0=distribution of <2>,1=distribution of <4>,2=distribution of <6>,3=distribution of <8>]
487 Double_t fMinValueOfCorrelation[4]; // min values of <2>, <4>, <6> and <8>
488 Double_t fMaxValueOfCorrelation[4]; // max values of <2>, <4>, <6> and <8>
2aa4ebcd 489
490 // x.) debugging and cross-checking:
2aa4ebcd 491 TList *fNestedLoopsList; // list to hold all profiles filled with nested loops
91d019b8 492 Bool_t fEvaluateIntFlowNestedLoops; // evaluate nested loops relevant for integrated flow
493 Bool_t fEvaluateDiffFlowNestedLoops; // evaluate nested loops relevant for differential flow
494 Int_t fMaxAllowedMultiplicity; // nested loops will be evaluated only for events with multiplicity <= fMaxAllowedMultiplicity
495 TProfile *fEvaluateNestedLoops; // profile with four bins: fEvaluateIntFlowNestedLoops, fEvaluateDiffFlowNestedLoops, fCrossCheckInPtBinNo and fCrossCheckInEtaBinNo
496 // integrated flow:
497 TProfile *fIntFlowDirectCorrelations; // multiparticle correlations relevant for int. flow calculated with nested loops
498 TProfile *fIntFlowExtraDirectCorrelations; // when particle weights are used some extra correlations appear
499 TProfile *fIntFlowDirectCorrectionTermsForNUA[2]; // average correction terms for non-uniform acceptance evaluated with nested loops [0=sin terms,1=cos terms]
500 // differential flow:
501 Int_t fCrossCheckInPtBinNo; // cross-check results for reduced correlations and corrections in this pt bin
502 Int_t fCrossCheckInEtaBinNo; // cross-check results for reduced correlations and corrections in this eta bin
3b552efe 503 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 504 TProfile *fDiffFlowDirectCorrelations[2][2][4]; // [0=RP,1=POI][0=pt,1=eta][correlation index]
505 TProfile *fDiffFlowDirectCorrectionTermsForNUA[2][2][2][10]; // [0=RP,1=POI][0=pt,1=eta][0=sin terms,1=cos terms][correction term index]
2aa4ebcd 506
bc92c0cb 507 ClassDef(AliFlowAnalysisWithQCumulants, 0);
508};
509
510//================================================================================================================
511
512#endif
513
514
515
516
517