ATLAS Offline Software
Loading...
Searching...
No Matches
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>
12#ifndef SIMULATIONBASE
13# include "Acts/Geometry/GeometryContext.hpp"
14#endif
15
20
22
29namespace ActsTrk{
31public:
37 return m_alignmentStores[static_cast<unsigned>(type)];
38 }
39
41 return m_alignmentStores[static_cast<unsigned>(type)];
42 }
43
45 getStore(store->detType) = store;
46 }
47#ifndef SIMULATIONBASE
48 Acts::GeometryContext context() const { return Acts::GeometryContext(this); }
49#endif
50
51private:
52 using SubDetAlignments = std::array<AlignmentStorePtr, static_cast<unsigned>(DetectorType::UnDefined)>;
54};
55}
56
59
60
61namespace ActsTrk {
65}
66
67
68#endif
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Property holding a SG store/key/clid from which a ReadHandle is made.
GeoModel::TransientConstSharedPtr< AlignmentStore > AlignmentStorePtr
ActsTrk::DetectorType DetectorType
std::array< AlignmentStorePtr, static_cast< unsigned >(DetectorType::UnDefined)> SubDetAlignments
AlignmentStorePtr & getStore(const DetectorType type)
Returns the mutable alignable store for the ATLAS detector type (Pixel, Mdt, etc.).
SubDetAlignments m_alignmentStores
const AlignmentStorePtr & getStore(const DetectorType type) const
Returns the const alignable store for the ATLAS detector type (Pixel, Mdt, etc.).
Acts::GeometryContext context() const
ActsTrk::DetectorAlignStore AlignmentStore
void setStore(AlignmentStorePtr store)
Adds the store to the Geometry context.
The TransientConstSharedPtr allows non-const access if the pointer itself is non-const but in the con...
Property holding a SG store/key/clid from which a ReadHandle is made.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
@ UnDefined
Small Thing Gap chambers (NSW).
SG::ReadHandleKey< GeometryContext > GeoContextReadKey_t
Abrivate the ReadHandleKey to declare the data dependency on the Geometry context.