ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::Interpolation3D Namespace Reference

Functions

template<typename trajectory_type>
trajectory_type spline (const trajectory_type &inputsRaw, std::size_t nPoints, bool keepOriginalHits=false)
 Helper function to interpolate points using a spline from Eigen.

Function Documentation

◆ spline()

template<typename trajectory_type>
trajectory_type Acts::Interpolation3D::spline ( const trajectory_type & inputsRaw,
std::size_t nPoints,
bool keepOriginalHits = false )

Helper function to interpolate points using a spline from Eigen.

The only requirement is that the input trajectory type has a method empty() and size() and that the elements can be accessed with operator[] and have themselves a operator[] to access the coordinates.

Template Parameters
input_trajectory_typeinput trajectory type
Parameters
inputsRawinput vector points
nPointsnumber of interpolation points
keepOriginalHitskeep the original hits in the trajectory
Returns
std::vector<Acts::Vector3> interpolated points