|
ACTS
Experiment-independent tracking
|
A functor that checks the material parametrization for a surface/volume. More...
#include <detray/utils/consistency_checker.hpp>
Public Member Functions | |
| template<typename material_coll_t, typename index_t, typename id_t> requires concepts::material_map<typename material_coll_t::value_type> | |
| void | operator() (const material_coll_t &material_coll, const index_t idx, const id_t id) const |
| Test whether a given material map contains invalid material. | |
| template<typename material_coll_t, typename index_t, typename id_t> requires concepts::homogeneous_material< typename material_coll_t::value_type> | |
| void | operator() (const material_coll_t &material_coll, const index_t idx, const id_t) const |
| Test whether a given collection of material contains invalid material. | |
| template<typename material_t> | |
| void | throw_material_error (const std::string &type, const dindex idx, const material_t &mat) const |
| Error message for material consistency check. | |
A functor that checks the material parametrization for a surface/volume.
| void detray::detail::material_checker::operator() | ( | const material_coll_t & | material_coll, |
| const index_t | idx, | ||
| const id_t | id ) const |
Test whether a given material map contains invalid material.
| material_coll | collection of material grids |
| idx | the specific grid to be checked |
| id | type id of the material grid collection |
| void detray::detail::material_checker::operator() | ( | const material_coll_t & | material_coll, |
| const index_t | idx, | ||
| const id_t | ) const |
Test whether a given collection of material contains invalid material.
| material_coll | collection of material slabs/rods/raw mat |
| idx | the specific instance to be checked |
| void detray::detail::material_checker::throw_material_error | ( | const std::string & | type, |
| const dindex | idx, | ||
| const material_t & | mat ) const |
Error message for material consistency check.
| type | Name of the material collection or object type. |
| idx | Index of the invalid material. |
| mat | Material value that failed validation. |