19 while (m_particleMap.begin() != m_particleMap.end())
21 delete m_particleMap.begin()->second;
22 m_particleMap.erase(m_particleMap.begin());
30 os <<
"Number of PIDParticles: " << size() << endl;
31 for (iter = m_particleMap.begin(); iter != m_particleMap.end(); ++iter)
33 os <<
"PIDParticles ID " << iter->first <<
": ";
43 if (m_particleMap.find(key) != m_particleMap.end())
45 cout <<
"hit with id " << key <<
" exists already" << endl;
46 return m_particleMap.find(key);
48 return m_particleMap.insert(std::make_pair(key, newhit)).first;
53 return std::make_pair(m_particleMap.begin(), m_particleMap.end());
59 if (it == m_particleMap.end())
62 it = m_particleMap.find(key);
72 if (it != m_particleMap.end())