ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
}
IdentifierHash.h
SiDetectorElementCollection.h
DataVector< SiDetectorElement >::at
const SiDetectorElement * at(size_type n) const
DataVector< SiDetectorElement >::size
size_type size() const noexcept
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
InDetDD::SiDetectorElementCollection::getDetectorElement
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const
Definition
SiDetectorElementCollection.cxx:9
InDetDD::SiDetectorElement
Class to hold geometrical description of a silicon detector element.
Definition
SiDetectorElement.h:109
Generated on
for ATLAS Offline Software by
1.17.0