Celeritas  0.5.0-56+6b053cd
Classes | Public Member Functions | Static Public Member Functions | List of all members
celeritas::test::OrangeGeoTestBase Class Reference

Test base for loading geometry. More...

#include <OrangeGeoTestBase.hh>

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

Classes

struct  OneVolInput
 
struct  TwoVolInput
 

Public Types

Type aliases
using HostStateRef = HostRef< OrangeStateData >
 
using HostParamsRef = HostCRef< OrangeParamsData >
 
using Params = OrangeParams
 
using SPConstParams = std::shared_ptr< OrangeParams const >
 
using Initializer_t = GeoTrackInitializer
 
- Public Types inherited from celeritas::test::GenericGeoTestBase< G >
using SPConstGeo = std::shared_ptr< G const >
 
using GeoTrackView = typename TraitsT::TrackView
 
using TrackingResult = GenericGeoTrackingResult
 
using GeantVolResult = GenericGeoGeantImportVolumeResult
 

Public Member Functions

void build_gdml_geometry (std::string const &filename)
 
void build_geometry (std::string const &filename)
 
void build_geometry (OneVolInput)
 
void build_geometry (TwoVolInput)
 
void build_geometry (UnitInput)
 
Params const & params () const
 Get the data after loading.
 
HostStateRef const & host_state ()
 
HostParamsRef const & host_params () const
 
VolumeId find_volume (std::string const &label) const
 
SurfaceId find_surface (std::string const &label) const
 
std::string id_to_label (UniverseId uid, LocalSurfaceId surfid) const
 
std::string id_to_label (LocalSurfaceId surfid) const
 
std::string id_to_label (UniverseId uid, LocalVolumeId volid) const
 
std::string id_to_label (LocalVolumeId volid) const
 
void describe (std::ostream &os) const
 
VolumeId::size_type num_volumes () const
 
SPConstGeo build_geometry () final
 Build the geometry.
 
- Public Member Functions inherited from celeritas::test::GenericGeoTestBase< G >
virtual std::string geometry_basename () const
 Get the basename or unique geometry key (defaults to suite name)
 
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.
 

Static Public Member Functions

static std::string senses_to_string (Span< Sense const > senses)
 
static std::vector< Sensestring_to_senses (std::string const &s)
 
- 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...
 

Additional Inherited Members

- 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

Test base for loading geometry.


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