ATLAS Offline Software
InnerDetector
InDetDetDescr
InDetGeoModelUtils
src
PairIndexMap.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
InDetGeoModelUtils/PairIndexMap.h
"
6
7
namespace
InDetDD
{
8
void
9
PairIndexMap::add
(
int
first
,
int
second
,
int
value
) {
10
m_map
[std::make_pair(
first
,
second
)] =
value
;
11
}
12
13
int
14
PairIndexMap::find
(
int
first
,
int
second
)
const
{
15
MapType::const_iterator iter =
m_map
.find(std::make_pair(
first
,
second
));
16
if
(iter ==
m_map
.end())
return
-1;
17
18
return
iter->second;
19
}
20
}
python.SystemOfUnits.second
int second
Definition:
SystemOfUnits.py:120
athena.value
value
Definition:
athena.py:124
PairIndexMap.h
InDetDD::PairIndexMap::find
int find(int first, int second) const
Definition:
PairIndexMap.cxx:14
InDetDD
Message Stream Member.
Definition:
FakeTrackBuilder.h:8
DeMoScan.first
bool first
Definition:
DeMoScan.py:536
InDetDD::PairIndexMap::m_map
MapType m_map
Definition:
PairIndexMap.h:24
InDetDD::PairIndexMap::add
void add(int first, int second, int value)
Definition:
PairIndexMap.cxx:9
Generated on Thu Nov 7 2024 21:23:14 for ATLAS Offline Software by
1.8.18