ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SiDetectorElementMap Class Reference

#include <SiDetectorElementMap.h>

Collaboration diagram for SiDetectorElementMap:

Public Member Functions

 SiDetectorElementMap ()
 
 ~SiDetectorElementMap ()
 
void addEntry (const IdentifierHash, const InDetDD::SiDetectorElement *)
 
const InDetDD::SiDetectorElementreadEntry (const IdentifierHash) const
 

Private Attributes

std::map< const IdentifierHash, const InDetDD::SiDetectorElement * > m_detElementMap
 

Detailed Description

Definition at line 14 of file SiDetectorElementMap.h.

Constructor & Destructor Documentation

◆ SiDetectorElementMap()

SiDetectorElementMap::SiDetectorElementMap ( )

Definition at line 9 of file SiDetectorElementMap.cxx.

10 {
11  m_detElementMap.clear();
12 }

◆ ~SiDetectorElementMap()

SiDetectorElementMap::~SiDetectorElementMap ( )

Definition at line 14 of file SiDetectorElementMap.cxx.

15 {
16  m_detElementMap.clear();
17 }

Member Function Documentation

◆ addEntry()

void SiDetectorElementMap::addEntry ( const IdentifierHash  hashId,
const InDetDD::SiDetectorElement elt 
)

Definition at line 19 of file SiDetectorElementMap.cxx.

20 {
21  m_detElementMap.insert( std::pair<const IdentifierHash , const InDetDD::SiDetectorElement*>(hashId, elt) );
22 }

◆ readEntry()

const InDetDD::SiDetectorElement * SiDetectorElementMap::readEntry ( const IdentifierHash  hashId) const

Definition at line 24 of file SiDetectorElementMap.cxx.

25 {
26  for (auto it : m_detElementMap) {
27  if(it.first==hashId) return it.second;
28  }
29  return nullptr;
30 }

Member Data Documentation

◆ m_detElementMap

std::map<const IdentifierHash , const InDetDD::SiDetectorElement* > SiDetectorElementMap::m_detElementMap
private

Definition at line 23 of file SiDetectorElementMap.h.


The documentation for this class was generated from the following files:
SiDetectorElementMap::m_detElementMap
std::map< const IdentifierHash, const InDetDD::SiDetectorElement * > m_detElementMap
Definition: SiDetectorElementMap.h:23
skel.it
it
Definition: skel.GENtoEVGEN.py:396