ATLAS Offline Software
InnerDetector
InDetDetDescr
InDetReadoutGeometry
src
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
5
#include "
InDetReadoutGeometry/SiDetectorElementCollection.h
"
6
#include "
Identifier/IdentifierHash.h
"
7
8
const
InDetDD::SiDetectorElement
*
9
InDetDD::SiDetectorElementCollection::getDetectorElement
(
const
IdentifierHash
&
hash
)
const
{
10
const
unsigned
int
value
{
hash
.value()};
11
if
(this->
size
()<=
value
)
return
nullptr
;
12
return
this->
at
(
value
);
13
}
athena.value
value
Definition:
athena.py:124
IdentifierHash.h
InDetDD::SiDetectorElement
Definition:
SiDetectorElement.h:109
SiDetectorElementCollection.h
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition:
CaloCondBlobAlgs_fillNoiseFromASCII.py:108
DataVector< SiDetectorElement >::at
const SiDetectorElement * at(size_type n) const
Access an element, as an rvalue.
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< SiDetectorElement >::size
size_type size() const noexcept
Returns the number of elements in the collection.
InDetDD::SiDetectorElementCollection::getDetectorElement
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const
Definition:
SiDetectorElementCollection.cxx:9
Generated on Mon Oct 27 2025 21:18:31 for ATLAS Offline Software by
1.8.18