Celeritas
0.5.0-56+6b053cd
|
Templated base class for loading geometry. More...
#include <GenericGeoTestBase.hh>
Public Types | |
Type aliases | |
using | SPConstGeo = std::shared_ptr< G const > |
using | GeoTrackView = typename TraitsT::TrackView |
using | TrackingResult = GenericGeoTrackingResult |
using | GeantVolResult = GenericGeoGeantImportVolumeResult |
Public Member Functions | |
virtual std::string | geometry_basename () const |
Get the basename or unique geometry key (defaults to suite name) | |
virtual SPConstGeo | build_geometry ()=0 |
Build the geometry. | |
virtual size_type | num_track_slots () const |
Maximum number of local track slots. | |
virtual real_type | unit_length () const |
Unit length for "track" testing and other results. | |
SPConstGeo | build_geometry_from_basename () |
Construct from celeritas test data and "basename" value. | |
SPConstGeo const & | geometry () |
SPConstGeo const & | geometry () const |
std::string | volume_name (GeoTrackView const &geo) const |
Get the name of the current volume. | |
std::string | surface_name (GeoTrackView const &geo) const |
Get the name of the current surface if available. | |
std::string | all_volume_instance_names (GeoTrackView const &geo) const |
Get the stack of volume instances. | |
GeoTrackView | make_geo_track_view (TrackSlotId tsid=TrackSlotId{0}) |
Get a host track view. | |
GeoTrackView | make_geo_track_view (Real3 const &pos_cm, Real3 dir) |
Get and initialize a single-thread host track view. | |
TrackingResult | track (Real3 const &pos_cm, Real3 const &dir) |
Find linear segments until outside. | |
TrackingResult | track (Real3 const &pos_cm, Real3 const &dir, int max_step) |
Find linear segments until outside (maximum count. | |
GeantVolResult | get_import_geant_volumes (G4VPhysicalVolume const *world) const |
Try to map Geant4 volumes using ImportVolume and name. | |
GeantVolResult | get_direct_geant_volumes (G4VPhysicalVolume const *world) const |
Try to map Geant4 volumes using pointers. | |
Public Member Functions inherited from celeritas::test::Test | |
std::string | make_unique_filename (std::string_view ext={}) |
Generate test-unique filename. | |
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 |
Templated base class for loading geometry.
G | Geometry host params class, e.g. OrangeParams |