A Material Collector struct.
using result_type = this_result
Collector action for the ActionList of the Propagator It checks if the state has a current surface, in which case the action is performed:
it records the surface given the configuration
- Template Parameters
propagator_state_t – is the type of Propagator 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 result object to be filled
logger – a logger instance
bool detailedCollection = false
In the detailed collection mode the material per surface is collected, otherwise only the total pathlength in X0 or L0 are recorded.
Simple result struct to be returned.
Result of the material collection process It collects the overall X0 and L0 path lengths, and optionally a detailed per-material breakdown
double materialInL0 = 0.
double materialInX0 = 0.
- std::vector<MaterialHit> collected
- using result_type = this_result