File MaterialInteractor.hpp¶
-
namespace Acts
Set the Geometry Context PLUGIN.
Set the Calibration Context PLUGIN.
Convenience functions to ease creation of and Acts::InterpolatedMaterialMap and to avoid code duplication.
Set the Mangetic Field Context PLUGIN.
Convenience functions to ease creation of and Acts::InterpolatedBFieldMap and to avoid code duplication.
Currently implemented for the two most common formats: rz and xyz.
-
struct MaterialInteractor¶
- #include <Acts/Propagator/MaterialInteractor.hpp>
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>
inline void operator()(propagator_state_t &state, const stepper_t &stepper, result_type &result) 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
- Parameters
state – is the mutable propagator state object
stepper – The stepper in use
result – is the mutable result state object
-
template<typename propagator_state_t>
inline void operator()(propagator_state_t&) const¶ Material interaction has no pure observer.
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.
Private Functions
-
inline void recordResult(const detail::PointwiseMaterialInteraction &d, result_type &result) const¶
This function records the material effect.
- Parameters
d – [in] Data cache container
result – [inout] Result storage
-
inline void recordResult(const detail::VolumeMaterialInteraction &d, result_type &result) const¶
This function records the material effect.
- Parameters
d – [in] Data cache container
result – [inout] Result storage
-
template<typename propagator_state_t, typename stepper_t>
inline void UpdateResult(propagator_state_t &state, const stepper_t &stepper, result_type &result) const¶ This function update the previous material step.
- Parameters
state – [inout] The state object
stepper – [in] The stepper instance
result – [inout] Result storage
-
using result_type = RecordedMaterial¶
-
struct MaterialInteractor¶