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

AlignmentStorePtrgetStore (const DetectorType type)
 Returns the mutable alignable store for the ATLAS detector type (Pixel, Mdt, etc.)
const AlignmentStorePtrgetStore (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 28 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 50 of file GeometryContext.h.

Member Function Documentation

◆ context()

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

Definition at line 46 of file GeometryContext.h.

46{ 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 34 of file GeometryContext.h.

34 {
35 return m_alignmentStores[static_cast<unsigned>(type)];
36 }
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 38 of file GeometryContext.h.

38 {
39 return m_alignmentStores[static_cast<unsigned>(type)];
40 }

◆ setStore()

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

Adds the store to the Geometry context.

Definition at line 42 of file GeometryContext.h.

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

Member Data Documentation

◆ m_alignmentStores

SubDetAlignments ActsTrk::GeometryContext::m_alignmentStores {}
private

Definition at line 51 of file GeometryContext.h.

51{};

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