ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
HighGranularityTimingDetector
HGTD_DetDescr
HGTD_ReadoutGeometry
HGTD_ReadoutGeometry
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
14
#include "
AthContainers/DataVector.h
"
15
#include "
HGTD_ReadoutGeometry/HGTD_DetectorElement.h
"
16
17
class
IdentifierHash
;
18
19
namespace
InDetDD
{
20
using
HGTD_DetectorElementCollection
=
DataVector<HGTD_DetectorElement>
;
21
22
namespace
HGTDDetEl
{
23
24
inline
25
const
HGTD_DetectorElement
*
getDetectorElement
(
const
IdentifierHash
& hash,
26
const
HGTD_DetectorElementCollection
& coll) {
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
35
#include "
AthenaKernel/CLASS_DEF.h
"
36
CLASS_DEF
(
InDetDD::HGTD_DetectorElementCollection
, 1266958207, 1)
37
#include "AthenaKernel/CondCont.h"
38
CONDCONT_MIXED_DEF
(
InDetDD::HGTD_DetectorElementCollection
, 1258619755);
39
40
#endif
// HGTD_READOUTGEOMETRY_HGTD_DETECTORELEMENTCOLLECTION_H
CONDCONT_MIXED_DEF
#define CONDCONT_MIXED_DEF(...)
Definition
CondCont.h:1446
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
HGTD_DetectorElement.h
DataVector
Derived DataVector<T>.
Definition
DataVector.h:795
DataVector::at
const T * at(size_type n) const
Access an element, as an rvalue.
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
InDetDD::HGTD_DetectorElement
Class to hold geometrical description of an HGTD detector element.
Definition
HGTD_DetectorElement.h:40
InDetDD::HGTDDetEl
Definition
HGTD_DetectorElementCollection.h:22
InDetDD::HGTDDetEl::getDetectorElement
const HGTD_DetectorElement * getDetectorElement(const IdentifierHash &hash, const HGTD_DetectorElementCollection &coll)
Definition
HGTD_DetectorElementCollection.h:25
InDetDD
Message Stream Member.
Definition
FakeTrackBuilder.h:8
InDetDD::HGTD_DetectorElementCollection
DataVector< HGTD_DetectorElement > HGTD_DetectorElementCollection
Definition
HGTD_DetectorElementCollection.h:20
Generated on
for ATLAS Offline Software by
1.17.0