ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
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
This is a "hash" representation of an Identifier.
Class to hold geometrical description of a silicon detector element.
std::map< const IdentifierHash, const InDetDD::SiDetectorElement * > m_detElementMap
void addEntry(const IdentifierHash, const InDetDD::SiDetectorElement *)
const InDetDD::SiDetectorElement * readEntry(const IdentifierHash) const