]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithQCumulants.h
updates for DA: timestamp reading fix + allow to read parameters/cuts from file
[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();
57 // 2.) method Make() and methods called within Make():
58 virtual void Make(AliFlowEventSimple *anEvent);
59 // 2a.) integrated flow:
60 virtual void FillAverageMultiplicities(Int_t nRP);
61 virtual void CalculateCorrelationsForIntegratedFlow();
62 virtual void CalculateCorrectionsForNonUniformAcceptanceForIntFlowCosTerms();
63 virtual void CalculateCorrectionsForNonUniformAcceptanceForIntFlowSinTerms();
64 virtual void CalculateQProductsForIntFlow();
c2a42ea2 65 virtual void CalculateSumAndProductOfEventWeights();
2aa4ebcd 66 virtual void CalculateWeightedCorrelationsForIntegratedFlow();
67 virtual void CalculateWeightedQProductsForIntFlow();
68 virtual void EvaluateNestedLoopsForIntegratedFlow(AliFlowEventSimple* anEvent);
69 // 2b.) differential flow:
70 virtual void CalculateCorrelationsForDifferentialFlow(TString type);
71 virtual void CalculateCorrectionsForNonUniformAcceptanceForDifferentialFlowCosTerms(TString type);
72 virtual void CalculateCorrectionsForNonUniformAcceptanceForDifferentialFlowSinTerms(TString type);
73 virtual void CalculateWeightedCorrelationsForDifferentialFlow(TString type);
74 virtual void EvaluateNestedLoopsForDifferentialFlow(AliFlowEventSimple* anEvent);
75 // 3.) method Finish() and methods called within Finish():
bc92c0cb 76 virtual void Finish();
2aa4ebcd 77 // 3a.) integrated flow:
78 virtual void FinalizeCorrelationsForIntFlow(Bool_t useParticleWeights, TString eventWeights);
79 virtual void CalculateFinalCorrectionsForNonUniformAcceptanceForCumulantsForIntFlow(Bool_t useParticleWeights, TString eventWeights);
80 virtual void CalculateCovariancesForIntFlow(Bool_t useParticleWeights, TString eventWeights);
81 virtual void CalculateCumulantsForIntFlow(Bool_t useParticleWeights, TString eventWeights);
82 virtual void ApplyCorrectionForNonUniformAcceptanceToCumulantsForIntFlow(Bool_t useParticleWeights, TString eventWeights);
83 virtual void CalculateIntFlow(Bool_t useParticleWeights, TString eventWeights, Bool_t correctedForNUA);
84 virtual void FillCommonHistResultsIntFlow(Bool_t useParticleWeights, TString eventWeights, Bool_t correctedForNUA);
85 virtual void PrintQuantifyingCorrectionsForNonUniformAcceptance(Bool_t useParticleWeights, TString eventWeights);
86 virtual void PrintFinalResultsForIntegratedFlow(TString type);
87 virtual void CompareResultsFromNestedLoopsAndFromQVectorsForIntFlow(Bool_t useParticleWeights);
88 // 3b.) differential flow:
89 virtual void FinalizeCorrelationsForDiffFlow(TString type, Bool_t useParticleWeights, TString eventWeights);
90 virtual void CalculateFinalCorrectionsForNonUniformAcceptanceForDifferentialFlow(Bool_t useParticleWeights, TString type);
91 virtual void CalculateCumulantsForDiffFlow(TString type, Bool_t useParticleWeights, TString eventWeights);
92 virtual void CalculateDiffFlow(TString type, Bool_t useParticleWeights, TString eventWeights);
93 virtual void FillCommonHistResultsDiffFlow(TString type, Bool_t useParticleWeights, TString eventWeights, Bool_t correctedForNUA);
94 virtual void CalculateFinalResultsForRPandPOIIntegratedFlow(TString type, Bool_t useParticleWeights, TString eventWeights);
95 virtual void CompareResultsFromNestedLoopsAndFromQVectorsForDiffFlow(Bool_t useParticleWeights);
96 // 4.) other methods:
9c1a9547 97 TProfile* MakePtProjection(TProfile2D *profilePtEta) const;
98 TProfile* MakeEtaProjection(TProfile2D *profilePtEta) const;
2aa4ebcd 99 virtual void GetOutputHistograms(TList *outputListHistos);
4057ba99 100 virtual void WriteHistograms(TString outputFileName);
9c1a9547 101
2aa4ebcd 102 // **** SETTERS and GETTERS ****
03a02aca 103
2aa4ebcd 104 // 0.) base:
105 TList* GetHistList() const {return this->fHistList;}
8842fb2b 106
2aa4ebcd 107 // 1.) common:
108 void SetCommonHists(AliFlowCommonHist* const ch) {this->fCommonHists = ch;};
109 AliFlowCommonHist* GetCommonHists() const {return this->fCommonHists;};
7e58a232 110 void SetCommonHists2nd(AliFlowCommonHist* const ch2nd) {this->fCommonHists2nd = ch2nd;};
111 AliFlowCommonHist* GetCommonHists2nd() const {return this->fCommonHists2nd;};
7e58a232 112 void SetCommonHists4th(AliFlowCommonHist* const ch4th) {this->fCommonHists4th = ch4th;};
113 AliFlowCommonHist* GetCommonHists4th() const {return this->fCommonHists4th;};
7e58a232 114 void SetCommonHists6th(AliFlowCommonHist* const ch6th) {this->fCommonHists6th = ch6th;};
115 AliFlowCommonHist* GetCommonHists6th() const {return this->fCommonHists6th;};
7e58a232 116 void SetCommonHists8th(AliFlowCommonHist* const ch8th) {this->fCommonHists8th = ch8th;};
117 AliFlowCommonHist* GetCommonHists8th() const {return this->fCommonHists8th;};
52021ae2 118 void SetCommonHistsResults2nd(AliFlowCommonHistResults* const chr2nd) {this->fCommonHistsResults2nd = chr2nd;};
119 AliFlowCommonHistResults* GetCommonHistsResults2nd() const {return this->fCommonHistsResults2nd;};
52021ae2 120 void SetCommonHistsResults4th(AliFlowCommonHistResults* const chr4th) {this->fCommonHistsResults4th = chr4th;};
121 AliFlowCommonHistResults* GetCommonHistsResults4th() const {return this->fCommonHistsResults4th;};
52021ae2 122 void SetCommonHistsResults6th(AliFlowCommonHistResults* const chr6th) {this->fCommonHistsResults6th = chr6th;};
123 AliFlowCommonHistResults* GetCommonHistsResults6th() const {return this->fCommonHistsResults6th;};
52021ae2 124 void SetCommonHistsResults8th(AliFlowCommonHistResults* const chr8th) {this->fCommonHistsResults8th = chr8th;};
125 AliFlowCommonHistResults* GetCommonHistsResults8th() const {return this->fCommonHistsResults8th;};
2aa4ebcd 126 void SetHarmonic(Int_t const harmonic) {this->fHarmonic = harmonic;};
127 Int_t GetHarmonic() const {return this->fHarmonic;};
b343e7e8 128 void SetAnalysisLabel(const char *aLabel) {this->fAnalysisLabel->Append(*aLabel);};
129 TString *GetAnalysisLabel() const {return this->fAnalysisLabel;};
8842fb2b 130
2aa4ebcd 131 // 2.) weights:
97ab16dd 132 void SetWeightsList(TList* wlist) {this->fWeightsList = (TList*)wlist->Clone();}
2aa4ebcd 133 TList* GetWeightsList() const {return this->fWeightsList;}
e04e4ec5 134 void SetUsePhiWeights(Bool_t const uPhiW) {this->fUsePhiWeights = uPhiW;};
03a02aca 135 Bool_t GetUsePhiWeights() const {return this->fUsePhiWeights;};
e04e4ec5 136 void SetUsePtWeights(Bool_t const uPtW) {this->fUsePtWeights = uPtW;};
03a02aca 137 Bool_t GetUsePtWeights() const {return this->fUsePtWeights;};
e04e4ec5 138 void SetUseEtaWeights(Bool_t const uEtaW) {this->fUseEtaWeights = uEtaW;};
03a02aca 139 Bool_t GetUseEtaWeights() const {return this->fUseEtaWeights;};
2aa4ebcd 140 void SetUseParticleWeights(TProfile* const uPW) {this->fUseParticleWeights = uPW;};
141 TProfile* GetUseParticleWeights() const {return this->fUseParticleWeights;};
142 void SetPhiWeights(TH1F* const histPhiWeights) {this->fPhiWeights = histPhiWeights;};
143 TH1F* GetPhiWeights() const {return this->fPhiWeights;};
144 void SetPtWeights(TH1D* const histPtWeights) {this->fPtWeights = histPtWeights;};
145 TH1D* GetPtWeights() const {return this->fPtWeights;};
146 void SetEtaWeights(TH1D* const histEtaWeights) {this->fEtaWeights = histEtaWeights;};
147 TH1D* GetEtaWeights() const {return this->fEtaWeights;};
148
149 // 3.) integrated flow:
150 // integrated flow profiles:
151 void SetAvMultiplicity(TProfile* const avMultiplicity) {this->fAvMultiplicity = avMultiplicity;};
152 TProfile* GetAvMultiplicity() const {return this->fAvMultiplicity;};
153 void SetQCorrelations(TProfile* const qCorrel, Int_t pW, Int_t eW) {this->fQCorrelations[pW][eW] = qCorrel;};
154 TProfile* GetQCorrelations(Int_t pW, Int_t eW) const {return this->fQCorrelations[pW][eW];};
155 void SetQProducts(TProfile* const qProduct, Int_t pW, Int_t eW) {this->fQProducts[pW][eW] = qProduct;};
156 TProfile* GetQProducts(Int_t pW, Int_t eW) const {return this->fQProducts[pW][eW];};
157 void SetQCorrections(TProfile* const qCorrections, Int_t pW, Int_t eW, Int_t sc) {this->fQCorrections[pW][eW][sc] = qCorrections;};
158 TProfile* GetQCorrections(Int_t pW, Int_t eW, Int_t sc) const {return this->fQCorrections[pW][eW][sc];};
159 // integrated flow results:
160 void SetCorrelations(TH1D* const correl, Int_t pW, Int_t eW) {this->fCorrelations[pW][eW] = correl;};
161 TH1D* GetCorrelations(Int_t pW, Int_t eW) const {return this->fCorrelations[pW][eW];};
162 void SetCorrections(TH1D* const correct, Int_t pW, Int_t eW) {this->fCorrections[pW][eW] = correct;};
163 TH1D* GetCorrections(Int_t pW, Int_t eW) const {return this->fCorrections[pW][eW];};
164 void SetCovariances(TH1D* const cov, Int_t pW, Int_t eW) {this->fCovariances[pW][eW] = cov;};
165 TH1D* GetCovariances(Int_t pW, Int_t eW) const {return this->fCovariances[pW][eW];};
c2a42ea2 166 void SetSumOfEventWeights(TH1D* const soew, Int_t pW, Int_t eW, Int_t power) {this->fSumOfEventWeights[pW][eW][power] = soew;};
167 TH1D* GetSumOfEventWeights(Int_t pW, Int_t eW, Int_t power) const {return this->fSumOfEventWeights[pW][eW][power];};
168 void SetProductOfEventWeights(TH1D* const poew, Int_t pW, Int_t eW) {this->fProductOfEventWeights[pW][eW] = poew;};
169 TH1D* GetProductOfEventWeights(Int_t pW, Int_t eW) const {return this->fProductOfEventWeights[pW][eW];};
2aa4ebcd 170 void SetCumulants(TH1D* const cumulants, Int_t pW, Int_t eW, Int_t nua) {this->fCumulants[pW][eW][nua] = cumulants;};
171 TH1D* GetCumulants(Int_t pW, Int_t eW, Int_t nua) const {return this->fCumulants[pW][eW][nua];};
172 void SetIntFlow(TH1D* const intFlow, Int_t pW, Int_t eW, Int_t nua) {this->fIntFlow[pW][eW][nua] = intFlow;};
173 TH1D* GetIntFlow(Int_t pW, Int_t eW, Int_t nua) const {return this->fIntFlow[pW][eW][nua];};
174
175 // 4.) differential flow:
176 // profiles:
177 void SetCorrelationsPro(TProfile2D* const correlPro, Int_t i, Int_t j, Int_t k, Int_t l) {this->fCorrelationsPro[i][j][k][l] = correlPro;};
178 TProfile2D* GetCorrelationsPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fCorrelationsPro[i][j][k][l];};
179 void SetProductsOfCorrelationsPro(TProfile2D* const proOfcorrelPro, Int_t i, Int_t j, Int_t k, Int_t l) {this->fProductsOfCorrelationsPro[i][j][k][l] = proOfcorrelPro;};
180 TProfile2D* GetProductsOfCorrelationsPro(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fProductsOfCorrelationsPro[i][j][k][l];};
181 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;};
182 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];};
183 // results:
184 void SetFinalCorrelations2D(TH2D* const fCorrelations2D, Int_t i, Int_t j, Int_t k, Int_t l) {this->fFinalCorrelations2D[i][j][k][l] = fCorrelations2D;};
185 TH2D* GetFinalCorrelations2D(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fFinalCorrelations2D[i][j][k][l];};
186 void SetFinalCorrelations1D(TH1D* const fCorrelations1D, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalCorrelations1D[i][j][k][l][m] = fCorrelations1D;};
187 TH1D* GetFinalCorrelations1D(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalCorrelations1D[i][j][k][l][m];};
188 void SetFinalCorrections2D(TH2D* const fCorrections2D, Int_t i, Int_t j, Int_t k, Int_t l) {this->fFinalCorrections2D[i][j][k][l] = fCorrections2D;};
189 TH2D* GetFinalCorrections2D(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fFinalCorrections2D[i][j][k][l];};
190 void SetFinalCorrections1D(TH1D* const fCorrections1D, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalCorrections1D[i][j][k][l][m] = fCorrections1D;};
191 TH1D* GetFinalCorrections1D(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalCorrections1D[i][j][k][l][m];};
192 void SetFinalCovariances2D(TH2D* const fCovariances2D, Int_t i, Int_t j, Int_t k, Int_t l) {this->fFinalCovariances2D[i][j][k][l] = fCovariances2D;};
193 TH2D* GetFinalCovariances2D(Int_t i, Int_t j, Int_t k, Int_t l) const {return this->fFinalCovariances2D[i][j][k][l];};
194 void SetFinalCovariances1D(TH1D* const fCovariances1D, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalCovariances1D[i][j][k][l][m] = fCovariances1D;};
195 TH1D* GetFinalCovariances1D(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalCovariances1D[i][j][k][l][m];};
196 void SetFinalCumulants2D(TH2D* const fCumulants2D, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalCumulants2D[i][j][k][l][m] = fCumulants2D;};
197 TH2D* GetFinalCumulants2D(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalCumulants2D[i][j][k][l][m];};
198 void SetFinalCumulantsPt(TH1D* const fCumulantsPt, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalCumulantsPt[i][j][k][l][m] = fCumulantsPt;};
199 TH1D* GetFinalCumulantsPt(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalCumulantsPt[i][j][k][l][m];};
200 void SetFinalCumulantsEta(TH1D* const fCumulantsEta, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalCumulantsEta[i][j][k][l][m] = fCumulantsEta;};
201 TH1D* GetFinalCumulantsEta(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalCumulantsEta[i][j][k][l][m];};
202 void SetFinalFlow2D(TH2D* const fFlow2D, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalFlow2D[i][j][k][l][m] = fFlow2D;};
203 TH2D* GetFinalFlow2D(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalFlow2D[i][j][k][l][m];};
204 void SetFinalFlowPt(TH1D* const fFlowPt, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalFlowPt[i][j][k][l][m] = fFlowPt;};
205 TH1D* GetFinalFlowPt(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalFlowPt[i][j][k][l][m];};
206 void SetFinalFlowEta(TH1D* const fFlowEta, Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) {this->fFinalFlowEta[i][j][k][l][m] = fFlowEta;};
207 TH1D* GetFinalFlowEta(Int_t i, Int_t j, Int_t k, Int_t l, Int_t m) const {return this->fFinalFlowEta[i][j][k][l][m];};
208 void SetNonEmptyBins2D(TH2D* const fneb2D, Int_t i) {this->fNonEmptyBins2D[i] = fneb2D;};
209 TH2D* GetNonEmptyBins2D(Int_t i) const {return this->fNonEmptyBins2D[i];};
210 void SetNonEmptyBins1D(TH1D* const fneb1D, Int_t i, Int_t j) {this->fNonEmptyBins1D[i][j] = fneb1D;};
211 TH1D* GetNonEmptyBins1D(Int_t i, Int_t j) const {return this->fNonEmptyBins1D[i][j];};
9c1a9547 212
e085f1a9 213
2aa4ebcd 214 // x.) debugging and cross-checking:
215 void SetNestedLoopsList(TList* nllist) {this->fNestedLoopsList = nllist;};
216 TList* GetNestedLoopsList() const {return this->fNestedLoopsList;};
217 void SetEvaluateNestedLoopsForIntFlow(Bool_t const enlfif) {this->fEvaluateNestedLoopsForIntFlow = enlfif;};
218 Bool_t GetEvaluateNestedLoopsForIntFlow() const {return this->fEvaluateNestedLoopsForIntFlow;};
219 void SetEvaluateNestedLoopsForDiffFlow(Bool_t const enlfdf) {this->fEvaluateNestedLoopsForDiffFlow = enlfdf;};
220 Bool_t GetEvaluateNestedLoopsForDiffFlow() const {return this->fEvaluateNestedLoopsForDiffFlow;};
221 void SetEvaluateNestedLoops(TProfile* const enl) {this->fEvaluateNestedLoops = enl;};
222 TProfile* GetEvaluateNestedLoops() const {return this->fEvaluateNestedLoops;};
223 void SetDirectCorrelations(TProfile* const dc) {this->fDirectCorrelations = dc;};
224 TProfile* GetDirectCorrelations() const {return this->fDirectCorrelations;};
225 void SetDirectCorrectionsCos(TProfile* const dcc) {this->fDirectCorrectionsCos = dcc;};
226 TProfile* GetDirectCorrectionsCos() const {return this->fDirectCorrectionsCos;};
227 void SetDirectCorrectionsSin(TProfile* const dcs) {this->fDirectCorrectionsSin = dcs;};
228 TProfile* GetDirectCorrectionsSin() const {return this->fDirectCorrectionsSin;};
229 void SetDirectCorrelationsDiffFlow(TProfile* const dcdf) {this->fDirectCorrelationsDiffFlow = dcdf;};
230 TProfile* GetDirectCorrelationsDiffFlow() const {return this->fDirectCorrelationsDiffFlow;};
231 void SetDirectCorrectionsDiffFlowCos(TProfile* const dcdfc) {this->fDirectCorrectionsDiffFlowCos = dcdfc;};
232 TProfile* GetDirectCorrectionsDiffFlowCos() const {return this->fDirectCorrectionsDiffFlowCos;};
233 void SetDirectCorrectionsDiffFlowSin(TProfile* const dcdfs) {this->fDirectCorrectionsDiffFlowSin = dcdfs;};
234 TProfile* GetDirectCorrectionsDiffFlowSin() const {return this->fDirectCorrectionsDiffFlowSin;};
235 void SetDirectCorrelationsW(TProfile* const dcw) {this->fDirectCorrelationsW = dcw;};
236 TProfile* GetDirectCorrelationsW() const {return this->fDirectCorrelationsW;};
237 void SetDirectCorrectionsCosW(TProfile* const dccw) {this->fDirectCorrectionsCosW = dccw;};
238 TProfile* GetDirectCorrectionsCosW() const {return this->fDirectCorrectionsCosW;};
239 void SetDirectCorrectionsSinW(TProfile* const dcsw) {this->fDirectCorrectionsSinW = dcsw;};
240 TProfile* GetDirectCorrectionsSinW() const {return this->fDirectCorrectionsSinW;};
241 void SetDirectCorrelationsDiffFlowW(TProfile* const dcdfw) {this->fDirectCorrelationsDiffFlowW = dcdfw;};
242 TProfile* GetDirectCorrelationsDiffFlowW() const {return this->fDirectCorrelationsDiffFlowW;};
243 void SetDirectCorrectionsDiffFlowCosW(TProfile* const dcdfcw) {this->fDirectCorrectionsDiffFlowCosW = dcdfcw;};
244 TProfile* GetDirectCorrectionsDiffFlowCosW() const {return this->fDirectCorrectionsDiffFlowCosW;};
245 void SetDirectCorrectionsDiffFlowSinW(TProfile* const dcdfsw) {this->fDirectCorrectionsDiffFlowSinW = dcdfsw;};
246 TProfile* GetDirectCorrectionsDiffFlowSinW() const {return this->fDirectCorrectionsDiffFlowSinW;};
2bdc5281 247
2aa4ebcd 248 private:
2bdc5281 249
2aa4ebcd 250 AliFlowAnalysisWithQCumulants(const AliFlowAnalysisWithQCumulants& afawQc);
251 AliFlowAnalysisWithQCumulants& operator=(const AliFlowAnalysisWithQCumulants& afawQc);
252
253 // 0.) base:
254 TList* fHistList; // base list to hold all output object
255
256 // 1.) common:
257 AliFlowCommonHist *fCommonHists; // common control histograms (taking into account ALL events)
258 AliFlowCommonHist *fCommonHists2nd; // common control histograms (taking into account only the events with 2 and more particles)
259 AliFlowCommonHist *fCommonHists4th; // common control histograms (taking into account only the events with 4 and more particles)
260 AliFlowCommonHist *fCommonHists6th; // common control histograms (taking into account only the events with 6 and more particles)
261 AliFlowCommonHist *fCommonHists8th; // common control histograms (taking into account only the events with 8 and more particles)
262 AliFlowCommonHistResults *fCommonHistsResults2nd; // final results for 2nd order int. and diff. flow for events with 2 and more particles
263 AliFlowCommonHistResults *fCommonHistsResults4th; // final results for 4th order int. and diff. flow for events with 4 and more particles
264 AliFlowCommonHistResults *fCommonHistsResults6th; // final results for 6th order int. and diff. flow for events with 6 and more particles
265 AliFlowCommonHistResults *fCommonHistsResults8th; // final results for 8th order int. and diff. flow for events with 8 and more particles
266 Int_t fnBinsPhi; // number of phi bins
267 Double_t fPhiMin; // minimum phi
268 Double_t fPhiMax; // maximum phi
269 Double_t fPhiBinWidth; // bin width for phi histograms
270 Int_t fnBinsPt; // number of pt bins
271 Double_t fPtMin; // minimum pt
272 Double_t fPtMax; // maximum pt
273 Double_t fPtBinWidth; // bin width for pt histograms
274 Int_t fnBinsEta; // number of eta bins
275 Double_t fEtaMin; // minimum eta
276 Double_t fEtaMax; // maximum eta
277 Double_t fEtaBinWidth; // bin width for eta histograms
278 Int_t fHarmonic; // harmonic
b343e7e8 279 TString *fAnalysisLabel; // analysis label (all histograms and output file will have this label)
2aa4ebcd 280
281 // 2.) weights
282 TList *fWeightsList; // list to hold all histograms with particle weights: fUseParticleWeights, fPhiWeights, fPtWeights and fEtaWeights
283 Bool_t fUsePhiWeights; // use phi weights
284 Bool_t fUsePtWeights; // use pt weights
285 Bool_t fUseEtaWeights; // use eta weights
286 TProfile *fUseParticleWeights; // profile with three bins to hold values of fUsePhiWeights, fUsePtWeights and fUseEtaWeights
287 TH1F *fPhiWeights; // histogram holding phi weights
288 TH1D *fPtWeights; // histogram holding phi weights
289 TH1D *fEtaWeights; // histogram holding phi weights
290
291 // 3.) integrated flow
292 TList *fIntFlowList; // list to hold all histograms relevant for integrated flow
293 TList *fIntFlowProfiles; // list to hold all profiles relevant for integrated flow
294 TList *fIntFlowResults; // list to hold all histograms with final results relevant for integrated flow
295 // 3a.) event-by-event quantities:
296 TMatrixD *fReQ; // fReQ[m][k] = sum_{i=1}^{M} w_{i}^{k} cos(m*phi_{i})
297 TMatrixD *fImQ; // fImQ[m][k] = sum_{i=1}^{M} w_{i}^{k} sin(m*phi_{i})
9c1a9547 298 TMatrixD *fSMpk; // fSM[p][k] = (sum_{i=1}^{M} w_{i}^{k})^{p}
2aa4ebcd 299 TH1D *fQCorrelationsEBE[2]; // [0=weights not used,1=weights used]
300 TH1D *fQCorrectionsEBE[2][2]; // [0=weights not used,1=weights used][0=sin terms, 1=cos terms]
301 // 3b.) profiles:
302 TProfile *fAvMultiplicity; // profile to hold average multiplicities and number of events for events with nRP>=0, nRP>=1, ... , and nRP>=8
303 TProfile *fQCorrelations[2][2]; // [0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
304 TProfile *fQProducts[2][2]; // [0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
305 TProfile *fQCorrections[2][2][2]; // [0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights][0=sin terms, 1=cos terms]
306 // 3c.) results:
307 TH1D *fCorrelations[2][2]; // final results for average correlations: [0=pW not used,1=pW used][0=exact eW,1=non-exact eW]
308 TH1D *fCorrections[2][2]; // corrections for non-uniform acceptance to integrated Q-cumulants: [0=pW not used,1=pW used][0=exact eW,1=non-exact eW]
309 TH1D *fCovariances[2][2]; // covariances of multi-particle correlations: [0=pW not used,1=pW used][0=exact eW,1=non-exact eW]
c2a42ea2 310 TH1D *fSumOfEventWeights[2][2][2]; // [0=pW not used,1=pW used][0=exact eW,1=non-exact eW][0=power 1,1=power 2][0=eW for <2>, 1=eW for <4>, ...]
311 TH1D *fProductOfEventWeights[2][2]; // [0=pW not used,1=pW used][0=exact eW,1=non-exact eW][0=eWs for <2><4>, 1=eWs for <2><6>, ...]
2aa4ebcd 312 TH1D *fCumulants[2][2][2]; // integrated Q-cumulants: [0=pW not used,1=pW used][0=exact eW,1=non-exact eW][0=not corrected, 1=corrected]
313 TH1D *fIntFlow[2][2][2]; // int. flow estimates from Q-cumulants: [0=pW not used,1=pW used][0=exact eW,1=non-exact eW][0=not corrected, 1=corrected]
314
c2a42ea2 315
2aa4ebcd 316 // 4.) differential flow
317 TList *fDiffFlowList;
318 // nested lists to hold profiles:
319 TList *fDiffFlowProfiles; // list to hold all lists with profiles with correlations, correction terms for NUA and products of correlations
320 TList *fDFPType[2]; // [0=RP,1=POI]
321 TList *fDFPParticleWeights[2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used]
322 TList *fDFPEventWeights[2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
323 TList *fDiffFlowCorrelations[2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
324 TList *fDiffFlowProductsOfCorrelations[2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
325 TList *fDiffFlowCorrectionTerms[2][2][2][2]; // [0=RP,1=POI][0=pW not used,1=pW used][0=exact eWeights,1=non-exact eWeights][0=sin terms,1=cos terms]
326 // 4a.) event-by-event quantities:
327 TProfile2D *fReEBE[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)
328 TProfile2D *fImEBE[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)
329 TProfile2D *fs[3][9]; // [t][k] // to be improved
330 // 4b.) profiles:
331 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]
332 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]
333 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]
334 // nested lists to hold histograms with results:
335 TList *fDiffFlowResults; // list to hold all lists with histos with results for diff. flow, cumulants, correlations, covariances and corrections
336 TList *fDFRType[2]; // [0=RP,1=POI]
337 TList *fDFRParticleWeights[2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used]
338 TList *fDFREventWeights[2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
339 TList *fDFRCorrections[2][2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights][0=not corr,1=corr]
340 TList *fDiffFlowFinalCorrelations[2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
341 TList *fDiffFlowFinalCorrections[2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
342 TList *fDiffFlowFinalCovariances[2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eWeights,1=non-exact eWeights]
343 TList *fDiffFlowFinalCumulants[2][2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eW,1=non-exact eW][0=not corr,1=corr]
344 TList *fDiffFlowFinalFlow[2][2][2][2]; // [0=RP,1=POI][0=pWeights not used,1=pWeights used][0=exact eW,1=non-exact eW][0=not corr,1=corr]
345 TH2D *fFinalCorrelations2D[2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=exact eW,1=non-exact eW][index of correlations]
346 TH1D *fFinalCorrelations1D[2][2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=exact eW,1=non-exact eW][0=pt,1=eta][index of correlations]
347 TH2D *fFinalCorrections2D[2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=exact eW,1=non-exact eW][corr.to cumulant of order]
348 TH1D *fFinalCorrections1D[2][2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=exact eW,1=non-exact eW][0=pt,1=eta][corr. to cumulant of order]
349 TH2D *fFinalCovariances2D[2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=exact eW,1=non-exact eW][index of covariances]
350 TH1D *fFinalCovariances1D[2][2][2][2][4]; // [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]
351 TH2D *fFinalCumulants2D[2][2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=e eW,1=ne eW][0=not corr,1=corr][cumulant's order]
352 TH1D *fFinalCumulantsPt[2][2][2][2][4]; // [0=RP,1=POI][0=pW nu,1=pW u][0=e eW,1=ne eW][0=nc,1=corr][cumulant's order]
353 TH1D *fFinalCumulantsEta[2][2][2][2][4]; // [0=RP,1=POI][0=pW nu,1=pW u][0=e eW,1=ne eW][0=nc,1=corr][cumulant's order]
354 TH2D *fFinalFlow2D[2][2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=e eW,1=ne eW][0=not corr,1=corr][order of flow estimate]
355 TH1D *fFinalFlowPt[2][2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=e eW,1=ne eW][0=not corr,1=corr][order of flow estimate]
356 TH1D *fFinalFlowEta[2][2][2][2][4]; // [0=RP,1=POI][0=pW not used,1=pW used][0=e eW,1=ne eW][0=not corr,1=corr][order of flow estimate]
357 TH2D *fNonEmptyBins2D[2]; // [0=RP,1=POI]
358 TH1D *fNonEmptyBins1D[2][2]; // [0=RP,1=POI][0=pt,1=eta]
359
360 // 5.) distributions:
361 TList *fDistributionsList; // list to hold all distributions
362 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>]
363
364 // x.) debugging and cross-checking:
365 // Remark: for weighted correlations cross-checking is performed only with phi weights (this is sufficient)
366 TList *fNestedLoopsList; // list to hold all profiles filled with nested loops
367 Bool_t fEvaluateNestedLoopsForIntFlow; // evaluate nested loops relevant for integrated flow
368 Bool_t fEvaluateNestedLoopsForDiffFlow; // evaluate nested loops relevant for differential flow
369 TProfile *fEvaluateNestedLoops; // profile with two bins to hold values of fEvaluateNestedLoopsForIntFlow and fEvaluateNestedLoopsForDiffFlow
370 TProfile *fDirectCorrelations; // reduced multi-particle correlations calculated with nested loop relevant for int. flow
371 TProfile *fDirectCorrectionsCos; // corrections for non-uniform acceptance (cos terms) calculated with nested loops (int. flow)
372 TProfile *fDirectCorrectionsSin; // corrections for non-uniform acceptance (sin terms) calculated with nested loops (int. flow)
373 TProfile *fDirectCorrelationsDiffFlow; // multi-particle correlations calculated with nested loop relevant for diff. flow
374 TProfile *fDirectCorrectionsDiffFlowCos; // corrections for non-uniform acceptance (cos terms) calculated with nested loops (diff. flow)
375 TProfile *fDirectCorrectionsDiffFlowSin; // corrections for non-uniform acceptance (sin terms) calculated with nested loops (diff. flow)
376 TProfile *fDirectCorrelationsW; // weighted multi-particle correlations calculated with nested loop relevant for int. flow
377 TProfile *fDirectCorrectionsCosW; // weighted corrections for non-uniform acceptance (cos terms) calculated with nested loops (int. flow)
378 TProfile *fDirectCorrectionsSinW; // weighted corrections for non-uniform acceptance (sin terms) calculated with nested loops (int. flow)
379 TProfile *fDirectCorrelationsDiffFlowW; // weighted reduced multi-particle correlations calculated with nested loop relevant for diff. flow
380 TProfile *fDirectCorrectionsDiffFlowCosW; // weighted corrections for non-uniform acceptance (cos terms) calculated with nested loops (diff. flow)
381 TProfile *fDirectCorrectionsDiffFlowSinW; // weighted corrections for non-uniform acceptance (sin terms) calculated with nested loops (diff. flow)
382
bc92c0cb 383 ClassDef(AliFlowAnalysisWithQCumulants, 0);
384};
385
386//================================================================================================================
387
388#endif
389
390
391
392
393