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