In this MR in the HforTool sources, the old loops were replaced with the C++11 versions
to avoid explicit declarations of GenParticle* and similar types which will be
replaced later with HepMC3 version GenParticlePtr aka std::shared_ptr<HepMC3::Genpartricle>.