Celeritas
0.5.0-86+4a8eea4
|
Check validity of safety and volume crossings while navigating on CPU. More...
#include <CheckedGeoTrackView.hh>
Public Types | |
Type aliases | |
using | GeoTrackViewT = GTV |
using | Initializer_t = typename GTV::Initializer_t |
using | DetailedInitializer = typename GTV::DetailedInitializer |
Public Member Functions | |
template<class... Args> | |
CheckedGeoTrackView (Args &&... args) | |
Forward construction arguments to the original track view. | |
CheckedGeoTrackView & | operator= (GeoTrackInitializer const &init) |
Initialize the state. | |
CheckedGeoTrackView & | operator= (DetailedInitializer const &init) |
Initialize the state from a parent state and new direction. | |
real_type | find_safety () |
Calculate the safety distance. | |
real_type | find_safety (real_type max_safety) |
Calculate the safety distance up to a given length. | |
void | set_dir (Real3 const &) |
Set the direction. | |
Propagation | find_next_step () |
Find the distance to the next boundary. | |
Propagation | find_next_step (real_type max_distance) |
Find the distance to the next boundary. | |
void | move_internal (real_type) |
Move within the volume along the current direction. | |
void | move_internal (Real3 const &pos) |
Move within the volume to a nearby position. | |
void | move_to_boundary () |
Move to the next boundary. | |
void | cross_boundary () |
Move to the next boundary. | |
size_type | intersect_count () const |
Number of calls fo find_next_step. | |
size_type | safety_count () const |
Number of calls fo find_safety. | |
void | reset_count () |
Reset the stepscounter. | |
Static Public Member Functions | |
static constexpr real_type | safety_tol () |
Check volume consistency this far from the boundary. | |
Check validity of safety and volume crossings while navigating on CPU.
Also count the number of calls to "find distance" and "find safety".