28 #include "Riostream.h"
29 #include "AliAODEvent.h"
30 #include "AliAODHeader.h"
31 #include "AliCentrality.h"
53 fBookOnlyBasicCCH(kTRUE),
54 fFillMultipleControlHistograms(kFALSE),
56 fApplyCorrectionForNUA(kFALSE),
57 fApplyCorrectionForNUAVsM(kFALSE),
58 fPropagateErrorAlsoFromNIT(kFALSE),
59 fCalculateDiffFlow(kTRUE),
60 fCalculate2DDiffFlow(kFALSE),
61 fCalculateDiffFlowVsEta(kTRUE),
62 fStoreDistributions(kFALSE),
63 fCalculateCumulantsVsM(kFALSE),
64 fCalculateAllCorrelationsVsM(kFALSE),
65 fCalculateMixedHarmonics(kFALSE),
66 fCalculateMixedHarmonicsVsM(kFALSE),
67 fStoreControlHistograms(kFALSE),
68 fMinimumBiasReferenceFlow(kTRUE),
69 fForgetAboutCovariances(kFALSE),
70 fStoreVarious(kFALSE),
72 fUse2DHistograms(kFALSE),
73 fFillProfilesVsMUsingWeights(kTRUE),
74 fUseQvectorTerms(kFALSE),
78 fUseParticleWeights(useParticleWeights),
79 fUsePhiWeights(kFALSE),
80 fUsePtWeights(kFALSE),
81 fUseEtaWeights(kFALSE),
82 fUseTrackWeights(kFALSE),
83 fUsePhiEtaWeights(kFALSE),
84 fUsePhiEtaWeightsChDep(kFALSE),
85 fUsePhiEtaWeightsVtxDep(kFALSE),
86 fUsePhiEtaCuts(kFALSE),
87 fUseZDCESEMulWeights(kFALSE),
88 fUseZDCESESpecWeights(kFALSE),
90 fWeightsListChDep(NULL),
91 fWeightsListVtxDep(NULL),
92 fMultiplicityWeight(NULL),
94 fnBinsForCorrelations(10000),
95 fUseBootstrap(kFALSE),
96 fUseBootstrapVsM(kFALSE),
99 fCalculateCRCPt(kFALSE),
100 fCalculateCME(kFALSE),
101 fCalculateCRC2(kFALSE),
102 fCalculateCRCVZ(kFALSE),
103 fCalculateCRCZDC(kFALSE),
104 fCalculateEbEFlow(kFALSE),
106 fCalculateFlowQC(kFALSE),
107 fCalculateFlowZDC(kFALSE),
108 fCalculateFlowVZ(kFALSE),
111 fRecenterZDC(kFALSE),
115 fUseNUAforCRC(kFALSE),
116 fUseCRCRecenter(kFALSE),
121 fFlowQCDeltaEta(0.4),
124 fInteractionRate(""),
126 fCorrWeight("TPCuVZuZDCu"),
128 fCRCZDCCalibList(NULL),
129 fCRCZDCResList(NULL),
131 fCenWeightsHist(NULL),
137 AliDebug(2,
"AliAnalysisTaskCRC::AliAnalysisTaskCRC(const char *name, Bool_t useParticleWeights)");
141 DefineInput(0, AliFlowEventSimple::Class());
145 DefineOutput(1, TList::Class());
148 fMultiplicityWeight =
new TString(
"combinations");
152 fMinValueOfCorrelation[0] = -0.015;
153 fMaxValueOfCorrelation[0] = 0.03;
154 fMinValueOfCorrelation[1] = -0.6e-3;
155 fMaxValueOfCorrelation[1] = 0.07;
156 fMinValueOfCorrelation[2] = -0.08e-3;
157 fMaxValueOfCorrelation[2] = 0.015;
158 fMinValueOfCorrelation[3] = -20.e-6;
159 fMaxValueOfCorrelation[3] = 0.003;
163 fMinValueOfCorrelationProduct[0] = -15.e-6;
164 fMaxValueOfCorrelationProduct[0] = 0.02;
167 fMinValueOfQvectorTerms[0] = 0.;
168 fMaxValueOfQvectorTerms[0] = 30.;
169 fMinValueOfQvectorTerms[1] = 0.;
170 fMaxValueOfQvectorTerms[1] = 20.;
171 fMinValueOfQvectorTerms[2] = 0.;
172 fMaxValueOfQvectorTerms[2] = 200.;
173 fMinValueOfQvectorTerms[3] = -30.;
174 fMaxValueOfQvectorTerms[3] = 80.;
177 fPtWeightsHist[
c] = NULL;
178 for(
Int_t b=0; b<21; b++) {
179 for(
Int_t k=0; k<2; k++) {
180 fEtaWeightsHist[
c][b][k] = NULL;
185 for(
Int_t k=0; k<2; k++) {
186 fNvsCenCut[
c][k] = NULL;
189 for(
Int_t k=0; k<5; k++) {
190 fZDCESEMultWeightsHist[k] = NULL;
191 fZDCESESpecWeightsHist[k] = NULL;
203 fBookOnlyBasicCCH(kFALSE),
204 fFillMultipleControlHistograms(kFALSE),
206 fApplyCorrectionForNUA(kFALSE),
207 fApplyCorrectionForNUAVsM(kFALSE),
208 fPropagateErrorAlsoFromNIT(kFALSE),
209 fCalculateDiffFlow(kFALSE),
210 fCalculate2DDiffFlow(kFALSE),
211 fCalculateDiffFlowVsEta(kTRUE),
212 fStoreDistributions(kFALSE),
213 fCalculateCumulantsVsM(kFALSE),
214 fCalculateAllCorrelationsVsM(kFALSE),
215 fCalculateMixedHarmonics(kFALSE),
216 fCalculateMixedHarmonicsVsM(kFALSE),
217 fStoreControlHistograms(kFALSE),
218 fMinimumBiasReferenceFlow(kFALSE),
219 fForgetAboutCovariances(kFALSE),
220 fStoreVarious(kFALSE),
222 fUse2DHistograms(kFALSE),
223 fFillProfilesVsMUsingWeights(kTRUE),
224 fUseQvectorTerms(kFALSE),
228 fUseParticleWeights(kFALSE),
229 fUsePhiWeights(kFALSE),
230 fUsePtWeights(kFALSE),
231 fUseEtaWeights(kFALSE),
232 fUseTrackWeights(kFALSE),
233 fUsePhiEtaWeights(kFALSE),
234 fUsePhiEtaWeightsChDep(kFALSE),
235 fUsePhiEtaWeightsVtxDep(kFALSE),
236 fUsePhiEtaCuts(kFALSE),
237 fUseZDCESEMulWeights(kFALSE),
238 fUseZDCESESpecWeights(kFALSE),
240 fWeightsListChDep(NULL),
241 fWeightsListVtxDep(NULL),
242 fMultiplicityWeight(NULL),
244 fnBinsForCorrelations(0),
245 fUseBootstrap(kFALSE),
246 fUseBootstrapVsM(kFALSE),
248 fCalculateCRC(kTRUE),
249 fCalculateCRCPt(kFALSE),
250 fCalculateCME(kFALSE),
251 fCalculateCRC2(kFALSE),
252 fCalculateCRCVZ(kFALSE),
253 fCalculateCRCZDC(kFALSE),
254 fCalculateEbEFlow(kFALSE),
256 fCalculateFlowQC(kFALSE),
257 fCalculateFlowZDC(kFALSE),
258 fCalculateFlowVZ(kFALSE),
261 fRecenterZDC(kFALSE),
265 fUseNUAforCRC(kFALSE),
266 fUseCRCRecenter(kFALSE),
271 fFlowQCDeltaEta(0.4),
274 fInteractionRate(
""),
276 fCorrWeight(
"TPCuVZuZDCu"),
278 fCRCZDCCalibList(NULL),
279 fCRCZDCResList(NULL),
281 fCenWeightsHist(NULL),
287 AliDebug(2,
"AliAnalysisTaskCRC::AliAnalysisTaskCRC()");
317 for(
Int_t b=0; b<21; b++) {
318 for(
Int_t k=0; k<2; k++) {
324 for(
Int_t k=0; k<2; k++) {
328 for(
Int_t k=0; k<5; k++) {
340 AliDebug(2,
"AliAnalysisTaskCRC::UserCreateOutputObjects()");
448 for(
Int_t h=0; h<10; h++) {
449 for(
Int_t b=0; b<21; b++) {
458 for(
Int_t k=0; k<2; k++) {
465 for(
Int_t k=0; k<5; k++) {
471 for(
Int_t k=0; k<5; k++) {
486 for(
Int_t ci=0;ci<4;ci++) {
492 for(
Int_t cpi=0;cpi<1;cpi++) {
498 for(
Int_t ci=0;ci<4;ci++) {
513 Printf(
"ERROR: Could not retrieve histogram list (QC, Task::UserCreateOutputObjects()) !!!!");
532 cout<<
"WARNING: No input data (QC, Task::UserExec()) !!!!"<<endl;
561 cout<<
" WARNING: histogram list pointer is empty (QC, Task::Terminate()) !!!!"<<endl;
Bool_t fCalculateDiffFlowVsEta
Bool_t fUseZDCESESpecWeights
TList * GetHistList() const
void SetUsePhiEtaCuts(Bool_t const uPhiEtaW)
void SetTestSin(Bool_t const cCRC)
virtual void UserExec(Option_t *option)
void SetUseQvectorTerms(Bool_t const uqvt)
void SetNvsCenCut(TH1D *const n, Int_t c, Int_t h)
virtual void SetRunList()
virtual void UserCreateOutputObjects()
TH2F * fZDCESEMultWeightsHist[5]
ZDC mult cuts.
void SetUseTrackWeights(Bool_t const uTrackW)
void SetCalculateAllCorrelationsVsM(Bool_t const cacvm)
void SetDataSet(DataSet set)
void SetUseBootstrap(Bool_t const ub)
void SetCorrWeightVZ(CorrelationWeights weights)
void SetRecenterZDC(Bool_t const cCRC)
void SetBookOnlyBasicCCH(Bool_t const bobcch)
void SetCalculateFlowVZ(Bool_t const cCRC)
void SetApplyCorrectionForNUA(Bool_t const applyCorrectionForNUA)
void SetUsePhiEtaWeights(Bool_t const uPhiEtaW)
void SetCRCQVecWeightsList(TList *const wlist)
void SetZDCESEList(TList *const kList)
void SetUseZDCESEMulWeights(Bool_t const uPhiEtaW)
void SetUseZDC(Bool_t const cCRC)
void SetInvertZDC(Bool_t const cCRC)
void SetMinMulZN(Int_t weights)
void SetUsePhiWeights(Bool_t const uPhiW)
void SetQAZDCCuts(Bool_t const cCRC)
Bool_t fApplyCorrectionForNUA
void SetnBinsForCorrelations(Int_t const nb)
void SetUseVZERO(Bool_t const cCRC)
void SetDivSigma(Bool_t const cCRC)
void SetZDCESEMultWeightsHist(TH2F *const n, Int_t h)
void SetCorrWeightTPC(CorrelationWeights weights)
void SetInteractionRate(InteractionRate set)
void SetCalculateCRCVZ(Bool_t const cCRC)
void SetForgetAboutCovariances(Bool_t const fac)
TH1D * fPtWeightsHist[10]
Bool_t fCalculateMixedHarmonics
void SetCalculateCRC2(Bool_t const cCRC)
void SetZDCESESpecWeightsHist(TH2F *const n, Int_t h)
TList * fWeightsListVtxDep
void SetMinValueOfCorrelation(Int_t const ci, Double_t const minValue)
void SetStoreControlHistograms(Bool_t const sch)
void SetFillMultipleControlHistograms(Bool_t const fmch)
void SetCalculateCRC(Bool_t const cCRC)
void SetMaxValueOfCorrelation(Int_t const ci, Double_t const maxValue)
void SetnBinsMult(Int_t const nbm)
void SetNUAforCRC(Bool_t const cCRC)
void SetCalculateFlowQC(Bool_t const cCRC)
virtual void Make(AliFlowEventSimple *anEvent)
TH2F * fZDCESESpecWeightsHist[5]
void SetMinValueOfCorrelationProduct(Int_t const cpi, Double_t const minValue)
void SetUseZDCESESpecWeights(Bool_t const uPhiEtaW)
Bool_t fCalculateMixedHarmonicsVsM
Bool_t fStoreDistributions
void SetCorrWeightZDC(CorrelationWeights weights)
void SetUsePhiEtaWeightsChDep(Bool_t const uPhiEtaW)
void SetCalculateFlowZDC(Bool_t const cCRC)
Bool_t fUseZDCESEMulWeights
void SetRunNumber(Int_t const n)
Double_t fMinValueOfCorrelationProduct[1]
virtual void Terminate(Option_t *)
void SetCalculateDiffFlow(Bool_t const cdf)
void SetCalculateEbEFlow(Bool_t const cCRC)
void SetFillProfilesVsMUsingWeights(Bool_t const fpvmuw)
void SetWeightsListVtxDep(TList *const wlist)
void SetPtWeightsHist(TH1D *const n, Int_t c)
Bool_t fPropagateErrorAlsoFromNIT
Double_t fMinValueOfCorrelation[4]
Double_t fMaxValueOfCorrelation[4]
void SetMinValueOfQvectorTerms(Int_t const qvti, Double_t const minValue)
void SetCalculateCumulantsVsM(Bool_t const ccvm)
Double_t fMinValueOfQvectorTerms[4]
Double_t fMaxValueOfQvectorTerms[4]
Bool_t fFillMultipleControlHistograms
void SetCRCZDCResList(TList *const wlist)
Bool_t fMinimumBiasReferenceFlow
void SetWeightsListChDep(TList *const wlist)
void SetPropagateErrorAlsoFromNIT(Bool_t const peafNIT)
void SetCalculateCME(Bool_t const cCRC)
void SetExactNoRPs(Int_t const enr)
void SetCalculateCRCZDC(Bool_t const cCRC)
void SetnSubsamples(Int_t const ns)
void SetCalculateCRCPt(Bool_t const cCRC)
void SetCalculate2DDiffFlow(Bool_t const c2ddf)
void SetStoreVarious(Bool_t const spdfoe)
Bool_t fApplyCorrectionForNUAVsM
void SetMaxMult(Double_t const maxm)
void SetCRCEtaRange(Double_t const etamin, Double_t const etamax)
Bool_t fUseParticleWeights
void SetMultiplicityWeight(const char *multiplicityWeight)
Bool_t fStoreControlHistograms
TH1D * fEtaWeightsHist[10][21][2]
void SetUseBootstrapVsM(Bool_t const ubVsM)
void SetUsePhiEtaWeightsVtxDep(Bool_t const uPhiEtaW)
void SetUse2DHistograms(Bool_t const u2dh)
Double_t fMaxValueOfCorrelationProduct[1]
void SetWeightsList(TList *const wlist)
void SetCalculateMixedHarmonicsVsM(Bool_t const cmhvm)
TString * fMultiplicityWeight
ClassImp(AliAnalysisTaskCRC) AliAnalysisTaskCRC
AliFlowCommonConstants::ERefMultSource fMultiplicityIs
void SetMinMult(Double_t const minm)
void SetUseEtaWeights(Bool_t const uEtaW)
void SetStoreDistributions(Bool_t const storeDistributions)
Bool_t fUsePhiEtaWeightsVtxDep
virtual void GetOutputHistograms(TList *outputListHistos)
TList * fWeightsListChDep
void SetCalculateDiffFlowVsEta(Bool_t const cdfve)
void SetUsePtWeights(Bool_t const uPtW)
Bool_t fForgetAboutCovariances
void SetMultiplicityIs(AliFlowCommonConstants::ERefMultSource mi)
void SetHarmonic(Int_t const harmonic)
Bool_t fCalculateAllCorrelationsVsM
Bool_t fCalculateDiffFlow
void SetFlowQCDeltaEta(Double_t const TL)
Bool_t fUsePhiEtaWeightsChDep
void SetMaxValueOfCorrelationProduct(Int_t const cpi, Double_t const maxValue)
void SetMinimumBiasReferenceFlow(Bool_t const mmrf)
void SetCalculateMixedHarmonics(Bool_t const cmh)
void SetEtaWeightsHist(TH1D *const n, Int_t h, Int_t b, Int_t c)
Bool_t fFillProfilesVsMUsingWeights
Bool_t fCalculateCumulantsVsM
void SetMaxDevZN(Float_t weights)
void SetSelectCharge(SelectCharge set)
void SetMaxValueOfQvectorTerms(Int_t const qvti, Double_t const maxValue)
Bool_t fCalculate2DDiffFlow
void SetApplyCorrectionForNUAVsM(Bool_t const applyCorrectionForNUAVsM)
void SetCRCZDCCalibList(TList *const wlist)
void SetFlowQCCenBin(Int_t const TL)
void SetUseCRCRecenter(Bool_t const cCRC)
Int_t fnBinsForCorrelations
void SetCRC2nEtaBins(Int_t NB)
void SetCenWeightsHist(TH1D *const n)