22 for(
unsigned int phi_segment = 0;phi_segment <
max_phisegment;phi_segment++)
23 for(
unsigned int z_segment = 0; z_segment <
max_zsegment; z_segment++)
24 {
m_map[
layer][phi_segment][z_segment].clear(); }
30 std::multimap<TrkrDefs::cluskey, TrkrDefs::hitkey>::const_iterator iter;
31 os <<
"-----TrkrClusterHitAssocv2-----" << std::endl;
32 os <<
"Number of associations: " <<
size() << std::endl;
34 for(
unsigned int phi_segment = 0;phi_segment <
max_phisegment;phi_segment++)
35 for(
unsigned int z_segment = 0; z_segment <
max_zsegment; z_segment++)
37 for(
const auto& pair:
m_map[
layer][phi_segment][z_segment] )
40 os <<
"clus key " << pair.first << std::dec
42 <<
" hit key: " << pair.second << std::endl;
45 os <<
"------------------------------" << std::endl;
61 m_map[
layer][sector][side].insert(std::make_pair(ckey, hidx));
64 <<
"TrkrClusterHitAssocv2::addAssoc - out of range access."
65 <<
" layer: " << layer
66 <<
" sector: " << sector
85 <<
"TrkrClusterHitAssocv2::getClusterMap - out of range access."
86 <<
" layer: " << layer
87 <<
" sector: " << sector
104 return std::make_pair(
m_map[layer][sector][side].lower_bound(ckey),
m_map[layer][sector][side].upper_bound(ckey) );
107 <<
"TrkrClusterHitAssocv2::getHits - out of range access."
108 <<
" layer: " << layer
109 <<
" sector: " << sector
112 return std::make_pair(dummy_map.cbegin(), dummy_map.cend() );
119 unsigned int size = 0;
121 for(
unsigned phi_segment = 0;phi_segment <
max_phisegment;phi_segment++)
122 for(
unsigned z_segment = 0; z_segment <
max_zsegment; z_segment++)
123 { size +=
m_map[
layer][phi_segment][z_segment].size(); }