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

Functions

template<typename grid_type, typename local_indices>
grid_type::point_t accessLocal (const Vector2 &lposition, const local_indices &laccess)
 Access local parameters for a propriate lookup position.
template<typename grid_type, typename cast_container>
grid_type::point_t castPosition (const Vector3 &position, const cast_container &globalCasts)
 Cast into a lookup position.
template<typename cast_container, typename Array, std::size_t... idx>
void fillCasts (const Vector3 &position, const cast_container &globalCasts, Array &ra, std::index_sequence< idx... >)
 Unroll the cast loop.
template<typename Array, typename local_indices, std::size_t... idx>
void fillLocal (const Vector2 &lposition, const local_indices &laccess, Array &ra, std::index_sequence< idx... >)
 Unroll the local position loop.

Function Documentation

◆ accessLocal()

template<typename grid_type, typename local_indices>
grid_type::point_t Acts::GridAccessHelpers::accessLocal ( const Vector2 & lposition,
const local_indices & laccess )

Access local parameters for a propriate lookup position.

This method allows to transform a local position into a grid position, it only works for 1-D and 2-D grids.

Parameters
lpositionis the position of the update call
laccessthe local accessors
Returns
an array suitable for the grid

◆ castPosition()

template<typename grid_type, typename cast_container>
grid_type::point_t Acts::GridAccessHelpers::castPosition ( const Vector3 & position,
const cast_container & globalCasts )

Cast into a lookup position.

This method allows to transform a global position into a grid position that is specified by binning values. It casts the global position info into a format suitable for the grid.

Template Parameters
cast_containeris the container type of cast objects
Arrayis the array type to be filled
Parameters
positionis the position of the update call
globalCastsis the cast value vector from global to grid position
Returns
a grid point in an appropriate format

◆ fillCasts()

template<typename cast_container, typename Array, std::size_t... idx>
void Acts::GridAccessHelpers::fillCasts ( const Vector3 & position,
const cast_container & globalCasts,
Array & ra,
std::index_sequence< idx... >  )

Unroll the cast loop.

Template Parameters
cast_containeris the container type of cast objects
Arrayis the array type to be filled
Parameters
positionis the position of the update call
globalCastsis the cast value vector from global to grid position
rais the array to be filled

◆ fillLocal()

template<typename Array, typename local_indices, std::size_t... idx>
void Acts::GridAccessHelpers::fillLocal ( const Vector2 & lposition,
const local_indices & laccess,
Array & ra,
std::index_sequence< idx... >  )

Unroll the local position loop.

Parameters
lpositionis the local position
laccessthe local accessors
rais the array to be filled
Note
void function that fills the provided array