ATLAS Offline Software
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
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.) More...
 
const AlignmentStorePtrgetStore (const DetectorType type) const
 Returns the const alignable store for the ATLAS detector type (Pixel, Mdt, etc.) More...
 
void setStore (AlignmentStorePtr store)
 Adds the store to the Geometry context. More...
 
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

Definition at line 31 of file GeometryContext.h.

◆ AlignmentStorePtr

Definition at line 32 of file GeometryContext.h.

◆ DetectorType

Definition at line 30 of file GeometryContext.h.

◆ 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  }

◆ 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  }

Member Data Documentation

◆ m_alignmentStores

SubDetAlignments ActsTrk::GeometryContext::m_alignmentStores {}
private

Definition at line 51 of file GeometryContext.h.


The documentation for this class was generated from the following file:
SGTest::store
TestStore store
Definition: TestStore.cxx:23
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
ActsTrk::GeometryContext::m_alignmentStores
SubDetAlignments m_alignmentStores
Definition: GeometryContext.h:51
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42