ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Struct for mapping global 3D positions to material values. More...
#include <acts/blob/master/Core/include/Acts/Material/InterpolatedMaterialMap.hpp>
Classes | |
struct | MaterialCell |
Struct representing smallest grid unit in material grid. More... | |
Public Types | |
using | Grid_t = G |
Public Member Functions | |
MaterialMapper (std::function< ActsVectorD< DIM_POS >(const Vector3D &)> transformPos, Grid_t grid) | |
Default constructor. | |
Material | material (const Vector3D &position) const |
Retrieve binned material at given position. | |
Material | getMaterial (const Vector3D &position) const |
Retrieve interpolated material at given position. | |
MaterialCell | getMaterialCell (const Vector3D &position) const |
Retrieve material cell for given position. | |
std::vector< size_t > | getNBins () const |
Get the number of bins for all axes of the map. | |
std::vector< double > | getMin () const |
Get the minimum value of all axes of the map. | |
std::vector< double > | getMax () const |
Get the maximum value of all axes of the map. | |
bool | isInside (const Vector3D &position) const |
Check whether given 3D position is inside look-up domain. | |
const Grid_t & | getGrid () const |
Get a const reference on the underlying grid structure. | |
Static Public Attributes | |
static constexpr size_t | DIM_POS = Grid_t::DIM |
Private Attributes | |
std::function< ActsVectorD < DIM_POS >const Vector3D &)> | m_transformPos |
Geometric transformation applied to global 3D positions. | |
Grid_t | m_grid |
Grid storing material values. | |
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.
Definition at line 26 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 26 of file InterpolatedMaterialMap.hpp
using Acts::MaterialMapper< G >::Grid_t = G |
Definition at line 28 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 28 of file InterpolatedMaterialMap.hpp
|
inline |
Default constructor.
[in] | transformPos | Mapping of global 3D coordinates (cartesian) onto grid space |
[in] | grid | Grid storing material classification values |
Definition at line 111 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 111 of file InterpolatedMaterialMap.hpp
|
inline |
Get a const reference on the underlying grid structure.
Definition at line 203 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 203 of file InterpolatedMaterialMap.hpp
References Acts::MaterialMapper< G >::m_grid.
|
inline |
Retrieve interpolated material at given position.
[in] | position | Global 3D position |
position
must lie within the range of the underlying map. Definition at line 135 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 135 of file InterpolatedMaterialMap.hpp
References Acts::MaterialMapper< G >::m_grid, and Acts::MaterialMapper< G >::m_transformPos.
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().
|
inline |
Retrieve material cell for given position.
[in] | position | Global 3D position |
position
must lie within the range of the underlying map. Definition at line 146 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 146 of file InterpolatedMaterialMap.hpp
References bin, Acts::MaterialMapper< G >::DIM_POS, Acts::MaterialMapper< G >::m_grid, and Acts::MaterialMapper< G >::m_transformPos.
|
inline |
Get the maximum value of all axes of the map.
Definition at line 186 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 186 of file InterpolatedMaterialMap.hpp
References Acts::MaterialMapper< G >::m_grid.
|
inline |
Get the minimum value of all axes of the map.
Definition at line 178 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 178 of file InterpolatedMaterialMap.hpp
References Acts::MaterialMapper< G >::m_grid.
|
inline |
Get the number of bins for all axes of the map.
Definition at line 170 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 170 of file InterpolatedMaterialMap.hpp
References Acts::MaterialMapper< G >::m_grid.
|
inline |
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
Definition at line 196 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 196 of file InterpolatedMaterialMap.hpp
References Acts::MaterialMapper< G >::m_grid, and Acts::MaterialMapper< G >::m_transformPos.
|
inline |
Retrieve binned material at given position.
[in] | position | Global 3D position |
position
must lie within the range of the underlying map. Definition at line 123 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 123 of file InterpolatedMaterialMap.hpp
References Acts::MaterialMapper< G >::m_grid, and Acts::MaterialMapper< G >::m_transformPos.
|
static |
Definition at line 29 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 29 of file InterpolatedMaterialMap.hpp
Referenced by Acts::MaterialMapper< G >::getMaterialCell(), and Acts::MaterialMapper< G >::MaterialCell::isInside().
|
private |
Grid storing material values.
Definition at line 209 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 209 of file InterpolatedMaterialMap.hpp
Referenced by Acts::MaterialMapper< G >::getGrid(), Acts::MaterialMapper< G >::getMaterial(), Acts::MaterialMapper< G >::getMaterialCell(), Acts::MaterialMapper< G >::getMax(), Acts::MaterialMapper< G >::getMin(), Acts::MaterialMapper< G >::getNBins(), Acts::MaterialMapper< G >::isInside(), and Acts::MaterialMapper< G >::material().
|
private |
Geometric transformation applied to global 3D positions.
Definition at line 207 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 207 of file InterpolatedMaterialMap.hpp
Referenced by Acts::MaterialMapper< G >::getMaterial(), Acts::MaterialMapper< G >::getMaterialCell(), Acts::MaterialMapper< G >::isInside(), and Acts::MaterialMapper< G >::material().