ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::intersection_point_err< algebra_t > Struct Template Reference

Result of intersector: Distance, intersection point (2D or 3D, local/global) and error estimate on distance (for mask resolution). More...

#include <detray/navigation/intersection/intersection.hpp>

Inheritance diagram for detray::intersection_point_err< algebra_t >:
[legend]
Collaboration diagram for detray::intersection_point_err< algebra_t >:
[legend]

Public Types

using point2_type = dpoint2D<algebra_t>
 Two-dimensional point type used by planar intersectors.
using point3_type = dpoint3D<algebra_t>
 Three-dimensional point type used by the result.
using point_type = point3_type
 Point type exposed by this result.
using scalar_type = dscalar<algebra_t>
 Scalar type used for path lengths and their uncertainty.

Public Member Functions

constexpr intersection_point_err ()=default
 Construct an invalid result with default path and position values.
constexpr intersection_point_err (const base_type &base_ip)
 Copy the position-bearing intersection result.
constexpr intersection_point_err (const intersection_point< algebra_t, point2_type, !intersection::contains_pos > &ip)
 Preserve the path from a position-free 2D result.
constexpr intersection_point_err (const intersection_point< algebra_t, point3_type, !intersection::contains_pos > &ip)
 Preserve the path from a position-free 3D result.
constexpr intersection_point_err (const scalar_type p, const point3_type &pnt, const scalar_type p_err)
 Store a path, 3D position, and path uncertainty.

Public Attributes

scalar_type path_err {inv}
 Error estimation on the path.

Detailed Description

template<concepts::algebra algebra_t>
struct detray::intersection_point_err< algebra_t >

Result of intersector: Distance, intersection point (2D or 3D, local/global) and error estimate on distance (for mask resolution).

Constructor & Destructor Documentation

◆ intersection_point_err() [1/4]

template<concepts::algebra algebra_t>
detray::intersection_point_err< algebra_t >::intersection_point_err ( const base_type & base_ip)
explicitconstexpr

Copy the position-bearing intersection result.

Parameters
base_ipIntersection result whose data should be copied.

◆ intersection_point_err() [2/4]

template<concepts::algebra algebra_t>
detray::intersection_point_err< algebra_t >::intersection_point_err ( const intersection_point< algebra_t, point3_type, !intersection::contains_pos > & ip)
explicitconstexpr

Preserve the path from a position-free 3D result.

Parameters
ipPosition-free 3D intersection result.

◆ intersection_point_err() [3/4]

template<concepts::algebra algebra_t>
detray::intersection_point_err< algebra_t >::intersection_point_err ( const intersection_point< algebra_t, point2_type, !intersection::contains_pos > & ip)
explicitconstexpr

Preserve the path from a position-free 2D result.

Parameters
ipPosition-free 2D intersection result.

◆ intersection_point_err() [4/4]

template<concepts::algebra algebra_t>
detray::intersection_point_err< algebra_t >::intersection_point_err ( const scalar_type p,
const point3_type & pnt,
const scalar_type p_err )
constexpr

Store a path, 3D position, and path uncertainty.

Parameters
pSigned path length to the intersection.
pntLocal 3D intersection position.
p_errEstimated uncertainty on the path length.