Celeritas  0.5.0-56+6b053cd
List of all members
celeritas::test::NeutronTestBase Class Reference

Test harness base class for Neutron physics models. More...

#include <NeutronTestBase.hh>

Inheritance diagram for celeritas::test::NeutronTestBase:
Inheritance graph
[legend]

Public Member Functions

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_material (std::string const &name)
 
MaterialTrackViewmaterial_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
 
RandomEnginerng ()
 
- 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
 
 NeutronTestBase ()
 
 ~NeutronTestBase ()
 

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

Test harness base class for Neutron physics models.

Member Typedef Documentation

◆ Action

Initialize and destroy

◆ MevEnergy

Initialize and destroy

◆ RandomEngine

Initialize and destroy

Constructor & Destructor Documentation

◆ NeutronTestBase()

celeritas::test::NeutronTestBase::NeutronTestBase ( )

Initialize and destroy

◆ ~NeutronTestBase()

celeritas::test::NeutronTestBase::~NeutronTestBase ( )

Initialize and destroy

Member Function Documentation

◆ direction()

Real3 const& celeritas::test::NeutronTestBase::direction ( ) const
inline

Incident particle properties and access

◆ material_params()

std::shared_ptr<MaterialParams const> const& celeritas::test::NeutronTestBase::material_params ( ) const
inline

Set and get material properties

◆ material_track()

MaterialTrackView& celeritas::test::NeutronTestBase::material_track ( )
inline

Material properties

◆ particle_params()

std::shared_ptr<ParticleParams const> const& celeritas::test::NeutronTestBase::particle_params ( ) const
inline

Set and get particle params

◆ particle_track()

ParticleTrackView const& celeritas::test::NeutronTestBase::particle_track ( ) const
inline

Incident particle properties and access

◆ rng()

RandomEngine& celeritas::test::NeutronTestBase::rng ( )
inline

Get random number generator with clean counter

◆ set_inc_direction()

void celeritas::test::NeutronTestBase::set_inc_direction ( Real3 const &  dir)

Incident particle properties and access

◆ set_inc_particle()

void celeritas::test::NeutronTestBase::set_inc_particle ( PDGNumber  n,
MevEnergy  energy 
)

Incident particle properties and access

◆ set_material()

void celeritas::test::NeutronTestBase::set_material ( std::string const &  name)

Material properties

◆ set_material_params()

void celeritas::test::NeutronTestBase::set_material_params ( MaterialParams::Input  inp)

Set and get material properties

◆ set_particle_params()

void celeritas::test::NeutronTestBase::set_particle_params ( ParticleParams::Input  inp)

Set and get particle params


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