28 #include "Riostream.h"
29 #include "AliAODEvent.h"
30 #include "AliAODHeader.h"
31 #include "AliCentrality.h"
34 #include "TProfile2D.h"
54 fBookOnlyBasicCCH(kTRUE),
55 fFillMultipleControlHistograms(kFALSE),
57 fApplyCorrectionForNUA(kFALSE),
58 fApplyCorrectionForNUAVsM(kFALSE),
59 fPropagateErrorAlsoFromNIT(kFALSE),
60 fCalculateDiffFlow(kTRUE),
61 fCalculate2DDiffFlow(kFALSE),
62 fCalculateDiffFlowVsEta(kTRUE),
63 fStoreDistributions(kFALSE),
64 fCalculateCumulantsVsM(kFALSE),
65 fCalculateAllCorrelationsVsM(kFALSE),
66 fCalculateMixedHarmonics(kFALSE),
67 fCalculateMixedHarmonicsVsM(kFALSE),
68 fStoreControlHistograms(kFALSE),
69 fMinimumBiasReferenceFlow(kTRUE),
70 fForgetAboutCovariances(kFALSE),
71 fStoreVarious(kFALSE),
73 fUse2DHistograms(kFALSE),
74 fFillProfilesVsMUsingWeights(kTRUE),
75 fUseQvectorTerms(kFALSE),
79 fUseParticleWeights(useParticleWeights),
80 fUsePhiWeights(kFALSE),
81 fUsePtWeights(kFALSE),
82 fUseEtaWeights(kFALSE),
83 fUseTrackWeights(kFALSE),
84 fUsePhiEtaWeights(kFALSE),
85 fUsePhiEtaWeightsChDep(kFALSE),
86 fUsePhiEtaWeightsVtxDep(kFALSE),
87 fUsePhiEtaCuts(kFALSE),
88 fUseZDCESEMulWeights(kFALSE),
89 fUseZDCESESpecWeights(kFALSE),
91 fMultiplicityWeight(NULL),
93 fnBinsForCorrelations(10000),
94 fUseBootstrap(kFALSE),
95 fUseBootstrapVsM(kFALSE),
98 fCalculateCRCPt(kFALSE),
99 fCalculateCME(kFALSE),
100 fCalculateCRCInt(kFALSE),
101 fCalculateCRC2(kFALSE),
102 fCalculateCRCVZ(kFALSE),
103 fCalculateCRCZDC(kFALSE),
104 fCalculateEbEFlow(kFALSE),
105 fStoreZDCQVecVtxPos(kFALSE),
107 fCalculateFlowQC(kFALSE),
108 fCalculateFlowZDC(kFALSE),
109 fCalculateFlowVZ(kFALSE),
112 fRemoveSplitMergedTracks(kFALSE),
113 fRecenterZDC(kFALSE),
118 fUseNUAforCRC(kFALSE),
119 fUseCRCRecenter(kFALSE),
124 fFlowQCDeltaEta(0.4),
127 fInteractionRate(""),
129 fPOIExtraWeights(""),
130 fCorrWeight("TPCuVZuZDCu"),
132 fCRCZDCCalibList(NULL),
133 fCRCZDC2DCutList(NULL),
134 fCRCVZEROCalibList(NULL),
135 fCRCZDCResList(NULL),
137 fCenWeightsHist(NULL),
138 fRefMultRbRPro(NULL),
139 fAvEZDCCRbRPro(NULL),
140 fAvEZDCARbRPro(NULL),
141 fPhiExclZoneHist(NULL),
143 fUseTracklets(kFALSE),
149 AliDebug(2,
"AliAnalysisTaskCRC::AliAnalysisTaskCRC(const char *name, Bool_t useParticleWeights)");
153 DefineInput(0, AliFlowEventSimple::Class());
157 DefineOutput(1, TList::Class());
160 fMultiplicityWeight =
new TString(
"combinations");
164 fMinValueOfCorrelation[0] = -0.015;
165 fMaxValueOfCorrelation[0] = 0.03;
166 fMinValueOfCorrelation[1] = -0.6e-3;
167 fMaxValueOfCorrelation[1] = 0.07;
168 fMinValueOfCorrelation[2] = -0.08e-3;
169 fMaxValueOfCorrelation[2] = 0.015;
170 fMinValueOfCorrelation[3] = -20.e-6;
171 fMaxValueOfCorrelation[3] = 0.003;
175 fMinValueOfCorrelationProduct[0] = -15.e-6;
176 fMaxValueOfCorrelationProduct[0] = 0.02;
179 fMinValueOfQvectorTerms[0] = 0.;
180 fMaxValueOfQvectorTerms[0] = 30.;
181 fMinValueOfQvectorTerms[1] = 0.;
182 fMaxValueOfQvectorTerms[1] = 20.;
183 fMinValueOfQvectorTerms[2] = 0.;
184 fMaxValueOfQvectorTerms[2] = 200.;
185 fMinValueOfQvectorTerms[3] = -30.;
186 fMaxValueOfQvectorTerms[3] = 80.;
189 fPtWeightsHist[
c] = NULL;
190 for(
Int_t b=0; b<21; b++) {
191 for(
Int_t k=0; k<2; k++) {
192 fEtaWeightsHist[
c][b][k] = NULL;
197 for(
Int_t k=0; k<2; k++) {
198 fNvsCenCut[
c][k] = NULL;
201 for(
Int_t k=0; k<5; k++) {
202 fZDCESEMultWeightsHist[k] = NULL;
203 fZDCESESpecWeightsHist[k] = NULL;
215 fBookOnlyBasicCCH(kFALSE),
216 fFillMultipleControlHistograms(kFALSE),
218 fApplyCorrectionForNUA(kFALSE),
219 fApplyCorrectionForNUAVsM(kFALSE),
220 fPropagateErrorAlsoFromNIT(kFALSE),
221 fCalculateDiffFlow(kFALSE),
222 fCalculate2DDiffFlow(kFALSE),
223 fCalculateDiffFlowVsEta(kTRUE),
224 fStoreDistributions(kFALSE),
225 fCalculateCumulantsVsM(kFALSE),
226 fCalculateAllCorrelationsVsM(kFALSE),
227 fCalculateMixedHarmonics(kFALSE),
228 fCalculateMixedHarmonicsVsM(kFALSE),
229 fStoreControlHistograms(kFALSE),
230 fMinimumBiasReferenceFlow(kFALSE),
231 fForgetAboutCovariances(kFALSE),
232 fStoreVarious(kFALSE),
234 fUse2DHistograms(kFALSE),
235 fFillProfilesVsMUsingWeights(kTRUE),
236 fUseQvectorTerms(kFALSE),
240 fUseParticleWeights(kFALSE),
241 fUsePhiWeights(kFALSE),
242 fUsePtWeights(kFALSE),
243 fUseEtaWeights(kFALSE),
244 fUseTrackWeights(kFALSE),
245 fUsePhiEtaWeights(kFALSE),
246 fUsePhiEtaWeightsChDep(kFALSE),
247 fUsePhiEtaWeightsVtxDep(kFALSE),
248 fUsePhiEtaCuts(kFALSE),
249 fUseZDCESEMulWeights(kFALSE),
250 fUseZDCESESpecWeights(kFALSE),
252 fMultiplicityWeight(NULL),
254 fnBinsForCorrelations(0),
255 fUseBootstrap(kFALSE),
256 fUseBootstrapVsM(kFALSE),
258 fCalculateCRC(kTRUE),
259 fCalculateCRCPt(kFALSE),
260 fCalculateCME(kFALSE),
261 fCalculateCRCInt(kFALSE),
262 fCalculateCRC2(kFALSE),
263 fCalculateCRCVZ(kFALSE),
264 fCalculateCRCZDC(kFALSE),
265 fCalculateEbEFlow(kFALSE),
266 fStoreZDCQVecVtxPos(kFALSE),
268 fCalculateFlowQC(kFALSE),
269 fCalculateFlowZDC(kFALSE),
270 fCalculateFlowVZ(kFALSE),
273 fRemoveSplitMergedTracks(kFALSE),
274 fRecenterZDC(kFALSE),
279 fUseNUAforCRC(kFALSE),
280 fUseCRCRecenter(kFALSE),
285 fFlowQCDeltaEta(0.4),
288 fInteractionRate(
""),
290 fPOIExtraWeights(
""),
291 fCorrWeight(
"TPCuVZuZDCu"),
293 fCRCZDCCalibList(NULL),
294 fCRCZDC2DCutList(NULL),
295 fCRCVZEROCalibList(NULL),
296 fCRCZDCResList(NULL),
298 fCenWeightsHist(NULL),
299 fRefMultRbRPro(NULL),
300 fAvEZDCCRbRPro(NULL),
301 fAvEZDCARbRPro(NULL),
302 fPhiExclZoneHist(NULL),
304 fUseTracklets(kFALSE),
310 AliDebug(2,
"AliAnalysisTaskCRC::AliAnalysisTaskCRC()");
340 for(
Int_t b=0; b<21; b++) {
341 for(
Int_t k=0; k<2; k++) {
347 for(
Int_t k=0; k<2; k++) {
351 for(
Int_t k=0; k<5; k++) {
363 AliDebug(2,
"AliAnalysisTaskCRC::UserCreateOutputObjects()");
487 for(
Int_t h=0; h<10; h++) {
488 for(
Int_t b=0; b<21; b++) {
497 for(
Int_t k=0; k<2; k++) {
504 for(
Int_t k=0; k<5; k++) {
510 for(
Int_t k=0; k<5; k++) {
525 for(
Int_t ci=0;ci<4;ci++) {
531 for(
Int_t cpi=0;cpi<1;cpi++) {
537 for(
Int_t ci=0;ci<4;ci++) {
552 Printf(
"ERROR: Could not retrieve histogram list (QC, Task::UserCreateOutputObjects()) !!!!");
571 cout<<
"WARNING: No input data (QC, Task::UserExec()) !!!!"<<endl;
602 cout<<
" WARNING: histogram list pointer is empty (QC, Task::Terminate()) !!!!"<<endl;
Bool_t fCalculateDiffFlowVsEta
void SetPOIExtraWeights(POIExtraWeights set)
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)
TList * fCRCVZEROCalibList
void SetCalculateAllCorrelationsVsM(Bool_t const cacvm)
void SetDataSet(DataSet set)
void SetUseBootstrap(Bool_t const ub)
void SetCorrWeightVZ(CorrelationWeights weights)
void SetCRCZDC2DCutList(TList *const wlist)
void SetRecenterZDC(Bool_t const cCRC)
void SetBookOnlyBasicCCH(Bool_t const bobcch)
Bool_t fStoreZDCQVecVtxPos
void SetCalculateFlowVZ(Bool_t const cCRC)
TProfile2D * fAvEZDCARbRPro
void SetApplyCorrectionForNUA(Bool_t const applyCorrectionForNUA)
void SetRemoveSplitMergedTracks(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)
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 SetStoreZDCQVecVtxPos(Bool_t const cCRC)
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)
void SetRefMultRbRPro(TProfile2D *const n)
Bool_t fCalculateMixedHarmonicsVsM
Bool_t fStoreDistributions
void SetCorrWeightZDC(CorrelationWeights weights)
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 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)
void SetUseTracklets(Bool_t const cCRC)
Double_t fMinValueOfQvectorTerms[4]
Double_t fMaxValueOfQvectorTerms[4]
Bool_t fFillMultipleControlHistograms
void SetCRCZDCResList(TList *const wlist)
Bool_t fMinimumBiasReferenceFlow
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 SetRecenterZDCVtxRbR(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 SetAvEZDCRbRPro(TProfile2D *const A, TProfile2D *const B)
void SetMultiplicityWeight(const char *multiplicityWeight)
Bool_t fStoreControlHistograms
TProfile2D * fRefMultRbRPro
TH1D * fEtaWeightsHist[10][21][2]
void SetUseBootstrapVsM(Bool_t const ubVsM)
void SetUse2DHistograms(Bool_t const u2dh)
Double_t fMaxValueOfCorrelationProduct[1]
void SetWeightsList(TList *const wlist)
void SetZDCGainAlpha(Float_t a)
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 SetCalculateCRCInt(Bool_t const cCRC)
void SetStoreDistributions(Bool_t const storeDistributions)
virtual void GetOutputHistograms(TList *outputListHistos)
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 SetCRCVZEROCalibList(TList *const wlist)
void SetFlowQCDeltaEta(Double_t const TL)
void SetMaxValueOfCorrelationProduct(Int_t const cpi, Double_t const maxValue)
void SetMinimumBiasReferenceFlow(Bool_t const mmrf)
void SetCalculateMixedHarmonics(Bool_t const cmh)
Bool_t fRemoveSplitMergedTracks
void SetEtaWeightsHist(TH1D *const n, Int_t h, Int_t b, Int_t c)
Bool_t fFillProfilesVsMUsingWeights
Bool_t fCalculateCumulantsVsM
TProfile2D * fAvEZDCCRbRPro
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 SetPhiExclZoneHist(TH2D *const n)
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)