ATLAS Offline Software
Loading...
Searching...
No Matches
InDetDD::HGTDDetEl Namespace Reference

Functions

const HGTD_DetectorElementgetDetectorElement (const IdentifierHash &hash, const HGTD_DetectorElementCollection &coll)

Function Documentation

◆ getDetectorElement()

const HGTD_DetectorElement * InDetDD::HGTDDetEl::getDetectorElement ( const IdentifierHash & hash,
const HGTD_DetectorElementCollection & coll )
inline

Definition at line 25 of file HGTD_DetectorElementCollection.h.

26 {
27 const unsigned int value{hash.value()};
28 if (coll.size() <= value){
29 return nullptr;
30 }
31 return coll.at(value);
32}
const T * at(size_type n) const
Access an element, as an rvalue.
size_type size() const noexcept
Returns the number of elements in the collection.