|
ACTS
Experiment-independent tracking
|
Struct for mapping global 3D positions to material values. More...
#include <Acts/Material/InterpolatedMaterialMap.hpp>
Classes | |
| struct | MaterialCell |
| Struct representing smallest grid unit in material grid. More... | |
Public Types | |
| using | Grid_t = G |
| Type alias for material grid. | |
Public Member Functions | |
| MaterialMapLookup (std::function< ActsVector< DIM_POS >(const Vector3 &)> transformPos, Grid_t grid) | |
| Default constructor. | |
| const Grid_t & | getGrid () const |
| Get a const reference on the underlying grid structure. | |
| Material | getMaterial (const Vector3 &position) const |
| Retrieve interpolated material at given position. | |
| MaterialCell | getMaterialCell (const Vector3 &position) const |
| Retrieve material cell for given position. | |
| std::vector< double > | getMax () const |
| Get the maximum value of all axes of the map. | |
| std::vector< double > | getMin () const |
| Get the minimum value of all axes of the map. | |
| std::vector< std::size_t > | getNBins () const |
| Get the number of bins for all axes of the map. | |
| bool | isInside (const Vector3 &position) const |
| Check whether given 3D position is inside look-up domain. | |
| Material | material (const Vector3 &position) const |
| Retrieve binned material at given position. | |
Static Public Attributes | |
| static constexpr std::size_t | DIM_POS = Grid_t::DIM |
| Dimensionality of the position space for material interpolation. | |
Struct for mapping global 3D positions to material values.
Global 3D positions are transformed into a DIM_POS Dimensional vector which is used to look up the material classification value in the underlying material map.
| using Acts::MaterialMapLookup< G >::Grid_t = G |
Type alias for material grid.
| Acts::MaterialMapLookup< G >::MaterialMapLookup | ( | std::function< ActsVector< DIM_POS >(const Vector3 &)> | transformPos, |
| Grid_t | grid ) |
Default constructor.
| [in] | transformPos | Mapping of global 3D coordinates (cartesian) onto grid space |
| [in] | grid | Grid storing material classification values |
| const Grid_t & Acts::MaterialMapLookup< G >::getGrid | ( | ) | const |
Get a const reference on the underlying grid structure.
| Material Acts::MaterialMapLookup< G >::getMaterial | ( | const Vector3 & | position | ) | const |
Retrieve interpolated material at given position.
| [in] | position | Global 3D position |
position must lie within the range of the underlying map. | MaterialCell Acts::MaterialMapLookup< G >::getMaterialCell | ( | const Vector3 & | position | ) | const |
Retrieve material cell for given position.
| [in] | position | Global 3D position |
position must lie within the range of the underlying map. | std::vector< double > Acts::MaterialMapLookup< G >::getMax | ( | ) | const |
Get the maximum value of all axes of the map.
| std::vector< double > Acts::MaterialMapLookup< G >::getMin | ( | ) | const |
Get the minimum value of all axes of the map.
| std::vector< std::size_t > Acts::MaterialMapLookup< G >::getNBins | ( | ) | const |
Get the number of bins for all axes of the map.
| bool Acts::MaterialMapLookup< G >::isInside | ( | const Vector3 & | position | ) | const |
Check whether given 3D position is inside look-up domain.
| [in] | position | Global 3D position |
true if position is inside the defined look-up grid, otherwise false | Material Acts::MaterialMapLookup< G >::material | ( | const Vector3 & | position | ) | const |
Retrieve binned material at given position.
| [in] | position | Global 3D position |
position must lie within the range of the underlying map.
|
staticconstexpr |
Dimensionality of the position space for material interpolation.