ATLAS Offline Software
Loading...
Searching...
No Matches
HGTD_DetectorElementCollection.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6// HGTD_DetectorElementCollection.h
8// (c) ATLAS Detector software
10
11#ifndef HGTD_READOUTGEOMETRY_HGTD_DETECTORELEMENTCOLLECTION_H
12#define HGTD_READOUTGEOMETRY_HGTD_DETECTORELEMENTCOLLECTION_H
13
16
17class IdentifierHash;
18
19namespace InDetDD {
21
22namespace HGTDDetEl {
23
24inline
27 const unsigned int value{hash.value()};
28 if (coll.size() <= value){
29 return nullptr;
30 }
31 return coll.at(value);
32}
33} // namespace HGTDDetEl
34} // namespace InDetDD
37#include "AthenaKernel/CondCont.h"
39
40#endif // HGTD_READOUTGEOMETRY_HGTD_DETECTORELEMENTCOLLECTION_H
#define CONDCONT_MIXED_DEF(...)
Definition CondCont.h:1446
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
Derived DataVector<T>.
Definition DataVector.h:795
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.
This is a "hash" representation of an Identifier.
Class to hold geometrical description of an HGTD detector element.
const HGTD_DetectorElement * getDetectorElement(const IdentifierHash &hash, const HGTD_DetectorElementCollection &coll)
Message Stream Member.
DataVector< HGTD_DetectorElement > HGTD_DetectorElementCollection