24 for(
const auto& pair:map_pair.second )
25 {
delete pair.second; }
34 os <<
"-----TrkrClusterContainerv3-----" << std::endl;
35 os <<
"Number of clusters: " <<
size() << std::endl;
41 std::cout <<
"layer: " << layer <<
" hitsetkey: " << map_pair.first << std::endl;
43 for(
const auto& pair:map_pair.second )
46 os <<
"clus key " << pair.first <<
" layer " << layer << std::endl;
51 os <<
"------------------------------" << std::endl;
62 if( iter !=
m_clusmap.end() ) iter->second.erase( key );
83 const auto ret = map.insert(std::make_pair(key, newclus));
86 std::cout <<
"TrkrClusterContainerv3::AddClusterSpecifyKey: duplicate key: " << key <<
" exiting now" << std::endl;
89 ret.first->second->setClusKey( key );
99 const auto iter =
m_clusmap.find(hitsetkey);
102 return std::make_pair( iter->second.cbegin(), iter->second.cend() );
104 return std::make_pair( dummy_map.cbegin(), dummy_map.cend() );
122 auto it = map.lower_bound(key);
123 if(
it == map.end() || (key<
it->first) )
127 it->second->setClusKey( key );
140 const auto map_iter =
m_clusmap.find(hitsetkey);
143 const auto clus_iter = map_iter->second.find( key );
144 if( clus_iter != map_iter->second.end() )
146 return clus_iter->second;
158 unsigned int size = 0;
160 { size += map_pair.second.size(); }