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