Celeritas 0.6.0-67+develop.47f47c88
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::optical::test::InteractorHostBase Class Reference

A test base for optical interactions. More...

#include <InteractorHostTestBase.hh>

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

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.
 
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 constdirection () const
 Get incident photon direction.
 
ParticleTrackView constparticle_track () const
 Get incident photon track view.
 
SimTrackView constsim_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
 

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::InteractorHostBase::check_direction_polarization ( Interaction const interaction) const

Check direction and polarizations are physical

◆ check_direction_polarization() [2/2]

void celeritas::optical::test::InteractorHostBase::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: