ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::ExtrapolatorComparisonTest::ActsTrackWrapper Struct Reference

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

Collaboration diagram for Trk::ExtrapolatorComparisonTest::ActsTrackWrapper:

Public Member Functions

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

Private Attributes

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

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 93 of file ExtrapolatorComparisonTest.h.

Constructor & Destructor Documentation

◆ ActsTrackWrapper()

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

Constructor.

Definition at line 96 of file ExtrapolatorComparisonTest.h.

97 : m_params(trackParams)
98 , m_geometryContext(ctx) {};
const Acts::BoundTrackParameters * m_params
The Acts track parameters.
Acts::GeometryContext m_geometryContext
The Acts geometry context.

Member Function Documentation

◆ covariance()

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

Covariance getter.

Definition at line 105 of file ExtrapolatorComparisonTest.h.

105{return m_params->covariance();}

◆ parameters()

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

Parameter getter.

Definition at line 103 of file ExtrapolatorComparisonTest.h.

103{return m_params->parameters();}

◆ position()

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

Position getter.

Definition at line 101 of file ExtrapolatorComparisonTest.h.

101{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 111 of file ExtrapolatorComparisonTest.h.

◆ m_params

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

The Acts track parameters.

Definition at line 109 of file ExtrapolatorComparisonTest.h.


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