ATLAS Offline Software
Loading...
Searching...
No Matches
ActsTrk::GeometryContext Class Reference

#include <GeometryContext.h>

Collaboration diagram for ActsTrk::GeometryContext:

Public Types

using DetectorType = ActsTrk::DetectorType
using AlignmentStore = ActsTrk::DetectorAlignStore
using AlignmentStorePtr = GeoModel::TransientConstSharedPtr<AlignmentStore>

Public Member Functions

AlignmentStorePtr & getStore (const DetectorType type)
 Returns the mutable alignable store for the ATLAS detector type (Pixel, Mdt, etc.).
const AlignmentStorePtr & getStore (const DetectorType type) const
 Returns the const alignable store for the ATLAS detector type (Pixel, Mdt, etc.).
void setStore (AlignmentStorePtr store)
 Adds the store to the Geometry context.
Acts::GeometryContext context () const

Private Types

using SubDetAlignments = std::array<AlignmentStorePtr, static_cast<unsigned>(DetectorType::UnDefined)>

Private Attributes

SubDetAlignments m_alignmentStores {}

Detailed Description

Definition at line 30 of file GeometryContext.h.

Member Typedef Documentation

◆ AlignmentStore

◆ AlignmentStorePtr

◆ DetectorType

◆ SubDetAlignments

using ActsTrk::GeometryContext::SubDetAlignments = std::array<AlignmentStorePtr, static_cast<unsigned>(DetectorType::UnDefined)>
private

Definition at line 52 of file GeometryContext.h.

Member Function Documentation

◆ context()

Acts::GeometryContext ActsTrk::GeometryContext::context ( ) const
inline

Definition at line 48 of file GeometryContext.h.

48{ return Acts::GeometryContext(this); }

◆ getStore() [1/2]

AlignmentStorePtr & ActsTrk::GeometryContext::getStore ( const DetectorType type)
inline

Returns the mutable alignable store for the ATLAS detector type (Pixel, Mdt, etc.).

Definition at line 36 of file GeometryContext.h.

36 {
37 return m_alignmentStores[static_cast<unsigned>(type)];
38 }
SubDetAlignments m_alignmentStores

◆ getStore() [2/2]

const AlignmentStorePtr & ActsTrk::GeometryContext::getStore ( const DetectorType type) const
inline

Returns the const alignable store for the ATLAS detector type (Pixel, Mdt, etc.).

Definition at line 40 of file GeometryContext.h.

40 {
41 return m_alignmentStores[static_cast<unsigned>(type)];
42 }

◆ setStore()

void ActsTrk::GeometryContext::setStore ( AlignmentStorePtr store)
inline

Adds the store to the Geometry context.

Definition at line 44 of file GeometryContext.h.

44 {
45 getStore(store->detType) = store;
46 }
AlignmentStorePtr & getStore(const DetectorType type)
Returns the mutable alignable store for the ATLAS detector type (Pixel, Mdt, etc.).
TestStore store
Definition TestStore.cxx:22

Member Data Documentation

◆ m_alignmentStores

SubDetAlignments ActsTrk::GeometryContext::m_alignmentStores {}
private

Definition at line 53 of file GeometryContext.h.

53{};

The documentation for this class was generated from the following file: