Celeritas  0.5.0-86+4a8eea4
Public Member Functions | Static Public Member Functions | List of all members
celeritas::test::CheckedGeoTrackView< GTV > Class Template Reference

Check validity of safety and volume crossings while navigating on CPU. More...

#include <CheckedGeoTrackView.hh>

Inheritance diagram for celeritas::test::CheckedGeoTrackView< GTV >:
Inheritance graph
[legend]

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.
 
CheckedGeoTrackViewoperator= (GeoTrackInitializer const &init)
 Initialize the state.
 
CheckedGeoTrackViewoperator= (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.
 

Detailed Description

template<class GTV>
class celeritas::test::CheckedGeoTrackView< GTV >

Check validity of safety and volume crossings while navigating on CPU.

Also count the number of calls to "find distance" and "find safety".

Note
This class is instantiated in GenericXTestBase.cc for geometry type X. The member function definitions are in CheckedGeoTrackView.t.hh.

The documentation for this class was generated from the following files: