Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrClusterHitAssocv1.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrkrClusterHitAssocv1.cc
1 
9 
10 #include <ostream> // for operator<<, endl, basic_ostream, ostream, basic_o...
11 
13 {
14  m_map.clear();
15 }
16 
17 void TrkrClusterHitAssocv1::identify(std::ostream& os) const
18 {
19  os << "-----TrkrClusterHitAssocv1-----" << std::endl;
20  os << "Number of associations: " << m_map.size() << std::endl;
21 
22  for (auto& entry : m_map)
23  {
24  // os << " cluster key: 0x" << std::hex << entry.first << std::dec
25  os << " cluster key: " << entry.first << std::dec
26  << " hit key: " << entry.second << std::endl;
27  }
28 
29  os << "------------------------------" << std::endl;
30 
31  return;
32 }
33 
35 {
36  m_map.insert(std::make_pair(ckey, hidx));
37 }
38 
41 {
42  return std::make_pair(m_map.lower_bound(ckey), m_map.upper_bound(ckey));
43 }