diff --git a/PWGCF/MultiparticleCorrelations/Tasks/multiparticleCumulants.cxx b/PWGCF/MultiparticleCorrelations/Tasks/multiparticleCumulants.cxx index ef403843c65..feea63c6b5e 100644 --- a/PWGCF/MultiparticleCorrelations/Tasks/multiparticleCumulants.cxx +++ b/PWGCF/MultiparticleCorrelations/Tasks/multiparticleCumulants.cxx @@ -305,13 +305,13 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam bool fWeightSwitch = kTRUE; TList* fWeightHistogramsList = NULL; // Fill phi/pt histograms with that run number: - std::map fPtRealByRunMap; // MC rec (too lazy to change name) data pt histograms, valid if processMonteCarlo - std::map fPtMCByRunMap; // MC sim (too lazy to change name) data pt histograms, valid if processMonteCarlo - std::map fPhiByRunMap; // Phi histograms, valid if processRealData + std::map fPtRealByRunMap; // MC rec (too lazy to change name) data pt histograms, valid if processMonteCarlo + std::map fPtMCByRunMap; // MC sim (too lazy to change name) data pt histograms, valid if processMonteCarlo + std::map fPhiByRunMap; // Phi histograms, valid if processRealData // Make weight histograms locally. Upload weight histograms to CCDB: - std::vector fWeightHistograms; // Get all weight histograms with that run number - std::map fPhiWeightHistogramsMap; // Get phi weight histograms - std::map fPtWeightHistogramsMap; // Get pt weight histograms + std::vector fWeightHistograms; // Get all weight histograms with that run number + std::map fPhiWeightHistogramsMap; // Get phi weight histograms + std::map fPtWeightHistogramsMap; // Get pt weight histograms // Null weight histograms. Use them when no weight histograms found in the given run number: TH1F* fDummyPhiWeightHistogram = NULL; TH1F* fDummyPtWeightHistogram = NULL; @@ -763,7 +763,7 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam wt.fPtRealByRunMap[ebye.fRunNumber]->SetDirectory(nullptr); wt.fWeightHistogramsList->Add(wt.fPtRealByRunMap[ebye.fRunNumber]); } - + // Book pt MC sim histogram with this run number: if (wt.fPtMCByRunMap.find(ebye.fRunNumber) == wt.fPtMCByRunMap.end()) { wt.fPtMCByRunMap[ebye.fRunNumber] = new TH1F(Form("hPtMC_run%d", ebye.fRunNumber), Form("pt MC sim distribution for run %d", ebye.fRunNumber), static_cast(tc.fPtBins[0]), tc.fPtBins[1], tc.fPtBins[2]); @@ -773,13 +773,13 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam // Get phi and pt weight histogram with this run number: if (wt.fWeightSwitch && wt.fPhiWeightHistogramsMap.find(ebye.fRunNumber) == wt.fPhiWeightHistogramsMap.end()) { - + TH1F* phiWeightHist = dynamic_cast(wt.fDummyPhiWeightHistogram->Clone(Form("wPhi_run%d", ebye.fRunNumber))); TH1F* ptWeightHist = dynamic_cast(wt.fDummyPtWeightHistogram->Clone(Form("wPt_run%d", ebye.fRunNumber))); wt.fWeightHistograms = getHistogramsWithWeights(tc.fFileWithWeights.c_str(), stringRunNumber.c_str()); - for(TH1F* const hist : wt.fWeightHistograms){ + for (TH1F* const hist : wt.fWeightHistograms) { if (!hist) { LOGF(warning, "Fail to loop weight histograms"); continue; @@ -792,7 +792,7 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam } } - for(TH1F* const hist : wt.fWeightHistograms){ + for (TH1F* const hist : wt.fWeightHistograms) { if (!hist) { LOGF(warning, "Fail to loop weight histograms"); continue; @@ -887,7 +887,7 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam if (tc.fPrintSwitch) { LOGF(info, "Run number: %d", ebye.fRunNumber); - + LOGF(info, "Centrality: %f", rlCollisionCent); LOGF(info, "Multiplicity: %f", static_cast(rlCollisionMult)); @@ -1018,7 +1018,7 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam } } - // Fail the event cut, skip this collision: + // Fail the event cut, skip this collision: } else { return; } @@ -1468,11 +1468,11 @@ struct MultiparticleCumulants { // this name is used in lower-case format to nam bookCorrHistograms(lCrBins, cr); wt.fDummyPhiWeightHistogram = new TH1F("fDummyPhiWeightHistogram", "Dummy phi weight histogram", tc.fPhiBins[0], tc.fPhiBins[1], tc.fPhiBins[2]); - for(int i=1; i<=wt.fDummyPhiWeightHistogram->GetNbinsX(); i++){ + for (int i = 1; i <= wt.fDummyPhiWeightHistogram->GetNbinsX(); i++) { wt.fDummyPhiWeightHistogram->SetBinContent(i, 1.); } wt.fDummyPtWeightHistogram = new TH1F("fDummyPtWeightHistogram", "Dummy pt weight histogram", tc.fPtBins[0], tc.fPtBins[1], tc.fPtBins[2]); - for(int i=1; i<=wt.fDummyPtWeightHistogram->GetNbinsX(); i++){ + for (int i = 1; i <= wt.fDummyPtWeightHistogram->GetNbinsX(); i++) { wt.fDummyPtWeightHistogram->SetBinContent(i, 1.); }