From b01a0de691f45d95e38faf42af018830d5c160ab Mon Sep 17 00:00:00 2001 From: SCHOTTER Romain <47983209+romainschotter@users.noreply.github.com> Date: Sat, 12 Sep 2026 00:36:39 +0200 Subject: [PATCH 1/4] Fix recalibrate procedure --- PWGLF/Utils/mcCentralityModule.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PWGLF/Utils/mcCentralityModule.h b/PWGLF/Utils/mcCentralityModule.h index 5a109161d14..98fe9d4fc11 100644 --- a/PWGLF/Utils/mcCentralityModule.h +++ b/PWGLF/Utils/mcCentralityModule.h @@ -445,7 +445,7 @@ struct BuilderModule { double meanMult_MC = -1; double diffMultDataVsMC = 1e+09; int endBinMc = startBinMc; - for (int j = startBinMc; j >= 1; j--) { + for (int j = startBinMc-1; j >= 1; j--) { // Loop over MC bins TH1D* projMC = h2dMultRecoVsMultGen_MC->ProjectionY("", j, startBinMc); int nEntries = projMC->Integral(); @@ -518,9 +518,9 @@ struct BuilderModule { double meanMult_MC = -1; double diffMultDataVsMC = 1e+09; int endBinMc = h1dCalib->GetNbinsX(); - for (int j = startBinMc; j <= h1dCalib->GetNbinsX(); j++) { + for (int j = startBinMc+1; j <= h1dCalib->GetNbinsX(); j++) { // Loop over MC bins - TH1D* projMC = h2dMultRecoVsMultGen_MC->ProjectionY("", startBinMc, endBinMc); + TH1D* projMC = h2dMultRecoVsMultGen_MC->ProjectionY("", startBinMc, j); int nEntries = projMC->Integral(); double meanMC = projMC->GetMean(); double ldiff = std::abs(meanMC - meanMult_Data); From 095d548a655768b2d7a3734d6f8ba7d4ba94c8b5 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Fri, 11 Sep 2026 22:38:50 +0000 Subject: [PATCH 2/4] Please consider the following formatting changes --- PWGLF/Utils/mcCentralityModule.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGLF/Utils/mcCentralityModule.h b/PWGLF/Utils/mcCentralityModule.h index 98fe9d4fc11..3082cb596c9 100644 --- a/PWGLF/Utils/mcCentralityModule.h +++ b/PWGLF/Utils/mcCentralityModule.h @@ -445,7 +445,7 @@ struct BuilderModule { double meanMult_MC = -1; double diffMultDataVsMC = 1e+09; int endBinMc = startBinMc; - for (int j = startBinMc-1; j >= 1; j--) { + for (int j = startBinMc - 1; j >= 1; j--) { // Loop over MC bins TH1D* projMC = h2dMultRecoVsMultGen_MC->ProjectionY("", j, startBinMc); int nEntries = projMC->Integral(); @@ -518,7 +518,7 @@ struct BuilderModule { double meanMult_MC = -1; double diffMultDataVsMC = 1e+09; int endBinMc = h1dCalib->GetNbinsX(); - for (int j = startBinMc+1; j <= h1dCalib->GetNbinsX(); j++) { + for (int j = startBinMc + 1; j <= h1dCalib->GetNbinsX(); j++) { // Loop over MC bins TH1D* projMC = h2dMultRecoVsMultGen_MC->ProjectionY("", startBinMc, j); int nEntries = projMC->Integral(); From 5aa747282f42dd206fc512f86a59a6594e1fb27b Mon Sep 17 00:00:00 2001 From: SCHOTTER Romain <47983209+romainschotter@users.noreply.github.com> Date: Sat, 12 Sep 2026 01:06:39 +0200 Subject: [PATCH 3/4] Fix errors --- PWGLF/Utils/mcCentralityModule.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PWGLF/Utils/mcCentralityModule.h b/PWGLF/Utils/mcCentralityModule.h index 3082cb596c9..2a097dd21fd 100644 --- a/PWGLF/Utils/mcCentralityModule.h +++ b/PWGLF/Utils/mcCentralityModule.h @@ -202,10 +202,10 @@ struct BuilderModule { std::vector> hCalibPVMC; int nEnabledTables = 0; - int mRunNumber; + int mRunNumber = 0; // TAxis - int nCentBins; + int nCentBins = 0; std::vector centralityBins; // Registers the on-the-fly-calibration QA histograms for one estimator (no-op unless recalibrateCentrality @@ -733,4 +733,4 @@ struct BuilderModule { } // namespace pwglf } // namespace o2 -#endif // PWGLF_UTILS_MCCENTRALITYMODULE_ +#endif // PWGLF_UTILS_MCCENTRALITYMODULE_H_ From ce7673459daea8246e3c7f86e6012410170b299f Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Fri, 11 Sep 2026 23:07:19 +0000 Subject: [PATCH 4/4] Please consider the following formatting changes --- PWGLF/Utils/mcCentralityModule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGLF/Utils/mcCentralityModule.h b/PWGLF/Utils/mcCentralityModule.h index 2a097dd21fd..0a7871609aa 100644 --- a/PWGLF/Utils/mcCentralityModule.h +++ b/PWGLF/Utils/mcCentralityModule.h @@ -733,4 +733,4 @@ struct BuilderModule { } // namespace pwglf } // namespace o2 -#endif // PWGLF_UTILS_MCCENTRALITYMODULE_H_ +#endif // PWGLF_UTILS_MCCENTRALITYMODULE_H_