Celeritas
0.5.0-56+6b053cd
|
Test harness base class for EM physics models. More...
#include <InteractorHostTestBase.hh>
Public Member Functions | |
ImportProcess | make_import_process (PDGNumber particle, PDGNumber secondary, ImportProcessClass ipc, std::vector< ImportModelClass > models) const |
void | check_conservation (Interaction const &interaction) const |
void | check_energy_conservation (Interaction const &interaction) const |
void | check_momentum_conservation (Interaction const &interaction) const |
void | set_material_params (MaterialParams::Input inp) |
std::shared_ptr< MaterialParams const > const & | material_params () const |
void | set_particle_params (ParticleParams::Input inp) |
std::shared_ptr< ParticleParams const > const & | particle_params () const |
void | set_cutoff_params (CutoffParams::Input inp) |
std::shared_ptr< CutoffParams const > const & | cutoff_params () const |
void | set_imported_processes (std::vector< ImportProcess > inp) |
std::shared_ptr< ImportedProcesses const > const & | imported_processes () const |
void | set_material (std::string const &name) |
MaterialTrackView & | material_track () |
void | set_inc_particle (PDGNumber n, MevEnergy energy) |
void | set_inc_direction (Real3 const &dir) |
Real3 const & | direction () const |
ParticleTrackView const & | particle_track () const |
void | resize_secondaries (int count) |
SecondaryAllocator & | secondary_allocator () |
RandomEngine & | rng () |
Public Member Functions inherited from celeritas::test::Test | |
std::string | make_unique_filename (std::string_view ext={}) |
Generate test-unique filename. | |
Type aliases | |
using | RandomEngine = DiagnosticRngEngine< std::mt19937 > |
using | MevEnergy = units::MevEnergy |
using | Action = Interaction::Action |
using | SecondaryAllocator = StackAllocator< Secondary > |
using | constSpanSecondaries = Span< Secondary const > |
InteractorHostTestBase () | |
~InteractorHostTestBase () | |
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 |
Test harness base class for EM physics models.
Initialize and destroy
Initialize and destroy
Initialize and destroy
using celeritas::test::InteractorHostTestBase::RandomEngine = DiagnosticRngEngine<std::mt19937> |
Initialize and destroy
Initialize and destroy
celeritas::test::InteractorHostTestBase::InteractorHostTestBase | ( | ) |
Initialize and destroy
celeritas::test::InteractorHostTestBase::~InteractorHostTestBase | ( | ) |
Initialize and destroy
|
inline |
Set and get cutoff params
|
inline |
Incident particle properties and access
|
inline |
Set and get imported processes
|
inline |
Set and get material properties
|
inline |
Material properties
|
inline |
Set and get particle params
|
inline |
Incident particle properties and access
void celeritas::test::InteractorHostTestBase::resize_secondaries | ( | int | count | ) |
Secondary stack storage and access
|
inline |
Get random number generator with clean counter
|
inline |
Secondary stack storage and access
void celeritas::test::InteractorHostTestBase::set_cutoff_params | ( | CutoffParams::Input | inp | ) |
Set and get cutoff params
void celeritas::test::InteractorHostTestBase::set_imported_processes | ( | std::vector< ImportProcess > | inp | ) |
Set and get imported processes
void celeritas::test::InteractorHostTestBase::set_inc_direction | ( | Real3 const & | dir | ) |
Incident particle properties and access
Incident particle properties and access
void celeritas::test::InteractorHostTestBase::set_material | ( | std::string const & | name | ) |
Material properties
void celeritas::test::InteractorHostTestBase::set_material_params | ( | MaterialParams::Input | inp | ) |
Set and get material properties
void celeritas::test::InteractorHostTestBase::set_particle_params | ( | ParticleParams::Input | inp | ) |
Set and get particle params