From 8ca0b7f2dede966bb0b80db3b038158c1f043484 Mon Sep 17 00:00:00 2001 From: Fabrizio Grosa Date: Tue, 30 Jun 2026 09:06:43 +0200 Subject: [PATCH] Adapt status code checks for c-deuteron resonant decays --- PWGHF/Utils/utilsMcMatching.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PWGHF/Utils/utilsMcMatching.h b/PWGHF/Utils/utilsMcMatching.h index 03e863e859b..a5de35c6200 100644 --- a/PWGHF/Utils/utilsMcMatching.h +++ b/PWGHF/Utils/utilsMcMatching.h @@ -160,9 +160,9 @@ static const std::unordered_map> daught {DecayChannelMain::CDeuteronToDeKPi, {+o2::constants::physics::Pdg::kDeuteron, +PDG_t::kKMinus, +PDG_t::kPiPlus}}}; /// resonances in c-deuteron decay are not stored in the particle stack for c-deuteron, but tagged with specific status codes -static constexpr int StatusCodeCDeuteronToDeKstar0{95}; -static constexpr int StatusCodeCDeuteronToNeDeltaplusK{96}; -static constexpr int StatusCodeCDeuteronToNeL1520Pi{97}; +static const std::array StatusCodeCDeuteronToDeKstar0{-85, -95}; +static const std::array StatusCodeCDeuteronToNeDeltaplusK{-86, -96}; +static const std::array StatusCodeCDeuteronToNeL1520Pi{-87, -97}; /// Returns a map of the possible final states for a specific 3-prong particle specie /// \param pdgMother PDG code of the mother particle @@ -339,13 +339,13 @@ template inline int getResonantDecayCDeuteron(Part const& particle) { auto statusCode = std::abs(particle.getGenStatusCode()); - if (statusCode == o2::hf_decay::hf_cand_3prong::StatusCodeCDeuteronToDeKstar0) { + if (statusCode == o2::hf_decay::hf_cand_3prong::StatusCodeCDeuteronToDeKstar0[0] || statusCode == o2::hf_decay::hf_cand_3prong::StatusCodeCDeuteronToDeKstar0[1]) { return o2::hf_decay::hf_cand_3prong::DecayChannelResonant::CDeuteronToDeKstar0; } - if (statusCode == o2::hf_decay::hf_cand_3prong::StatusCodeCDeuteronToNeDeltaplusK) { + if (statusCode == o2::hf_decay::hf_cand_3prong::StatusCodeCDeuteronToNeDeltaplusK[0] || statusCode == o2::hf_decay::hf_cand_3prong::StatusCodeCDeuteronToNeDeltaplusK[1]) { return o2::hf_decay::hf_cand_3prong::DecayChannelResonant::CDeuteronToNeDeltaplusK; } - if (statusCode == o2::hf_decay::hf_cand_3prong::StatusCodeCDeuteronToNeL1520Pi) { + if (statusCode == o2::hf_decay::hf_cand_3prong::StatusCodeCDeuteronToNeL1520Pi[0] || statusCode == o2::hf_decay::hf_cand_3prong::StatusCodeCDeuteronToNeL1520Pi[1]) { return o2::hf_decay::hf_cand_3prong::DecayChannelResonant::CDeuteronToNeL1520Pi; } return 0;