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),
105 fStoreZDCQVecVtxPos(kFALSE),
107 fCalculateFlowQC(kFALSE),
108 fCalculateFlowZDC(kFALSE),
109 fCalculateFlowVZ(kFALSE),
112 fRecenterZDC(kFALSE),
116 fUseNUAforCRC(kFALSE),
117 fUseCRCRecenter(kFALSE),
122 fFlowQCDeltaEta(0.4),
125 fInteractionRate(""),
127 fCorrWeight("TPCuVZuZDCu"),
129 fCRCZDCCalibList(NULL),
130 fCRCZDCResList(NULL),
132 fCenWeightsHist(NULL),
138 AliDebug(2,
"AliAnalysisTaskCRC::AliAnalysisTaskCRC(const char *name, Bool_t useParticleWeights)");
142 DefineInput(0, AliFlowEventSimple::Class());
146 DefineOutput(1, TList::Class());
149 fMultiplicityWeight =
new TString(
"combinations");
153 fMinValueOfCorrelation[0] = -0.015;
154 fMaxValueOfCorrelation[0] = 0.03;
155 fMinValueOfCorrelation[1] = -0.6e-3;
156 fMaxValueOfCorrelation[1] = 0.07;
157 fMinValueOfCorrelation[2] = -0.08e-3;
158 fMaxValueOfCorrelation[2] = 0.015;
159 fMinValueOfCorrelation[3] = -20.e-6;
160 fMaxValueOfCorrelation[3] = 0.003;
164 fMinValueOfCorrelationProduct[0] = -15.e-6;
165 fMaxValueOfCorrelationProduct[0] = 0.02;
168 fMinValueOfQvectorTerms[0] = 0.;
169 fMaxValueOfQvectorTerms[0] = 30.;
170 fMinValueOfQvectorTerms[1] = 0.;
171 fMaxValueOfQvectorTerms[1] = 20.;
172 fMinValueOfQvectorTerms[2] = 0.;
173 fMaxValueOfQvectorTerms[2] = 200.;
174 fMinValueOfQvectorTerms[3] = -30.;
175 fMaxValueOfQvectorTerms[3] = 80.;
178 fPtWeightsHist[
c] = NULL;
179 for(
Int_t b=0; b<21; b++) {
180 for(
Int_t k=0; k<2; k++) {
181 fEtaWeightsHist[
c][b][k] = NULL;
186 for(
Int_t k=0; k<2; k++) {
187 fNvsCenCut[
c][k] = NULL;
190 for(
Int_t k=0; k<5; k++) {
191 fZDCESEMultWeightsHist[k] = NULL;
192 fZDCESESpecWeightsHist[k] = NULL;
204 fBookOnlyBasicCCH(kFALSE),
205 fFillMultipleControlHistograms(kFALSE),
207 fApplyCorrectionForNUA(kFALSE),
208 fApplyCorrectionForNUAVsM(kFALSE),
209 fPropagateErrorAlsoFromNIT(kFALSE),
210 fCalculateDiffFlow(kFALSE),
211 fCalculate2DDiffFlow(kFALSE),
212 fCalculateDiffFlowVsEta(kTRUE),
213 fStoreDistributions(kFALSE),
214 fCalculateCumulantsVsM(kFALSE),
215 fCalculateAllCorrelationsVsM(kFALSE),
216 fCalculateMixedHarmonics(kFALSE),
217 fCalculateMixedHarmonicsVsM(kFALSE),
218 fStoreControlHistograms(kFALSE),
219 fMinimumBiasReferenceFlow(kFALSE),
220 fForgetAboutCovariances(kFALSE),
221 fStoreVarious(kFALSE),
223 fUse2DHistograms(kFALSE),
224 fFillProfilesVsMUsingWeights(kTRUE),
225 fUseQvectorTerms(kFALSE),
229 fUseParticleWeights(kFALSE),
230 fUsePhiWeights(kFALSE),
231 fUsePtWeights(kFALSE),
232 fUseEtaWeights(kFALSE),
233 fUseTrackWeights(kFALSE),
234 fUsePhiEtaWeights(kFALSE),
235 fUsePhiEtaWeightsChDep(kFALSE),
236 fUsePhiEtaWeightsVtxDep(kFALSE),
237 fUsePhiEtaCuts(kFALSE),
238 fUseZDCESEMulWeights(kFALSE),
239 fUseZDCESESpecWeights(kFALSE),
241 fWeightsListChDep(NULL),
242 fWeightsListVtxDep(NULL),
243 fMultiplicityWeight(NULL),
245 fnBinsForCorrelations(0),
246 fUseBootstrap(kFALSE),
247 fUseBootstrapVsM(kFALSE),
249 fCalculateCRC(kTRUE),
250 fCalculateCRCPt(kFALSE),
251 fCalculateCME(kFALSE),
252 fCalculateCRC2(kFALSE),
253 fCalculateCRCVZ(kFALSE),
254 fCalculateCRCZDC(kFALSE),
255 fCalculateEbEFlow(kFALSE),
256 fStoreZDCQVecVtxPos(kFALSE),
258 fCalculateFlowQC(kFALSE),
259 fCalculateFlowZDC(kFALSE),
260 fCalculateFlowVZ(kFALSE),
263 fRecenterZDC(kFALSE),
267 fUseNUAforCRC(kFALSE),
268 fUseCRCRecenter(kFALSE),
273 fFlowQCDeltaEta(0.4),
276 fInteractionRate(
""),
278 fCorrWeight(
"TPCuVZuZDCu"),
280 fCRCZDCCalibList(NULL),
281 fCRCZDCResList(NULL),
283 fCenWeightsHist(NULL),
289 AliDebug(2,
"AliAnalysisTaskCRC::AliAnalysisTaskCRC()");
319 for(
Int_t b=0; b<21; b++) {
320 for(
Int_t k=0; k<2; k++) {
326 for(
Int_t k=0; k<2; k++) {
330 for(
Int_t k=0; k<5; k++) {
342 AliDebug(2,
"AliAnalysisTaskCRC::UserCreateOutputObjects()");
452 for(
Int_t h=0; h<10; h++) {
453 for(
Int_t b=0; b<21; b++) {
462 for(
Int_t k=0; k<2; k++) {
469 for(
Int_t k=0; k<5; k++) {
475 for(
Int_t k=0; k<5; k++) {
490 for(
Int_t ci=0;ci<4;ci++) {
496 for(
Int_t cpi=0;cpi<1;cpi++) {
502 for(
Int_t ci=0;ci<4;ci++) {
517 Printf(
"ERROR: Could not retrieve histogram list (QC, Task::UserCreateOutputObjects()) !!!!");
536 cout<<
"WARNING: No input data (QC, Task::UserExec()) !!!!"<<endl;
566 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)
Bool_t fStoreZDCQVecVtxPos
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 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)
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)