From fcf08b0621646679e2ce4881b9f5ed0b1f820150 Mon Sep 17 00:00:00 2001 From: Sandro Wenzel Date: Mon, 28 Sep 2026 17:59:10 +0200 Subject: [PATCH] Use the real Omega(2012) PDG code in the resonance analysis This replaces the placeholder PDG code in omega2012Analysis.cxx with o2::constants::physics::Pdg::kOmega2012Minus, now that AliceO2 carries that constant. - Removes kPlaceholderPdgCode (3335) and its TODO. --- PWGLF/Tasks/Resonances/omega2012Analysis.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PWGLF/Tasks/Resonances/omega2012Analysis.cxx b/PWGLF/Tasks/Resonances/omega2012Analysis.cxx index 2f9db446f51..a895ee771d6 100644 --- a/PWGLF/Tasks/Resonances/omega2012Analysis.cxx +++ b/PWGLF/Tasks/Resonances/omega2012Analysis.cxx @@ -50,7 +50,6 @@ struct Omega2012Analysis { static constexpr float kSmallNumber = 1e-10f; // Small number to avoid division by zero static constexpr float kMaxDCAV0ToPV = 1.0f; // Maximum DCA of V0 to PV static constexpr int kNumExpectedDaughters = 2; // Expected number of daughters for 2-body decay - static constexpr int kPlaceholderPdgCode = 3335; SliceCache cache; Preslice perResoCollisionCasc = aod::resodaughter::resoCollisionId; Preslice perResoCollisionV0 = aod::resodaughter::resoCollisionId; @@ -968,11 +967,10 @@ struct Omega2012Analysis { // This resonance decays to Xi + K0s for (const auto& mcParticle : mcParticles) { - // Look for Omega(2012) - PDG code may vary by generator + // Look for Omega(2012) int pdg = mcParticle.pdgCode(); - // TODO: Update the PDG code library to include Omega(2012) codes - if (std::abs(pdg) != kPlaceholderPdgCode) + if (std::abs(pdg) != o2::constants::physics::Pdg::kOmega2012Minus) continue; // Fill generated level histograms