13 #include <KFParticle.h>
30 iter != kfparticlemap.
end();
33 KFParticle*
particle =
dynamic_cast<KFParticle*
>(iter->second->Clone());
42 iter != kfparticlemap.
end();
45 KFParticle*
particle =
dynamic_cast<KFParticle*
>(iter->second->Clone());
70 os <<
"KFParticle_Container: size = " <<
m_kfpmap.size() << std::endl;
77 if (iter ==
m_kfpmap.end())
return nullptr;
84 if (iter ==
m_kfpmap.end())
return nullptr;
90 unsigned int index = 0;
92 m_kfpmap.insert(std::make_pair(index, dynamic_cast<KFParticle*>(particle->Clone())));
106 auto ret =
m_kfpmap.insert(std::make_pair(
id, particle));
109 std::cout <<
"KFParticle_Container::AddParticleSpecifyKey: duplicate id: " <<
id <<
" exiting now" << std::endl;
121 Map requiredParticles;
124 if (iter->second->GetPDG() == PDGid)
125 requiredParticles.insert(std::make_pair(iter->first, iter->second));
127 return requiredParticles;