From a07790d2cb2efc8f63cbe7b8aa53e91852429435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Jos=C3=A9?= <52935244+lucasjsilva@users.noreply.github.com> Date: Fri, 27 Mar 2026 15:27:54 +0100 Subject: [PATCH 1/4] Correction for histograms filling --- PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx b/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx index 30025ca9103..0802ddf6bc0 100644 --- a/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx +++ b/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx @@ -361,12 +361,12 @@ struct StudyPnch { auto recTracksPart = RecTracks.sliceBy(perCollision, RecCol.globalIndex()); auto multrec = countNTracksMcCol(recTracksPart, RecCol); if (multrec > 0) { - histos.fill(HIST("hMultiplicityMCrec"), multrec); + histos.fill(HIST("hMultiplicityMCrecMod"), multrec); } auto multgen = countGenTracks(GenParticles, mcCollision); if (multgen > 0 && multrec > 0) { - histos.fill(HIST("hMultiplicityMCgen"), multgen); - histos.fill(HIST("hResponseMatrix"), multrec, multgen); + histos.fill(HIST("hMultiplicityMCgenMod"), multgen); + histos.fill(HIST("hResponseMatrixMod"), multrec, multgen); } } } From 91b669b0f087655f7afd30c9493a93593972e928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Jos=C3=A9?= <52935244+lucasjsilva@users.noreply.github.com> Date: Fri, 27 Mar 2026 16:54:33 +0100 Subject: [PATCH 2/4] Correction on histogram filling From fda4e1f8f81cfa9d9d68232bc07d4c7ab4ee1d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Jos=C3=A9?= <52935244+lucasjsilva@users.noreply.github.com> Date: Fri, 27 Mar 2026 16:57:52 +0100 Subject: [PATCH 3/4] Correction on histogram filling Removed histogram for counting modified tracks from Monte Carlo processing. --- PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx b/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx index 0802ddf6bc0..8ddc84dee7a 100644 --- a/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx +++ b/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx @@ -152,7 +152,6 @@ struct StudyPnch { histos.add("hMultiplicityMCrecMod", "hMultiplicityMCrecMod", kTH1F, {axisMult}, true); histos.add("hMultiplicityMCgenMod", "hMultiplicityMCgenMod", kTH1F, {axisMult}, true); histos.add("hResponseMatrixMod", "hResponseMatrixMod", kTH2F, {axisMult, axisMult}, true); - histos.add("hCountNTracksMod", "hCountNTracksMod", kTH1F, {axisCountNumberTracks}, true); } if (doprocessEvtLossSigLossMC) { histos.add("MCEventHist", "MCEventHist", kTH1F, {axisEvent}, false); From 6276ecc4a369be123f7ea1c3b694216aa00ae216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Jos=C3=A9?= <52935244+lucasjsilva@users.noreply.github.com> Date: Mon, 30 Mar 2026 14:32:53 +0200 Subject: [PATCH 4/4] Correction on histogram filling --- PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx b/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx index 8ddc84dee7a..a0ef2af5aa0 100644 --- a/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx +++ b/PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx @@ -152,6 +152,7 @@ struct StudyPnch { histos.add("hMultiplicityMCrecMod", "hMultiplicityMCrecMod", kTH1F, {axisMult}, true); histos.add("hMultiplicityMCgenMod", "hMultiplicityMCgenMod", kTH1F, {axisMult}, true); histos.add("hResponseMatrixMod", "hResponseMatrixMod", kTH2F, {axisMult, axisMult}, true); + histos.add("hCountNTracksMod", "hCountNTracksMod", kTH1F, {axisCountNumberTracks}, true); } if (doprocessEvtLossSigLossMC) { histos.add("MCEventHist", "MCEventHist", kTH1F, {axisEvent}, false); @@ -255,7 +256,6 @@ struct StudyPnch { if (!isGenTrackSelected(track)) { continue; } - // Verify that the track belongs to the given MC collision if (track.mcCollisionId() != McCol.globalIndex()) { continue; } @@ -275,7 +275,6 @@ struct StudyPnch { if (!isTrackSelected(track)) { continue; } - // Verify that the track belongs to the given MC collision if (track.has_mcParticle()) { auto particle = track.mcParticle(); if (particle.mcCollisionId() != McCol.mcCollisionId()) { @@ -286,7 +285,7 @@ struct StudyPnch { } histos.fill(HIST("PhiVsEtaHist"), track.phi(), track.eta()); } - // Once all the frequencies have been counted, a loop can be made to fill the histogram + // Loop to fill the histogram without cloned tracks for (const auto& [globalIndex, frequency] : recoFrequencies) { histos.fill(HIST("hCountNTracks"), frequency); // Fill histogram with not cloned tracks @@ -354,6 +353,7 @@ struct StudyPnch { if (!isEventSelected(RecCol)) { continue; } + // Evaluation of reconstructed collisions with more than 1 contributor if (RecCol.globalIndex() != mcCollision.bestCollisionIndex()) { continue; }