24 for (
auto&& [
cluskey, cluster] : map)
32 std::map<TrkrDefs::hitsetkey, Map> empty;
33 m_clusmap.swap(empty);
39 os <<
"-----TrkrClusterContainerv3-----" << std::endl;
40 os <<
"Number of clusters: " <<
size() << std::endl;
45 os <<
"layer: " << layer <<
" hitsetkey: " <<
hitsetkey << std::endl;
46 for (
const auto& [
cluskey, cluster] : map)
53 os <<
"------------------------------" << std::endl;
68 iter->second.erase(key);
80 const auto [iter, success] = map.insert(std::make_pair(key, newclus));
83 std::cout <<
"TrkrClusterContainerv3::AddClusterSpecifyKey: duplicate key: " << key <<
" exiting now" << std::endl;
93 const auto iter =
m_clusmap.find(hitsetkey);
96 return std::make_pair(iter->second.cbegin(), iter->second.cend());
100 return std::make_pair(dummy_map.cbegin(), dummy_map.cend());
110 const auto map_iter =
m_clusmap.find(hitsetkey);
113 const auto clus_iter = map_iter->second.find(key);
114 if (clus_iter != map_iter->second.end())
116 return clus_iter->second;
136 [](
const std::pair<TrkrDefs::hitsetkey, Map>& pair)
137 {
return pair.first; });
156 begin,
end, std::back_inserter(out),
157 [](
const std::pair<TrkrDefs::hitsetkey, Map>& pair)
158 {
return pair.first; });
177 begin,
end, std::back_inserter(out),
178 [](
const std::pair<TrkrDefs::hitsetkey, Map>& pair)
179 {
return pair.first; });
186 unsigned int size = 0;
189 size += map_pair.second.size();