Celeritas  0.5.0-86+4a8eea4
Public Member Functions | Protected Member Functions | List of all members
celeritas::test::GlobalTestBase Class Referenceabstract

Lazily construct core parameters, individually or together. More...

#include <GlobalTestBase.hh>

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

Public Member Functions

SPConstPrimariesAction const & primaries_action ()
 
void insert_primaries (CoreStateInterface &state, SpanConstPrimary primaries)
 
SPOutputRegistry const & output_reg () const
 Access output manager.
 
void write_output ()
 Write output to a debug text file.
 
- Public Member Functions inherited from celeritas::test::Test
std::string make_unique_filename (std::string_view ext={})
 Generate test-unique filename.
 

Protected Member Functions

virtual SPConstGeo build_geometry ()=0
 
virtual SPConstMaterial build_material ()=0
 
virtual SPConstGeoMaterial build_geomaterial ()=0
 
virtual SPConstParticle build_particle ()=0
 
virtual SPConstCutoff build_cutoff ()=0
 
virtual SPConstPhysics build_physics ()=0
 
virtual SPConstSim build_sim ()=0
 
virtual SPConstTrackInit build_init ()=0
 
virtual SPConstWentzelOKVI build_wentzel ()=0
 
virtual SPConstAction build_along_step ()=0
 
virtual SPConstCherenkov build_cherenkov ()=0
 
virtual SPConstOpticalMaterial build_optical_material ()=0
 
virtual SPConstScintillation build_scintillation ()=0
 
void disable_status_checker ()
 

Type aliases

template<class T >
using SP = std::shared_ptr< T >
 
using SPConstGeo = SP< GeoParams const >
 
using SPConstMaterial = SP< MaterialParams const >
 
using SPConstGeoMaterial = SP< GeoMaterialParams const >
 
using SPConstParticle = SP< ParticleParams const >
 
using SPConstCutoff = SP< CutoffParams const >
 
using SPConstPhysics = SP< PhysicsParams const >
 
using SPConstAction = SP< CoreStepActionInterface const >
 
using SPConstRng = SP< RngParams const >
 
using SPConstSim = SP< SimParams const >
 
using SPConstTrackInit = SP< TrackInitParams const >
 
using SPConstWentzelOKVI = SP< WentzelOKVIParams const >
 
using SPConstCore = SP< CoreParams const >
 
using SPActionRegistry = SP< ActionRegistry >
 
using SPOutputRegistry = SP< OutputRegistry >
 
using SPUserRegistry = SP< AuxParamsRegistry >
 
using SPConstCherenkov = SP< optical::CherenkovParams const >
 
using SPConstOpticalMaterial = SP< optical::MaterialParams const >
 
using SPConstScintillation = SP< optical::ScintillationParams const >
 
using SPConstPrimariesAction = SP< ExtendFromPrimariesAction const >
 
using SpanConstPrimary = Span< Primary const >
 
SPConstGeo const & geometry ()
 
SPConstMaterial const & material ()
 
SPConstGeoMaterial const & geomaterial ()
 
SPConstParticle const & particle ()
 
SPConstCutoff const & cutoff ()
 
SPConstPhysics const & physics ()
 
SPConstAction const & along_step ()
 
SPConstRng const & rng ()
 
SPConstSim const & sim ()
 
SPConstTrackInit const & init ()
 
SPConstWentzelOKVI const & wentzel ()
 
SPActionRegistry const & action_reg ()
 
SPUserRegistry const & aux_reg ()
 
SPConstCore const & core ()
 
SPConstCherenkov const & cherenkov ()
 
SPConstOpticalMaterial const & optical_material ()
 
SPConstScintillation const & scintillation ()
 
SPConstGeo const & geometry () const
 
SPConstMaterial const & material () const
 
SPConstGeoMaterial const & geomaterial () const
 
SPConstParticle const & particle () const
 
SPConstCutoff const & cutoff () const
 
SPConstPhysics const & physics () const
 
SPConstAction const & along_step () const
 
SPConstRng const & rng () const
 
SPConstSim const & sim () const
 
SPConstTrackInit const & init () const
 
SPConstWentzelOKVI const & wentzel () const
 
SPActionRegistry const & action_reg () const
 
SPUserRegistry const & aux_reg () const
 
SPConstCore const & core () const
 
SPConstCherenkov const & cherenkov () const
 
SPConstOpticalMaterial const & optical_material () const
 
SPConstScintillation const & scintillation () const
 

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

Lazily construct core parameters, individually or together.

Note
Inherit from this class (or GlobalGeoTestBase) using virtual public so that tests can create mixins (see e.g. SimpleStepperTest).

Member Typedef Documentation

◆ SP

template<class T >
using celeritas::test::GlobalTestBase::SP = std::shared_ptr<T>

Access lazily constructed objects.

◆ SPActionRegistry

Access lazily constructed objects.

◆ SpanConstPrimary

Access lazily constructed objects.

◆ SPConstAction

Access lazily constructed objects.

◆ SPConstCherenkov

Access lazily constructed objects.

◆ SPConstCore

Access lazily constructed objects.

◆ SPConstCutoff

Access lazily constructed objects.

◆ SPConstGeo

Access lazily constructed objects.

◆ SPConstGeoMaterial

Access lazily constructed objects.

◆ SPConstMaterial

Access lazily constructed objects.

