ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::material_validator::get_material_record Struct Reference

Functor to retrieve the material parameters for a given local position. More...

#include <detray/test/validation/material_validation_utils.hpp>

Public Member Functions

template<typename mat_group_t, typename index_t, concepts::point2D point2_t, concepts::scalar scalar_t>
auto operator() (const mat_group_t &mat_group, const index_t &index, const point2_t &loc, const scalar_t cos_inc_angle) const
 Retrieve the material record at a local position.

Detailed Description

Functor to retrieve the material parameters for a given local position.

Member Function Documentation

◆ operator()()

template<typename mat_group_t, typename index_t, concepts::point2D point2_t, concepts::scalar scalar_t>
auto detray::material_validator::get_material_record::operator() ( const mat_group_t & mat_group,
const index_t & index,
const point2_t & loc,
const scalar_t cos_inc_angle ) const

Retrieve the material record at a local position.

Parameters
mat_groupMaterial group to inspect.
indexMaterial index.
locLocal position.
cos_inc_angleCosine of the incidence angle.
Returns
Material record for the position.