ATLAS Offline Software
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 
7 
8 
10 {
11  m_detElementMap.clear();
12 }
13 
15 {
16  m_detElementMap.clear();
17 }
18 
20 {
21  m_detElementMap.insert( std::pair<const IdentifierHash , const InDetDD::SiDetectorElement*>(hashId, elt) );
22 }
23 
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