ATLAS Offline Software
TRT_DetElementCollection.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
10  unsigned int value{hash.value()};
11  if (this->size()<=value) return nullptr;
12  return (*this)[value];
13 }
TRT_DetElementCollection.h
athena.value
value
Definition: athena.py:124
IdentifierHash.h
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:108
InDetDD::TRT_DetElementCollection::getDetectorElement
const TRT_BaseElement * getDetectorElement(const IdentifierHash &hash) const
Definition: TRT_DetElementCollection.cxx:9
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
DataVector< TRT_BaseElement >::size
size_type size() const noexcept
Returns the number of elements in the collection.
InDetDD::TRT_BaseElement
Definition: TRT_BaseElement.h:52