From 51036300bba15cf1f34ff3dffcf7540e6814c587 Mon Sep 17 00:00:00 2001 From: KaiCui Date: Mon, 1 Jun 2026 16:01:23 +0200 Subject: [PATCH 1/2] Update hStrangeCorrelation.cxx --- PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx b/PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx index 00ec57541a0..f315d354cf0 100644 --- a/PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx +++ b/PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx @@ -2807,6 +2807,11 @@ struct HStrangeCorrelation { histos.fill(HIST("Generated/hPositive") + HIST(Particlenames[Index]), mcParticle.pt(), mcParticle.eta(), 1); else if (i == IndexPion && mcParticle.pdgCode() < Neutral) histos.fill(HIST("Generated/hNegative") + HIST(Particlenames[Index]), mcParticle.pt(), mcParticle.eta(), 1); + else { + if (mcParticle.pdgCode() == PdgCodes[i]) { + histos.fill(HIST("Generated/h") + HIST(Particlenames[Index]), mcParticle.pt(), mcParticle.eta(), 1); + } + } }); } if (collisions.size() < 1) From d02562c18432a55fc33eb14d4af701e2f5179a4d Mon Sep 17 00:00:00 2001 From: Kai Cui <129373281+kcui1@users.noreply.github.com> Date: Mon, 1 Jun 2026 16:22:14 +0200 Subject: [PATCH 2/2] Update hStrangeCorrelation.cxx --- PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx b/PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx index f315d354cf0..edb043a9746 100644 --- a/PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx +++ b/PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx @@ -2807,11 +2807,8 @@ struct HStrangeCorrelation { histos.fill(HIST("Generated/hPositive") + HIST(Particlenames[Index]), mcParticle.pt(), mcParticle.eta(), 1); else if (i == IndexPion && mcParticle.pdgCode() < Neutral) histos.fill(HIST("Generated/hNegative") + HIST(Particlenames[Index]), mcParticle.pt(), mcParticle.eta(), 1); - else { - if (mcParticle.pdgCode() == PdgCodes[i]) { - histos.fill(HIST("Generated/h") + HIST(Particlenames[Index]), mcParticle.pt(), mcParticle.eta(), 1); - } - } + else if (mcParticle.pdgCode() == PdgCodes[i]) + histos.fill(HIST("Generated/h") + HIST(Particlenames[Index]), mcParticle.pt(), mcParticle.eta(), 1); }); } if (collisions.size() < 1)