ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsGeometryInterfaces
ActsGeometryInterfaces
GeometryContext.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ACTSGEOMETRYINTERFACES_GEOMETRYCONTEXT_H
6
#define ACTSGEOMETRYINTERFACES_GEOMETRYCONTEXT_H
7
8
#include <memory>
10
#include "
ActsGeometryInterfaces/GeometryDefs.h
"
12
#ifndef SIMULATIONBASE
13
# include "Acts/Geometry/GeometryContext.hpp"
14
#endif
15
16
#include "
ActsGeometryInterfaces/DetectorAlignStore.h
"
17
#include "
GeoModelUtilities/TransientConstSharedPtr.h
"
18
#include "
AthenaKernel/CLASS_DEF.h
"
19
#include "
AthenaKernel/CondCont.h
"
20
21
#include "
StoreGate/ReadHandleKey.h
"
22
29
namespace
ActsTrk
{
30
class
GeometryContext
{
31
public
:
32
using
DetectorType
=
ActsTrk::DetectorType
;
33
using
AlignmentStore
=
ActsTrk::DetectorAlignStore
;
34
using
AlignmentStorePtr
=
GeoModel::TransientConstSharedPtr<AlignmentStore>
;
36
AlignmentStorePtr
&
getStore
(
const
DetectorType
type
) {
37
return
m_alignmentStores
[
static_cast<
unsigned
>
(
type
)];
38
}
39
40
const
AlignmentStorePtr
&
getStore
(
const
DetectorType
type
)
const
{
41
return
m_alignmentStores
[
static_cast<
unsigned
>
(
type
)];
42
}
43
44
void
setStore
(
AlignmentStorePtr
store) {
45
getStore
(store->detType) = store;
46
}
47
#ifndef SIMULATIONBASE
48
Acts::GeometryContext
context
()
const
{
return
Acts::GeometryContext(
this
); }
49
#endif
50
51
private
:
52
using
SubDetAlignments
= std::array<AlignmentStorePtr, static_cast<unsigned>(
DetectorType::UnDefined
)>;
53
SubDetAlignments
m_alignmentStores
{};
54
};
55
}
56
57
CLASS_DEF
(
ActsTrk::GeometryContext
, 184998957 , 1 );
58
CONDCONT_DEF
(
ActsTrk::GeometryContext
, 186862071 );
59
60
61
namespace
ActsTrk
{
64
using
GeoContextReadKey_t
=
SG::ReadHandleKey<GeometryContext>
;
65
}
66
67
68
#endif
CondCont.h
Hold mappings of ranges to condition objects.
CONDCONT_DEF
#define CONDCONT_DEF(...)
Definition
CondCont.h:1413
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
DetectorAlignStore.h
GeometryDefs.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TransientConstSharedPtr.h
ActsTrk::DetectorAlignStore
Definition
DetectorAlignStore.h:38
ActsTrk::GeometryContext
Definition
GeometryContext.h:30
ActsTrk::GeometryContext::AlignmentStorePtr
GeoModel::TransientConstSharedPtr< AlignmentStore > AlignmentStorePtr
Definition
GeometryContext.h:34
ActsTrk::GeometryContext::DetectorType
ActsTrk::DetectorType DetectorType
Definition
GeometryContext.h:32
ActsTrk::GeometryContext::SubDetAlignments
std::array< AlignmentStorePtr, static_cast< unsigned >(DetectorType::UnDefined)> SubDetAlignments
Definition
GeometryContext.h:52
ActsTrk::GeometryContext::getStore
AlignmentStorePtr & getStore(const DetectorType type)
Returns the mutable alignable store for the ATLAS detector type (Pixel, Mdt, etc.).
Definition
GeometryContext.h:36
ActsTrk::GeometryContext::m_alignmentStores
SubDetAlignments m_alignmentStores
Definition
GeometryContext.h:53
ActsTrk::GeometryContext::getStore
const AlignmentStorePtr & getStore(const DetectorType type) const
Returns the const alignable store for the ATLAS detector type (Pixel, Mdt, etc.).
Definition
GeometryContext.h:40
ActsTrk::GeometryContext::context
Acts::GeometryContext context() const
Definition
GeometryContext.h:48
ActsTrk::GeometryContext::AlignmentStore
ActsTrk::DetectorAlignStore AlignmentStore
Definition
GeometryContext.h:33
ActsTrk::GeometryContext::setStore
void setStore(AlignmentStorePtr store)
Adds the store to the Geometry context.
Definition
GeometryContext.h:44
GeoModel::TransientConstSharedPtr
The TransientConstSharedPtr allows non-const access if the pointer itself is non-const but in the con...
Definition
TransientConstSharedPtr.h:13
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
ActsTrk::DetectorType
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
Definition
GeometryDefs.h:25
ActsTrk::DetectorType::UnDefined
@ UnDefined
Small Thing Gap chambers (NSW).
Definition
GeometryDefs.h:38
ActsTrk::GeoContextReadKey_t
SG::ReadHandleKey< GeometryContext > GeoContextReadKey_t
Abrivate the ReadHandleKey to declare the data dependency on the Geometry context.
Definition
GeometryContext.h:64
type
Generated on
for ATLAS Offline Software by
1.17.0