ATLAS Offline Software
ActsGeometryContext.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ACTSGEOMETRYINTERFACES_ACTSGEOMETRYCONTEXT_H
6 #define ACTSGEOMETRYINTERFACES_ACTSGEOMETRYCONTEXT_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"
28 public:
34  return m_alignmentStores[static_cast<unsigned>(type)];
35  }
38  return m_alignmentStores[static_cast<unsigned>(type)];
39  }
42  getStore(store->detType) = store;
43  }
44 #ifndef SIMULATIONBASE
45  Acts::GeometryContext context() const { return Acts::GeometryContext(this); }
46 #endif
47 
48 private:
49  using SubDetAlignments = std::array<AlignmentStorePtr, static_cast<unsigned>(DetectorType::UnDefined)>;
51 };
52 
53 CLASS_DEF(ActsGeometryContext, 51464195, 1)
55 
56 #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
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
ActsGeometryContext::getStore
const AlignmentStorePtr & getStore(const DetectorType type) const
Returns the const alignable store for the ATLAS detector type (Pixel, Mdt, etc.)
Definition: ActsGeometryContext.h:37
ActsTrk::DetectorAlignStore
Definition: DetectorAlignStore.h:20
CONDCONT_DEF
CONDCONT_DEF(ActsGeometryContext, 11228079)
ActsGeometryContext::context
Acts::GeometryContext context() const
Definition: ActsGeometryContext.h:45
ActsGeometryContext::getStore
AlignmentStorePtr & getStore(const DetectorType type)
Returns the mutable alignable store for the ATLAS detector type (Pixel, Mdt, etc.)
Definition: ActsGeometryContext.h:33
GeometryDefs.h
ActsGeometryContext
Include the GeoPrimitives which need to be put first.
Definition: ActsGeometryContext.h:27
ActsGeometryContext::SubDetAlignments
std::array< AlignmentStorePtr, static_cast< unsigned >(DetectorType::UnDefined)> SubDetAlignments
Definition: ActsGeometryContext.h:49
ActsGeometryContext::m_alignmentStores
SubDetAlignments m_alignmentStores
Definition: ActsGeometryContext.h:50
DetectorAlignStore.h
TransientConstSharedPtr.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
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:64
ActsGeometryContext::setStore
void setStore(AlignmentStorePtr store)
Adds the store to the Geometry context.
Definition: ActsGeometryContext.h:41
CLASS_DEF.h
macros to associate a CLID to a type