ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Trk::ExtrapolatorComparisonTest::ActsTrackWrapper Struct Reference
Collaboration diagram for Trk::ExtrapolatorComparisonTest::ActsTrackWrapper:

Public Member Functions

 ActsTrackWrapper (const Acts::BoundTrackParameters *trackParams, Acts::GeometryContext &ctx)
 Constructor. More...
 
Acts::Vector3 position () const
 Position getter. More...
 
Acts::BoundVector parameters () const
 Parameter getter. More...
 
const std::optional< Acts::BoundSquareMatrix > & covariance () const
 Covariance getter. More...
 

Private Attributes

const Acts::BoundTrackParameters * m_params
 The Acts track parameters. More...
 
Acts::GeometryContext m_geometryContext
 The Acts geometry context. More...
 

Detailed Description

Wrapper code for Acts track parameters, to provide a position() method without the need of explicitly passing the Acts::GeometryContext

Definition at line 91 of file ExtrapolatorComparisonTest.h.

Constructor & Destructor Documentation

◆ ActsTrackWrapper()

Trk::ExtrapolatorComparisonTest::ActsTrackWrapper::ActsTrackWrapper ( const Acts::BoundTrackParameters *  trackParams,
Acts::GeometryContext &  ctx 
)
inline

Constructor.

Definition at line 94 of file ExtrapolatorComparisonTest.h.

95  : m_params(trackParams)
96  , m_geometryContext(ctx) {};

Member Function Documentation

◆ covariance()

const std::optional<Acts::BoundSquareMatrix>& Trk::ExtrapolatorComparisonTest::ActsTrackWrapper::covariance ( ) const
inline

Covariance getter.

Definition at line 103 of file ExtrapolatorComparisonTest.h.

103 {return m_params->covariance();}

◆ parameters()

Acts::BoundVector Trk::ExtrapolatorComparisonTest::ActsTrackWrapper::parameters ( ) const
inline

Parameter getter.

Definition at line 101 of file ExtrapolatorComparisonTest.h.

101 {return m_params->parameters();}

◆ position()

Acts::Vector3 Trk::ExtrapolatorComparisonTest::ActsTrackWrapper::position ( ) const
inline

Position getter.

Definition at line 99 of file ExtrapolatorComparisonTest.h.

99 {return m_params->position(m_geometryContext);}

Member Data Documentation

◆ m_geometryContext

Acts::GeometryContext Trk::ExtrapolatorComparisonTest::ActsTrackWrapper::m_geometryContext
private

The Acts geometry context.

Definition at line 109 of file ExtrapolatorComparisonTest.h.

◆ m_params

const Acts::BoundTrackParameters* Trk::ExtrapolatorComparisonTest::ActsTrackWrapper::m_params
private

The Acts track parameters.

Definition at line 107 of file ExtrapolatorComparisonTest.h.


The documentation for this struct was generated from the following file:
Trk::ExtrapolatorComparisonTest::ActsTrackWrapper::m_geometryContext
Acts::GeometryContext m_geometryContext
The Acts geometry context.
Definition: ExtrapolatorComparisonTest.h:109
Trk::ExtrapolatorComparisonTest::ActsTrackWrapper::m_params
const Acts::BoundTrackParameters * m_params
The Acts track parameters.
Definition: ExtrapolatorComparisonTest.h:107