Celeritas 0.6.0-129+develop.846910afa
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::test::HeuristicGeoTestBase Class Referenceabstract

Manage a "heuristic" stepper-like test that accumulates path length. More...

#include <HeuristicGeoTestBase.hh>

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

Public Types

Type aliases
template<MemSpace M>
using StateStore = CollectionStateStore< HeuristicGeoStateData, M >
 
template<MemSpace M>
using PathLengthRef = Collection< real_type, Ownership::reference, M, ImplVolumeId >
 
using SpanConstReal = Span< real_type const >
 
using SpanConstStr = Span< std::string const >
 
- Public Types inherited from celeritas::test::GlobalTestBase
template<class T >
using SP = std::shared_ptr< T >
 
using SPConstAction = SP< CoreStepActionInterface const >
 
using SPConstCoreGeo = SP< CoreGeoParams const >
 
using SPConstCutoff = SP< CutoffParams const >
 
using SPConstGeoMaterial = SP< GeoMaterialParams const >
 
using SPConstMaterial = SP< MaterialParams const >
 
using SPConstParticle = SP< ParticleParams const >
 
using SPConstPhysics = SP< PhysicsParams const >
 
using SPConstRng = SP< RngParams const >
 
using SPConstSim = SP< SimParams const >
 
using SPConstTrackInit = SP< TrackInitParams const >
 
using SPConstSurface = SP< SurfaceParams const >
 
using SPConstVolume = SP< VolumeParams const >
 
using SPConstWentzelOKVI = SP< WentzelOKVIParams const >
 
using SPActionRegistry = SP< ActionRegistry >
 
using SPOutputRegistry = SP< OutputRegistry >
 
using SPUserRegistry = SP< AuxParamsRegistry >
 
using SPConstCore = SP< CoreParams const >
 
using SPConstCherenkov = SP< CherenkovParams const >
 
using SPConstOpticalMaterial = SP< optical::MaterialParams const >
 
using SPOpticalParams = SP< optical::CoreParams >
 
using SPConstOpticalPhysics = SP< optical::PhysicsParams const >
 
using SPConstScintillation = SP< ScintillationParams const >
 
using SPConstPrimariesAction = SP< ExtendFromPrimariesAction const >
 
using SpanConstPrimary = Span< Primary const >
 
- Public Types inherited from celeritas::test::LazyGeantGeoManager
using SPConstGeoI = std::shared_ptr< GeoParamsInterface const >
 
using SPConstGeantGeo = std::shared_ptr< GeantGeoParams const >
 
using SPConstVolumes = std::shared_ptr< VolumeParams const >
 

Public Member Functions

virtual HeuristicGeoScalars build_scalars () const =0
 Construct problem-specific attributes (sampling box etc)
 
virtual SpanConstStr reference_volumes () const =0
 Build a list of volumes to compare average paths.
 
virtual SpanConstReal reference_avg_path () const =0
 Return the vector of path lengths mapped by sorted volume name.
 
- Public Member Functions inherited from celeritas::test::OnlyGeoTestBase
SPConstParticle build_particle () override
 
SPConstCutoff build_cutoff () override
 
SPConstPhysics build_physics () override
 
SPConstSim build_sim () override
 
SPConstTrackInit build_init () override
 
SPConstAction build_along_step () override
 
SPConstMaterial build_material () override
 
SPConstGeoMaterial build_geomaterial () override
 
SPConstWentzelOKVI build_wentzel () override
 
- Public Member Functions inherited from celeritas::test::OnlyCoreTestBase
SPConstCherenkov build_cherenkov () override
 
SPConstOpticalMaterial build_optical_material () override
 
SPConstOpticalPhysics build_optical_physics () override
 
SPConstScintillation build_scintillation () override
 
- Public Member Functions inherited from celeritas::test::GlobalTestBase
SPConstPrimariesAction constprimaries_action ()
 
void insert_primaries (CoreStateInterface &state, SpanConstPrimary primaries)
 
SPOutputRegistry constoutput_reg () const
 Access output manager.
 
void write_output ()
 Write output to a debug text file.
 
