|
Celeritas 0.7.0-dev.164+develop.929c81eeb
|
Base class for managing a persistent geometry built from Geant4. More...
#include <LazyGeantGeoManager.hh>

Public Types | |
Type aliases | |
| 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 std::string_view | gdml_basename () const =0 |
| Get an identifying key for the geometry (basename, description, etc) | |
| virtual SPConstGeantGeo | build_geant_geo (std::string const &filename) const |
| Build a Geant4 geometry. | |
| virtual SPConstGeoI | build_geo_from_geant (SPConstGeantGeo const &) const =0 |
| virtual SPConstGeoI | build_geo_from_gdml (std::string const &filename) const |
| Build from a GDML path as a fallback. | |
| std::string const & | cached_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. | |
Static Public Member Functions | |
| static void | clear_lazy_geo () |
| Reset the secondary geometry manually. | |
Base class for managing a persistent geometry built from Geant4.
Daughter classes must implement build_from_geant , and gdml_basename must return a filename prefix to a GDML file in geocel/test.
|
virtual |
Build a Geant4 geometry.
Reimplemented in celeritas::test::SDTestBase, and celeritas::test::GeantTestBase.
|
virtual |
Build from a GDML path as a fallback.
Reimplemented in celeritas::test::GlobalTestBase.
|
pure virtual |
Implemented in celeritas::g4org::test::GeantLoadTestBase.
|
static |
Reset the secondary geometry manually.
This is needed by AllGeoTypedTestBase, where multiple versions of the same Geant4 geometry are loaded in a single test.
|
pure virtual |
Get an identifying key for the geometry (basename, description, etc)
Implemented in celeritas::g4org::test::GeantLoadTestBase, celeritas::test::MscTestBase, celeritas::test::InvalidOrangeTestBase, celeritas::test::LArSphereBase, celeritas::test::LeadBoxTestBase, celeritas::test::MockTestBase, celeritas::test::OneSteelSphereBase, celeritas::optical::test::OpticalMockTestBase, celeritas::test::SimpleCmsTestBase, celeritas::test::SimpleTestBase, celeritas::test::TestEm15Base, celeritas::test::TestEm3Base, celeritas::test::GenericGeoTestBase< G >, celeritas::test::GenericGeoTestBase< HP >, celeritas::test::GenericGeoTestBase< OrangeParams >, celeritas::test::GenericGeoTestBase< VecgeomParams >, and celeritas::test::GlobalTestBase.