ATLAS Offline Software
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 
19 #include "AthenaKernel/CLASS_DEF.h"
20 #include "AthenaKernel/CondCont.h"
27 namespace ActsTrk{
29 public:
35  return m_alignmentStores[static_cast<unsigned>(type)];
36  }
39  return m_alignmentStores[static_cast<unsigned>(type)];
40  }
43  getStore(store->detType) = store;
44  }
45 #ifndef SIMULATIONBASE
46  Acts::GeometryContext context() const { return Acts::GeometryContext(this); }
47 #endif
48 
49 private:
50  using SubDetAlignments = std::array<AlignmentStorePtr, static_cast<unsigned>(DetectorType::UnDefined)>;
52 };
53 }
54 
57 
58 #endif
SGTest::store
TestStore store
Definition: TestStore.cxx:23
GeoModel::TransientConstSharedPtr
The TransientConstSharedPtr allows non-const access if the pointer itself is non-const but in the con...
Definition: TransientConstSharedPtr.h:13
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:38
ActsTrk::GeometryContext::getStore
AlignmentStorePtr & getStore(const DetectorType type)
Returns the mutable alignable store for the ATLAS detector type (Pixel, Mdt, etc.)
Definition: GeometryContext.h:34
CondCont.h
Hold mappings of ranges to condition objects.
ActsTrk::DetectorType
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
Definition: GeometryDefs.h:17
ActsTrk::DetectorAlignStore
Definition: DetectorAlignStore.h:20
ActsTrk::DetectorType::UnDefined
@ UnDefined
Small Thing Gap chambers (NSW)
CONDCONT_DEF
CONDCONT_DEF(ActsTrk::GeometryContext, 186862071)
ActsTrk::GeometryContext::m_alignmentStores
SubDetAlignments m_alignmentStores
Definition: GeometryContext.h:51
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
GeometryDefs.h
ActsTrk::GeometryContext
Definition: GeometryContext.h:28
DetectorAlignStore.h
TransientConstSharedPtr.h
CLASS_DEF
CLASS_DEF(ActsTrk::GeometryContext, 184998957, 1)
ActsTrk::GeometryContext::SubDetAlignments
std::array< AlignmentStorePtr, static_cast< unsigned >(DetectorType::UnDefined)> SubDetAlignments
Definition: GeometryContext.h:50
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MdtCalibInput.h:31
CLASS_DEF.h
macros to associate a CLID to a type
ActsTrk::GeometryContext::setStore
void setStore(AlignmentStorePtr store)
Adds the store to the Geometry context.
Definition: GeometryContext.h:42
ActsTrk::GeometryContext::context
Acts::GeometryContext context() const
Definition: GeometryContext.h:46