Skip to content

Commit 5139e4f

Browse files
committed
Mark functions in header as inline
1 parent 9d73810 commit 5139e4f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

PWGHF/Utils/utilsMcMatching.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@
1818

1919
#include "PWGHF/Core/DecayChannels.h"
2020

21-
// O2 includes
2221
#include <CommonConstants/PhysicsConstants.h>
2322
#include <Framework/Logger.h>
2423

25-
// ROOT includes
2624
#include <TPDGCode.h>
2725

28-
// C++ includes
2926
#include <array>
3027
#include <cstddef>
3128
#include <cstdint>
@@ -145,7 +142,7 @@ static const std::unordered_map<DecayChannelMain, const std::vector<int>> Daught
145142
/// Returns a map of the possible final states for a specific 3-prong particle specie
146143
/// \param pdgMother PDG code of the mother particle
147144
/// \return a map of final states with their corresponding PDG codes
148-
static const std::unordered_map<DecayChannelMain, const std::vector<int>> getDecayChannel3Prong(int pdgMother)
145+
inline std::unordered_map<DecayChannelMain, const std::vector<int>> getDecayChannel3Prong(int pdgMother)
149146
{
150147
switch (pdgMother) {
151148
case o2::constants::physics::Pdg::kDPlus:
@@ -167,7 +164,7 @@ static const std::unordered_map<DecayChannelMain, const std::vector<int>> getDec
167164
/// Returns a map of the resonant decay channels for a specific 3-prong particle specie
168165
/// \param pdgMother PDG code of the mother particle
169166
/// \return a map of resonant decay channels with their corresponding PDG codes
170-
std::unordered_map<DecayChannelResonant, const std::array<int, 2>> getResoChannels3Prong(int pdgMother)
167+
inline std::unordered_map<DecayChannelResonant, const std::array<int, 2>> getResoChannels3Prong(int pdgMother)
171168
{
172169
switch (pdgMother) {
173170
case o2::constants::physics::Pdg::kDPlus:
@@ -194,7 +191,7 @@ std::unordered_map<DecayChannelResonant, const std::array<int, 2>> getResoChanne
194191
/// \param arrPdgDaugs array of PDG codes for the resonant decay
195192
/// \return true if the resonant channel is matched, false otherwise
196193
template <std::size_t N>
197-
bool checkResonantDecay(std::array<int, N> const& arrPdgResoChn, std::array<int, N> arrPdgDaugs)
194+
inline bool checkResonantDecay(std::array<int, N> const& arrPdgResoChn, std::array<int, N> arrPdgDaugs)
198195
{
199196
for (std::size_t i = 0; i < N; i++) {
200197
bool findDaug = false;
@@ -220,7 +217,7 @@ bool checkResonantDecay(std::array<int, N> const& arrPdgResoChn, std::array<int,
220217
/// \param channel decay channel flag to be set
221218
/// \param arrDaughPdgs array of daughter PDG codes
222219
template <bool is3Prong = false, std::size_t N>
223-
void flagResonantDecay(int motherPdg, int8_t* channel, std::array<int, N> const& arrDaughPdgs)
220+
inline void flagResonantDecay(int motherPdg, int8_t* channel, std::array<int, N> const& arrDaughPdgs)
224221
{
225222
if constexpr (is3Prong) {
226223
std::unordered_map<o2::hf_decay::hf_cand_3prong::DecayChannelResonant, const std::array<int, 2>> resoStates = o2::hf_decay::hf_cand_3prong::getResoChannels3Prong(motherPdg);

0 commit comments

Comments
 (0)