SPConstCoreGeo constgeometry ()
 
SPConstMaterial constmaterial ()
 
SPConstGeoMaterial constgeomaterial ()
 
SPConstParticle constparticle ()
 
SPConstCutoff constcutoff ()
 
SPConstPhysics constphysics ()
 
SPConstAction constalong_step ()
 
SPConstRng constrng ()
 
SPConstSim constsim ()
 
SPConstTrackInit constinit ()
 
SPConstWentzelOKVI constwentzel ()
 
SPActionRegistry constaction_reg ()
 
SPUserRegistry constaux_reg ()
 
SPConstCore constcore ()
 
SPConstCherenkov constcherenkov ()
 
SPActionRegistry constoptical_action_reg ()
 
SPConstOpticalMaterial constoptical_material ()
 
SPOpticalParams constoptical_params ()
 
SPConstOpticalPhysics constoptical_physics ()
 
SPConstScintillation constscintillation ()
 
SPConstCoreGeo constgeometry () const
 
SPConstMaterial constmaterial () const
 
SPConstGeoMaterial constgeomaterial () const
 
SPConstParticle constparticle () const
 
SPConstCutoff constcutoff () const
 
SPConstPhysics constphysics () const
 
SPConstAction constalong_step () const
 
SPConstRng constrng () const
 
SPConstSim constsim () const
 
SPConstTrackInit constinit () const
 
SPConstWentzelOKVI constwentzel () const
 
SPActionRegistry constaction_reg () const
 
SPUserRegistry constaux_reg () const
 
SPConstCore constcore () const
 
SPConstCherenkov constcherenkov () const
 
SPActionRegistry constoptical_action_reg () const
 
SPConstOpticalMaterial constoptical_material () const
 
SPOpticalParams constoptical_params () const
 
SPConstOpticalPhysics constoptical_physics () const
 
SPConstScintillation constscintillation () const
 
- Public Member Functions inherited from celeritas::test::Test
std::string make_unique_filename (std::string_view ext={})
 Generate test-unique filename.
 
- Public Member Functions inherited from celeritas::test::LazyGeantGeoManager
virtual SPConstGeantGeo build_geant_geo (std::string const &filename) const
 Build a Geant4 geometry.
 
std::string constcached_gdml_basename () const
 Access the basename of the geometry that's currently cached.
 
SPConstGeoI lazy_geo () const
 Construct a geometry for the first time.
 
SPConstGeantGeo geant_geo () const
 Access persistent geant geometry after construction.
 
SPConstVolumes volumes () const
 Access volumes from built geometry or geant4 model.
 

Protected Member Functions

void run (size_type num_states, size_type num_steps, real_type tolerance)
 
- Protected Member Functions inherited from celeritas::test::GlobalTestBase
virtual SPConstCoreGeo build_geometry ()
 
void disable_status_checker ()
 
SPConstSurface constsurface () const
 
SPConstVolume constvolume () const
 
SPConstGeoI build_geo_from_geant (SPConstGeantGeo const &) const final
 
SPConstGeoI build_geo_from_gdml (std::string const &filename) const final
 Build from a GDML path as a fallback.
 
virtual std::string_view gdml_basename () const=0
 Get an identifying key for the geometry (basename, description, etc)
 

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}.
 
static bool strict_testing ()
 True if strict testing is required.
 
- Static Public Member Functions inherited from celeritas::test::LazyGeantGeoManager
static void clear_lazy_geo ()
 Reset the secondary geometry manually.
 
- Static Public Attributes inherited from celeritas::test::Test
static constexpr double inf = HUGE_VAL
 
static constexpr float inff = HUGE_VALF
 
static constexpr double fine_eps = 1e-12
 
static constexpr double coarse_eps = 1e-6
 

Detailed Description

Manage a "heuristic" stepper-like test that accumulates path length.

Member Function Documentation

◆ run()

void celeritas::test::HeuristicGeoTestBase::run ( size_type  num_states,
size_type  num_steps,
real_type  tolerance 
)
protected

Run tracks on device and host and compare the resulting path length


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