ATLAS Offline Software
Loading...
Searching...
No Matches
GeometryContext.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ACTSGEOMETRYINTERFACES_GEOMETRYCONTEXT_H
6#define ACTSGEOMETRYINTERFACES_GEOMETRYCONTEXT_H
7
8#include <map>
9#include <memory>
13#ifndef SIMULATIONBASE
14# include "Acts/Geometry/GeometryContext.hpp"
15#endif
16
27namespace ActsTrk{
29public:
35 return m_alignmentStores[static_cast<unsigned>(type)];
36 }
37
39 return m_alignmentStores[static_cast<unsigned>(type)];
40 }
41
43 getStore(store->detType) = store;
44 }
45#ifndef SIMULATIONBASE
46 Acts::GeometryContext context() const { return Acts::GeometryContext(this); }
47#endif
48
49private:
50 using SubDetAlignments = std::array<AlignmentStorePtr, static_cast<unsigned>(DetectorType::UnDefined)>;
52};
53}
54
57
58#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
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...
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)