Skip to content

Commit fcc840e

Browse files
committed
Use constexpr for const arrays
1 parent d6b4b86 commit fcc840e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PWGHF/Utils/utilsMcMatching.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ static const std::unordered_map<DecayChannelMain, const std::vector<int>> daught
160160
{DecayChannelMain::CDeuteronToDeKPi, {+o2::constants::physics::Pdg::kDeuteron, +PDG_t::kKMinus, +PDG_t::kPiPlus}}};
161161

162162
/// resonances in c-deuteron decay are not stored in the particle stack for c-deuteron, but tagged with specific status codes
163-
static const std::array<int, 2> statusCodeCDeuteronToDeKstar0{-85, -95};
164-
static const std::array<int, 2> statusCodeCDeuteronToNeDeltaplusK{-86, -96};
165-
static const std::array<int, 2> statusCodeCDeuteronToNeL1520Pi{-87, -97};
163+
static constexpr std::array<int, 2> statusCodeCDeuteronToDeKstar0{-85, -95};
164+
static constexpr std::array<int, 2> statusCodeCDeuteronToNeDeltaplusK{-86, -96};
165+
static constexpr std::array<int, 2> statusCodeCDeuteronToNeL1520Pi{-87, -97};
166166

167167
/// Returns a map of the possible final states for a specific 3-prong particle specie
168168
/// \param pdgMother PDG code of the mother particle

0 commit comments

Comments
 (0)