Struct Acts::MaterialInteractor

struct MaterialInteractor

Material interactor propagator action.

Apply material interactions at a surface and update the track state.

Public Types

using result_type = RecordedMaterial

Public Functions

template<typename propagator_state_t, typename stepper_t, typename navigator_t>
inline void operator()(propagator_state_t &state, const stepper_t &stepper, const navigator_t &navigator, result_type &result, const Logger &logger) const

Interaction with detector material for the ActionList of the Propagator.

It checks if the state has a current surface, in which case the action is performed: the covariance is transported to the position, multiple scattering and energy loss is applied according to the configuration.

Template Parameters
  • propagator_state_t – is the type of Propagagor state

  • stepper_t – Type of the stepper of the propagation

  • navigator_t – Type of the navigator of the propagation

  • state – is the mutable propagator state object

  • stepper – The stepper in use

  • navigator – The navigator in use

  • result – is the mutable result state object

  • logger – a logger instance

Public Members

bool energyLoss = true

Whether to consider energy loss.

bool multipleScattering = true

Whether to consider multiple scattering.

bool recordInteractions = false

Whether to record all material interactions.