◆ SPConstOpticalMaterial

Access lazily constructed objects.

◆ SPConstParticle

Access lazily constructed objects.

◆ SPConstPhysics

Access lazily constructed objects.

◆ SPConstPrimariesAction

Access lazily constructed objects.

◆ SPConstRng

Access lazily constructed objects.

◆ SPConstScintillation

Access lazily constructed objects.

◆ SPConstSim

Access lazily constructed objects.

◆ SPConstTrackInit

Access lazily constructed objects.

◆ SPConstWentzelOKVI

Access lazily constructed objects.

◆ SPOutputRegistry

Access lazily constructed objects.

◆ SPUserRegistry

Access lazily constructed objects.

Member Function Documentation

◆ action_reg() [1/2]

auto celeritas::test::GlobalTestBase::action_reg ( )
inline

Access lazily constructed objects.

◆ action_reg() [2/2]

auto celeritas::test::GlobalTestBase::action_reg ( ) const
inline

Access lazily constructed objects.

◆ along_step() [1/2]

auto celeritas::test::GlobalTestBase::along_step ( )
inline

Access lazily constructed objects.

◆ along_step() [2/2]

auto celeritas::test::GlobalTestBase::along_step ( ) const
inline

Access lazily constructed objects.

◆ aux_reg() [1/2]

auto celeritas::test::GlobalTestBase::aux_reg ( )
inline

Access lazily constructed objects.

◆ aux_reg() [2/2]

auto celeritas::test::GlobalTestBase::aux_reg ( ) const
inline

Access lazily constructed objects.

◆ cherenkov() [1/2]

auto celeritas::test::GlobalTestBase::cherenkov ( )
inline

Access lazily constructed objects.

◆ cherenkov() [2/2]

auto celeritas::test::GlobalTestBase::cherenkov ( ) const
inline

Access lazily constructed objects.

◆ core() [1/2]

auto celeritas::test::GlobalTestBase::core ( )
inline

Access lazily constructed objects.

◆ core() [2/2]

auto celeritas::test::GlobalTestBase::core ( ) const
inline

Access lazily constructed objects.

◆ cutoff() [1/2]

auto celeritas::test::GlobalTestBase::cutoff ( )
inline

Access lazily constructed objects.

◆ cutoff() [2/2]

auto celeritas::test::GlobalTestBase::cutoff ( ) const
inline

Access lazily constructed objects.

◆ geomaterial() [1/2]

auto celeritas::test::GlobalTestBase::geomaterial ( )
inline

Access lazily constructed objects.

◆ geomaterial() [2/2]

auto celeritas::test::GlobalTestBase::geomaterial ( ) const
inline

Access lazily constructed objects.

◆ geometry() [1/2]

auto celeritas::test::GlobalTestBase::geometry ( )
inline

Access lazily constructed objects.

◆ geometry() [2/2]

auto celeritas::test::GlobalTestBase::geometry ( ) const
inline

Access lazily constructed objects.

◆ init() [1/2]

auto celeritas::test::GlobalTestBase::init ( )
inline

Access lazily constructed objects.

◆ init() [2/2]

auto celeritas::test::GlobalTestBase::init ( ) const
inline

Access lazily constructed objects.

◆ material() [1/2]

auto celeritas::test::GlobalTestBase::material ( )
inline

Access lazily constructed objects.

◆ material() [2/2]

auto celeritas::test::GlobalTestBase::material ( ) const
inline

Access lazily constructed objects.

◆ optical_material() [1/2]

auto celeritas::test::GlobalTestBase::optical_material ( )
inline

Access lazily constructed objects.

◆ optical_material() [2/2]

auto celeritas::test::GlobalTestBase::optical_material ( ) const
inline

Access lazily constructed objects.

◆ particle() [1/2]

auto celeritas::test::GlobalTestBase::particle ( )
inline

Access lazily constructed objects.

◆ particle() [2/2]

auto celeritas::test::GlobalTestBase::particle ( ) const
inline

Access lazily constructed objects.

◆ physics() [1/2]

auto celeritas::test::GlobalTestBase::physics ( )
inline

Access lazily constructed objects.

◆ physics() [2/2]

auto celeritas::test::GlobalTestBase::physics ( ) const
inline

Access lazily constructed objects.

◆ rng() [1/2]

auto celeritas::test::GlobalTestBase::rng ( )
inline

Access lazily constructed objects.

◆ rng() [2/2]

auto celeritas::test::GlobalTestBase::rng ( ) const
inline

Access lazily constructed objects.

◆ scintillation() [1/2]

auto celeritas::test::GlobalTestBase::scintillation ( )
inline

Access lazily constructed objects.

◆ scintillation() [2/2]

auto celeritas::test::GlobalTestBase::scintillation ( ) const
inline

Access lazily constructed objects.

◆ sim() [1/2]

auto celeritas::test::GlobalTestBase::sim ( )
inline

Access lazily constructed objects.

◆ sim() [2/2]

auto celeritas::test::GlobalTestBase::sim ( ) const
inline

Access lazily constructed objects.

◆ wentzel() [1/2]

auto celeritas::test::GlobalTestBase::wentzel ( )
inline

Access lazily constructed objects.

◆ wentzel() [2/2]

auto celeritas::test::GlobalTestBase::wentzel ( ) const
inline

Access lazily constructed objects.


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