ATLAS Offline Software
Loading...
Searching...
No Matches
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
}
PairIndexMap.h
InDetDD::PairIndexMap::find
int find(int first, int second) const
Definition
PairIndexMap.cxx:14
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
InDetDD
Message Stream Member.
Definition
FakeTrackBuilder.h:8
Generated on
for ATLAS Offline Software by
1.14.0