ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::GridAccess::GlobalSubspace< Args > Class Template Reference

A global (potentially casted) sub space of a global position. More...

#include <Acts/Utilities/GridAccessHelpers.hpp>

Inheritance diagram for Acts::GridAccess::GlobalSubspace< Args >:
[legend]
Collaboration diagram for Acts::GridAccess::GlobalSubspace< Args >:
[legend]

Public Types

using grid_local_t = std::array<double, sizeof...(Args)>
 Type alias for grid-local coordinate array.

Public Member Functions

 GlobalSubspace ()=default
 Assert that size has to be bigger than 0.
grid_local_t toGridLocal (const Vector3 &position) const
 Transform in to the local frame, then the grid local position.
Public Member Functions inherited from Acts::GridAccess::IGlobalToGridLocal
virtual ~IGlobalToGridLocal ()=default

Static Public Attributes

static constexpr std::array< AxisDirection, sizeof...(Args)> axisDirs
 The axis directions of the subspace.

Detailed Description

template<AxisDirection... Args>
class Acts::GridAccess::GlobalSubspace< Args >

A global (potentially casted) sub space of a global position.

Template Parameters
...Args

Member Typedef Documentation

◆ grid_local_t

template<AxisDirection... Args>
using Acts::GridAccess::GlobalSubspace< Args >::grid_local_t = std::array<double, sizeof...(Args)>

Type alias for grid-local coordinate array.

Constructor & Destructor Documentation

◆ GlobalSubspace()

template<AxisDirection... Args>
Acts::GridAccess::GlobalSubspace< Args >::GlobalSubspace ( )
default

Assert that size has to be bigger than 0.

Assert that size has to be smaller than 4

Member Function Documentation

◆ toGridLocal()

template<AxisDirection... Args>
grid_local_t Acts::GridAccess::GlobalSubspace< Args >::toGridLocal ( const Vector3 & position) const

Transform in to the local frame, then the grid local position.

Parameters
positionis the global position
Returns
the grid position

Member Data Documentation

◆ axisDirs

template<AxisDirection... Args>
std::array<AxisDirection, sizeof...(Args)> Acts::GridAccess::GlobalSubspace< Args >::axisDirs
staticconstexpr
Initial value:
= {
Args...}

The axis directions of the subspace.