ATLAS Offline Software
SiDetectorElementCollection.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
9 
11  for (InDetDD::SiDetectorElement* ele: *this) delete ele;
12 }
13 
16  const unsigned int value{hash.value()};
17  if (this->size()<=value) return nullptr;
18  return this->at(value);
19 }
athena.value
value
Definition: athena.py:124
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
IdentifierHash.h
InDetDD::SiDetectorElement
Definition: SiDetectorElement.h:109
SiDetectorElementCollection.h
SiDetectorElement.h
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
InDetDD::SiDetectorElementCollection::~SiDetectorElementCollection
~SiDetectorElementCollection()
Definition: SiDetectorElementCollection.cxx:10
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
InDetDD::SiDetectorElementCollection::getDetectorElement
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const
Definition: SiDetectorElementCollection.cxx:15