Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TrkrClusterIterationMapv1.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrkrClusterIterationMapv1.cc
1
8
#include "
TrkrClusterIterationMapv1.h
"
9
10
#include <ostream>
// for operator<<, endl, basic_ostream, ostream, basic_o...
11
12
void
TrkrClusterIterationMapv1::Reset
()
13
{
14
m_map
.clear();
15
}
16
17
void
TrkrClusterIterationMapv1::identify
(std::ostream&
os
)
const
18
{
19
os <<
"-----TrkrClusterIterationMapv1-----"
<< 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
<<
" iteration: "
<<
entry
.second << std::endl;
27
}
28
29
os <<
"------------------------------"
<< std::endl;
30
31
return
;
32
}
33
34
void
TrkrClusterIterationMapv1::addIteration
(
TrkrDefs::cluskey
ckey,
short
int
iter)
35
{
36
m_map
.insert(std::make_pair(ckey, iter));
37
}
38
39
short
int
TrkrClusterIterationMapv1::getIteration
(
TrkrDefs::cluskey
ckey)
40
{
41
Map::iterator iter =
m_map
.find(ckey);
42
if
(iter !=
m_map
.end())
43
{
44
return
(*iter).second;
45
}
46
else
47
{
48
return
std::numeric_limits<short int>::max();
49
}
50
}
51
52
unsigned
int
TrkrClusterIterationMapv1::size
()
const
{
return
m_map
.size(); }
coresoftware
blob
master
offline
packages
trackbase
TrkrClusterIterationMapv1.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:09
using
1.8.2 with
sPHENIX GitHub integration