ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::actor::random_scatterer< algebra_t >::kernel Struct Reference

Material store visitor. More...

#include <detray/test/utils/random_scatterer.hpp>

Public Member Functions

template<typename mat_group_t, typename index_t>
bool operator() (const mat_group_t &material_group, const index_t &mat_index, typename random_scatterer::state &s, const pdg_particle< scalar_type > &ptc, const bound_track_parameters< algebra_t > &bound_params, const scalar_type cos_inc_angle, const scalar_type approach) const
 Calculate material interaction quantities for the current surface.

Detailed Description

template<concepts::algebra algebra_t>
struct detray::actor::random_scatterer< algebra_t >::kernel

Material store visitor.

Member Function Documentation

◆ operator()()

template<concepts::algebra algebra_t>
template<typename mat_group_t, typename index_t>
bool detray::actor::random_scatterer< algebra_t >::kernel::operator() ( const mat_group_t & material_group,
const index_t & mat_index,
typename random_scatterer::state & s,
const pdg_particle< scalar_type > & ptc,
const bound_track_parameters< algebra_t > & bound_params,
const scalar_type cos_inc_angle,
const scalar_type approach ) const

Calculate material interaction quantities for the current surface.

Parameters
material_groupMaterial group to inspect.
mat_indexIndex of the material.
sActor state to update.
ptcParticle hypothesis.
bound_paramsBound track parameters.
cos_inc_angleCosine of the incidence angle.
approachLocal approach coordinate.
Returns
Whether a pointwise material interaction was computed.