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
7
#include "
InDetReadoutGeometry/SiDetectorElement.h
"
8
#include "
Identifier/IdentifierHash.h
"
9
10
InDetDD::SiDetectorElementCollection::~SiDetectorElementCollection
() {
11
for
(
InDetDD::SiDetectorElement
* ele: *
this
)
delete
ele;
12
}
13
14
const
InDetDD::SiDetectorElement
*
15
InDetDD::SiDetectorElementCollection::getDetectorElement
(
const
IdentifierHash
&
hash
)
const
{
16
const
unsigned
int
value
{
hash
.value()};
17
if
(this->
size
()<=
value
)
return
nullptr
;
18
return
this->at(
value
);
19
}
athena.value
value
Definition:
athena.py:124
python.setupRTTAlg.size
int size
Definition:
setupRTTAlg.py:39
IdentifierHash.h
InDetDD::SiDetectorElement
Definition:
SiDetectorElement.h:109
SiDetectorElementCollection.h
SiDetectorElement.h
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition:
CaloCondBlobAlgs_fillNoiseFromASCII.py:109
InDetDD::SiDetectorElementCollection::~SiDetectorElementCollection
~SiDetectorElementCollection()
Definition:
SiDetectorElementCollection.cxx:10
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::SiDetectorElementCollection::getDetectorElement
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const
Definition:
SiDetectorElementCollection.cxx:15
Generated on Thu Nov 7 2024 21:26:01 for ATLAS Offline Software by
1.8.18