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

Load a Geant4 geometry and clean up as needed. More...

#include <GeantLoadTestBase.hh>

Inheritance diagram for celeritas::g4org::test::GeantLoadTestBase:
Inheritance graph
[legend]

Public Member Functions

std::string_view gdml_basename () const
 Get filename or relative path.
 
SPConstGeoI build_geo_from_geant (SPConstGeantGeo const &g) const final
 Only geant4 construction is done.
 
void load_gdml (std::string const &filename)
 
void load_test_gdml (std::string_view basename)
 
GeantGeoParams constgeo () const
 Access the geo params after loading.
 
- 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.
 
virtual SPConstGeoI build_geo_from_gdml (std::string const &filename) const
 Build from a GDML path as a fallback.
 
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.
 

Additional Inherited Members

- 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 >
 
- 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

Load a Geant4 geometry and clean up as needed.

Member Function Documentation

◆ build_geo_from_geant()

SPConstGeoI celeritas::g4org::test::GeantLoadTestBase::build_geo_from_geant ( SPConstGeantGeo const g) const
inlinefinalvirtual

Only geant4 construction is done.

Implements celeritas::test::LazyGeantGeoManager.

◆ gdml_basename()

std::string_view celeritas::g4org::test::GeantLoadTestBase::gdml_basename ( ) const
inlinevirtual

Get filename or relative path.

Implements celeritas::test::LazyGeantGeoManager.


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