diff --git a/PWGHF/HFL/Tasks/taskSingleElectron.cxx b/PWGHF/HFL/Tasks/taskSingleElectron.cxx index 9697c76dbd1..1e6161fd012 100644 --- a/PWGHF/HFL/Tasks/taskSingleElectron.cxx +++ b/PWGHF/HFL/Tasks/taskSingleElectron.cxx @@ -320,22 +320,21 @@ struct HfTaskSingleElectron { if (mctrack.size()) { auto const& grmothersIdsVec = mctrack.front().mothersIds(); if (grmothersIdsVec.empty()) { - static const std::map PdgToSource = { - {kPi0, Pi0}, - {kEta, Eta}, - {kOmega, Omega}, - {kPhi, Phi}, - {kEtaPrime, EtaPrime}, - {kRho770_0, Rho0}, - {kKPlus, Ke3}, - {kK0Long, K0l} - }; - - auto it = PdgToSource.find(motherPdg); - if (it != PdgToSource.end()) { - return it->second; - } - return Else; + static const std::map PdgToSource = { + {kPi0, Pi0}, + {kEta, Eta}, + {kOmega, Omega}, + {kPhi, Phi}, + {kEtaPrime, EtaPrime}, + {kRho770_0, Rho0}, + {kKPlus, Ke3}, + {kK0Long, K0l}}; + + auto it = PdgToSource.find(motherPdg); + if (it != PdgToSource.end()) { + return it->second; + } + return Else; } else { if (motherPdg == kPi0) {