ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
TRT_ReadoutGeometry
src
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
5
#include "
TRT_ReadoutGeometry/TRT_DetElementCollection.h
"
6
#include "
Identifier/IdentifierHash.h
"
7
8
const
InDetDD::TRT_BaseElement
*
9
InDetDD::TRT_DetElementCollection::getDetectorElement
(
const
IdentifierHash
& hash)
const
{
10
unsigned
int
value{hash.value()};
11
if
(this->
size
()<=value)
return
nullptr
;
12
return
(*
this
)[value];
13
}
IdentifierHash.h
TRT_DetElementCollection.h
DataVector< TRT_BaseElement >::size
size_type size() const noexcept
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
InDetDD::TRT_BaseElement
Virtual base class of TRT readout elements.
Definition
TRT_BaseElement.h:56
InDetDD::TRT_DetElementCollection::getDetectorElement
const TRT_BaseElement * getDetectorElement(const IdentifierHash &hash) const
Definition
TRT_DetElementCollection.cxx:9
Generated on
for ATLAS Offline Software by
1.17.0