ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
8
#include "
TrkrClusterHitAssocv1.h
"
9
10
#include <ostream>
// for operator<<, endl, basic_ostream, ostream, basic_o...
11
12
void
13
TrkrClusterHitAssocv1::Reset
()
14
{
15
m_map
.clear();
16
}
17
18
void
19
TrkrClusterHitAssocv1::identify
(std::ostream &os)
const
20
{
21
os <<
"-----TrkrClusterHitAssocv1-----"
<< std::endl;
22
os <<
"Number of associations: "
<<
m_map
.size() << std::endl;
23
24
for
(
auto
& entry :
m_map
)
25
{
26
// os << " cluster key: 0x" << std::hex << entry.first << std::dec
27
os <<
" cluster key: "
<< entry.first << std::dec
28
<<
" hit key: "
<< entry.second << std::endl;
29
}
30
31
os <<
"------------------------------"
<< std::endl;
32
33
return
;
34
35
}
36
37
void
38
TrkrClusterHitAssocv1::addAssoc
(
TrkrDefs::cluskey
ckey,
unsigned
int
hidx)
39
{
40
m_map
.insert(std::make_pair(ckey, hidx));
41
}
42
43
TrkrClusterHitAssocv1::ConstRange
44
TrkrClusterHitAssocv1::getHits
(
TrkrDefs::cluskey
ckey)
45
{
return
std::make_pair(
m_map
.lower_bound(ckey),
m_map
.upper_bound(ckey) ); }
coresoftware
blob
master
offline
packages
trackbase
TrkrClusterHitAssocv1.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:37
using
1.8.2 with
ECCE GitHub integration