Analysis Software
Documentation for sPHENIX simulation software
|
Struct for mapping global 3D positions to material values. More...
#include <acts/blob/sPHENIX/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< ActsVector< DIM_POS >(const Vector3 &)> transformPos, Grid_t grid) | |
Default constructor. | |
Material | material (const Vector3 &position) const |
Retrieve binned material at given position. | |
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< 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 Vector3 &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< ActsVector < DIM_POS >const Vector3 &)> | 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 28 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 28 of file InterpolatedMaterialMap.hpp
using Acts::MaterialMapper< G >::Grid_t = G |
Definition at line 30 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 30 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 113 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 113 of file InterpolatedMaterialMap.hpp
|
inline |
Get a const reference on the underlying grid structure.
Definition at line 205 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 205 of file InterpolatedMaterialMap.hpp
References Acts::MaterialMapper< G >::m_grid.
Referenced by ActsExamples::RootMaterialWriter::writeMaterial().
|
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 137 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 137 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 148 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 148 of file InterpolatedMaterialMap.hpp
References Acts::MaterialMapper< G >::DIM_POS, i, index, Acts::MaterialMapper< G >::m_grid, Acts::MaterialMapper< G >::m_transformPos, and testing::internal::move().
|
inline |
Get the maximum value of all axes of the map.
Definition at line 188 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 188 of file InterpolatedMaterialMap.hpp
References Acts::MaterialMapper< G >::m_grid.
|
inline |
Get the minimum value of all axes of the map.
Definition at line 180 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 180 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 172 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 172 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 198 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 198 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 125 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 125 of file InterpolatedMaterialMap.hpp
References Acts::MaterialMapper< G >::m_grid, and Acts::MaterialMapper< G >::m_transformPos.
|
static |
Definition at line 31 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 31 of file InterpolatedMaterialMap.hpp
Referenced by Acts::MaterialMapper< G >::getMaterialCell(), and Acts::MaterialMapper< G >::MaterialCell::isInside().
|
private |
Grid storing material values.
Definition at line 211 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 211 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 209 of file InterpolatedMaterialMap.hpp.
View newest version in sPHENIX GitHub at line 209 of file InterpolatedMaterialMap.hpp
Referenced by Acts::MaterialMapper< G >::getMaterial(), Acts::MaterialMapper< G >::getMaterialCell(), Acts::MaterialMapper< G >::isInside(), and Acts::MaterialMapper< G >::material().