Template Struct SurfaceCollector¶
Defined in File SurfaceCollector.hpp
Nested Relationships¶
Nested Types¶
Struct Documentation¶
-
template<typename
Selector
= SurfaceSelector>
structActs
::
SurfaceCollector
¶ A Surface Collector struct templated with a Selector type.
Whenever a surface is passed in the propagation that satisfies the selector, it is recorded for further usage in the flow.
Public Types
-
using
result_type
= this_result¶
Public Functions
-
template<typename
propagator_state_t
, typenamestepper_t
>
voidoperator()
(propagator_state_t &state, const stepper_t &stepper, result_type &result) const¶ Collector action for the ActionList of the Propagator It checks if the propagator 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 statestepper_t
: Type of the stepper used for the propagation
- Parameters
[inout] state
: is the mutable stepper state object[in] stepper
: The stepper in use[inout] result
: is the mutable result object
-
template<typename
propagator_state_t
, typenamestepper_t
>
voidoperator()
(propagator_state_t&, const stepper_t&) const¶ Pure observer interface.
this does not apply to the surface collector
-
struct
this_result
¶ Simple result struct to be returned It has all the SurfaceHit objects that are collected (and thus have been selected)
Public Members
-
std::vector<SurfaceHit>
collected
¶
-
std::vector<SurfaceHit>
-
using