ATLAS Offline Software
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
7
#include "
TRT_ReadoutGeometry/TRT_BaseElement.h
"
8
#include "
Identifier/IdentifierHash.h
"
9
10
const
InDetDD::TRT_BaseElement
*
11
InDetDD::TRT_DetElementCollection::getDetectorElement
(
const
IdentifierHash
&
hash
)
const
{
12
unsigned
int
value
{
hash
.value()};
13
if
(this->
size
()<=
value
)
return
nullptr
;
14
return
(*
this
)[
value
];
15
}
TRT_DetElementCollection.h
athena.value
value
Definition:
athena.py:124
python.setupRTTAlg.size
int size
Definition:
setupRTTAlg.py:39
TRT_BaseElement.h
IdentifierHash.h
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition:
CaloCondBlobAlgs_fillNoiseFromASCII.py:109
InDetDD::TRT_DetElementCollection::getDetectorElement
const TRT_BaseElement * getDetectorElement(const IdentifierHash &hash) const
Definition:
TRT_DetElementCollection.cxx:11
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::TRT_BaseElement
Definition:
TRT_BaseElement.h:57
Generated on Sun Dec 22 2024 21:21:33 for ATLAS Offline Software by
1.8.18