23 for(
unsigned int phi_segment = 0;phi_segment <
max_phisegment;phi_segment++)
24 for(
unsigned int z_segment = 0; z_segment <
max_zsegment; z_segment++)
27 {
delete pair.second; }
36 os <<
"-----TrkrClusterContainerv2-----" << std::endl;
37 os <<
"Number of clusters: " <<
size() << std::endl;
40 for(
unsigned int phi_segment = 0;phi_segment <
max_phisegment;phi_segment++)
41 for(
unsigned int z_segment = 0; z_segment <
max_zsegment; z_segment++)
43 const auto iter =
m_clusmap[
layer][phi_segment][z_segment].begin();
47 std::cout <<
"layer: " <<
layer <<
" | " << flayer
48 <<
" phi_seg: " << phi_segment <<
" | " << fsector
49 <<
" z_seg: " << z_segment <<
" | " << fside
56 os <<
"clus key " << pair.first <<
" layer " << layer << std::endl;
61 os <<
"------------------------------" << std::endl;
80 <<
"TrkrClusterContainerv2::removeCluster - out of range access."
81 <<
" layer: " << layer
82 <<
" sector: " << sector
110 auto ret =
m_clusmap[
layer][sector][side].insert(std::make_pair(key, newclus));
113 std::cout <<
"TrkrClusterContainerv2::AddClusterSpecifyKey: duplicate key: " << key <<
" exiting now" << std::endl;
116 ret.first->second->setClusKey( key );
123 <<
"TrkrClusterContainerv2::addClusterSpecifyKey - out of range access."
124 <<
" layer: " << layer
125 <<
" sector: " << sector
129 return dummy_map.begin();
146 return std::make_pair(
m_clusmap[layer][sector][side].cbegin(),
m_clusmap[layer][sector][side].cend() );
149 <<
"TrkrClusterContainerv2::getClusters - out of range access."
150 <<
" layer: " << layer
151 <<
" sector: " << sector
155 return std::make_pair( dummy_map.cbegin(), dummy_map.cend() );
173 <<
"TrkrClusterContainerv2::getClusterMap - out of range access."
174 <<
" layer: " << layer
175 <<
" sector: " << sector
195 if(
it ==
m_clusmap[layer][sector][side].end() || (key < it->first) )
199 it->second->setClusKey( key );
204 <<
"TrkrClusterContainerv2::findOrAddCluster - out of range access."
205 <<
" layer: " << layer
206 <<
" sector: " << sector
210 return dummy_map.begin();
236 <<
"TrkrClusterContainerv2::findOrAddCluster - out of range access."
237 <<
" layer: " << layer
238 <<
" sector: " << sector
248 unsigned int size = 0;
250 for(
unsigned phi_segment = 0;phi_segment <
max_phisegment;phi_segment++)
251 for(
unsigned z_segment = 0; z_segment <
max_zsegment; z_segment++)