Celeritas  0.5.0-56+6b053cd
Public Member Functions | List of all members
celeritas::optical::test::InteractorHostTestBase Class Reference

A test base for optical interactions. More...

#include <InteractorHostTestBase.hh>

Inheritance diagram for celeritas::optical::test::InteractorHostTestBase:
Inheritance graph
[legend]

Public Types

Type aliases
using RandomEngine = DiagnosticRngEngine< std::mt19937 >
 
using Energy = units::MevEnergy
 
using Action = Interaction::Action
 

Public Member Functions

 InteractorHostTestBase ()
 Initialize test base.
 
virtual ~InteractorHostTestBase ()=default
 Clean up test base.
 
RandomEnginerng ()
 Get random number generator with clean counter.
 
void set_inc_direction (Real3 const &dir)
 Set incident photon direction.
 
void set_inc_energy (Energy energy)
 Set incident photon energy.
 
void set_inc_polarization (Real3 const &pol)
 Set incident photon polarization.
 
Real3 const & direction () const
 Get incident photon direction.
 
ParticleTrackView const & particle_track () const
 Get incident photon track view.
 
void check_direction_polarization (Real3 const &dir, Real3 const &pol) const
 
void check_direction_polarization (Interaction const &interaction) const
 
- Public Member Functions inherited from celeritas::test::Test
std::string make_unique_filename (std::string_view ext={})
 Generate test-unique filename.
 

Additional Inherited Members

- Static Public Member Functions inherited from celeritas::test::Test
static std::string test_data_path (std::string_view subdir, std::string_view filename)
 Get the path to a test file at {source}/test/{subdir}/data/{filename}. More...
 
static std::string genericize_pointers (std::string_view s)
 Replace pointer addresses with 0x0 for improved testability.
 
static bool strict_testing ()
 True if strict testing is required. More...
 
- Static Public Attributes inherited from celeritas::test::Test
static constexpr double inf = HUGE_VAL
 
static constexpr float inff = HUGE_VALF
 
static constexpr double coarse_eps = 1e-6
 

Detailed Description

A test base for optical interactions.

Manages the direction and track view of an incident photon, and provides access to a diagnostic RNG engine.

Member Function Documentation

◆ check_direction_polarization() [1/2]

void celeritas::optical::test::InteractorHostTestBase::check_direction_polarization ( Interaction const &  interaction) const

Check direction and polarizations are physical

◆ check_direction_polarization() [2/2]

void celeritas::optical::test::InteractorHostTestBase::check_direction_polarization ( Real3 const &  dir,
Real3 const &  pol 
) const

Check direction and polarizations are physical


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