ATLAS Offline Software
InnerDetector
InDetDetDescr
InDetReadoutGeometry
src
SiDetectorElementMap.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#include "
InDetReadoutGeometry/SiDetectorElementMap.h
"
7
8
9
SiDetectorElementMap::SiDetectorElementMap
()
10
{
11
m_detElementMap
.clear();
12
}
13
14
SiDetectorElementMap::~SiDetectorElementMap
()
15
{
16
m_detElementMap
.clear();
17
}
18
19
void
SiDetectorElementMap::addEntry
(
const
IdentifierHash
hashId,
const
InDetDD::SiDetectorElement
* elt)
20
{
21
m_detElementMap
.insert( std::pair<const IdentifierHash , const InDetDD::SiDetectorElement*>(hashId, elt) );
22
}
23
24
const
InDetDD::SiDetectorElement
*
SiDetectorElementMap::readEntry
(
const
IdentifierHash
hashId)
const
25
{
26
for
(
auto
it
:
m_detElementMap
) {
27
if
(
it
.first==hashId)
return
it
.second;
28
}
29
return
nullptr
;
30
}
31
SiDetectorElementMap::m_detElementMap
std::map< const IdentifierHash, const InDetDD::SiDetectorElement * > m_detElementMap
Definition:
SiDetectorElementMap.h:23
skel.it
it
Definition:
skel.GENtoEVGEN.py:396
SiDetectorElementMap.h
InDetDD::SiDetectorElement
Definition:
SiDetectorElement.h:109
SiDetectorElementMap::SiDetectorElementMap
SiDetectorElementMap()
Definition:
SiDetectorElementMap.cxx:9
SiDetectorElementMap::addEntry
void addEntry(const IdentifierHash, const InDetDD::SiDetectorElement *)
Definition:
SiDetectorElementMap.cxx:19
SiDetectorElementMap::readEntry
const InDetDD::SiDetectorElement * readEntry(const IdentifierHash) const
Definition:
SiDetectorElementMap.cxx:24
SiDetectorElementMap::~SiDetectorElementMap
~SiDetectorElementMap()
Definition:
SiDetectorElementMap.cxx:14
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition:
IdentifierHash.h:25
Generated on Sun Dec 22 2024 21:18:07 for ATLAS Offline Software by
1.8.18