21 std::map<TrkrDefs::hitsetkey, Map> empty_map;
22 m_map.swap(empty_map);
27 std::multimap<TrkrDefs::cluskey, TrkrDefs::hitkey>::const_iterator iter;
28 os <<
"-----TrkrClusterHitAssocv3-----" << std::endl;
29 os <<
"Number of associations: " <<
size() << std::endl;
30 for (
const auto& map_pair :
m_map)
32 for (
const auto& pair : map_pair.second)
34 os <<
"clus key " << pair.first << std::dec
36 <<
" hit key: " << pair.second << std::endl;
39 os <<
"------------------------------" << std::endl;
54 clusterMap.insert(std::make_pair(ckey, hidx));
71 const auto iter =
m_map.find(hitsetkey);
72 if (iter !=
m_map.end())
74 return std::make_pair(iter->second.lower_bound(ckey), iter->second.upper_bound(ckey));
78 return std::make_pair(dummy_map.cbegin(), dummy_map.cend());
85 unsigned int size = 0;
86 for (
const auto& map_pair :
m_map)
88 size += map_pair.second.size();