|
Celeritas 0.7.0-dev.223+develop.d66098c0
|
A test base for optical interactions. More...
#include <InteractorHostTestBase.hh>

Public Types | |
Type aliases | |
| using | RandomEngine = DiagnosticRngEngine< std::mt19937 > |
| using | Energy = units::MevEnergy |
| using | Action = Interaction::Action |
Public Member Functions | |
| InteractorHostBase () | |
| Initialize test base. | |
| virtual | ~InteractorHostBase ()=default |
| Clean up test base. | |
| RandomEngine & | rng () |
| 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. | |
| SimTrackView const & | sim_track () const |
| Get simulation track view. | |
| void | check_direction_polarization (Real3 const &dir, Real3 const &pol) const |
| void | check_direction_polarization (Interaction const &interaction) const |
A test base for optical interactions.
Manages the direction and track view of an incident photon, and provides access to a diagnostic RNG engine.
| void celeritas::optical::test::InteractorHostBase::check_direction_polarization | ( | Interaction const & | interaction | ) | const |
Check direction and polarizations are physical
| void celeritas::optical::test::InteractorHostBase::check_direction_polarization | ( | Real3 const & | dir, |
| Real3 const & | pol | ||
| ) | const |
Check direction and polarizations are physical