ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
InDetDD::SiDetectorElementCollection Class Reference

#include <SiDetectorElementCollection.h>

Inheritance diagram for InDetDD::SiDetectorElementCollection:
Collaboration diagram for InDetDD::SiDetectorElementCollection:

Public Member Functions

 ~SiDetectorElementCollection ()
 
const SiDetectorElementgetDetectorElement (const IdentifierHash &hash) const
 

Public Attributes

elements
 STL member. More...
 

Detailed Description

Class to hold the SiDetectorElement objects to be put in the detector store

Author
Grant Gorfine

Definition at line 30 of file SiDetectorElementCollection.h.

Constructor & Destructor Documentation

◆ ~SiDetectorElementCollection()

InDetDD::SiDetectorElementCollection::~SiDetectorElementCollection ( )

Definition at line 10 of file SiDetectorElementCollection.cxx.

10  {
11  for (InDetDD::SiDetectorElement* ele: *this) delete ele;
12 }

Member Function Documentation

◆ getDetectorElement()

const InDetDD::SiDetectorElement * InDetDD::SiDetectorElementCollection::getDetectorElement ( const IdentifierHash hash) const

Definition at line 15 of file SiDetectorElementCollection.cxx.

15  {
16  const unsigned int value{hash.value()};
17  if (this->size()<=value) return nullptr;
18  return this->at(value);
19 }

Member Data Documentation

◆ elements

T std::vector< T >::elements
inherited

STL member.


The documentation for this class was generated from the following files:
athena.value
value
Definition: athena.py:124
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
InDetDD::SiDetectorElement
Definition: SiDetectorElement.h:109
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109