Celeritas 0.7.0-dev.245+develop.a7be925e
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
celeritas::test::VecgeomTestBase Class Reference
Inheritance diagram for celeritas::test::VecgeomTestBase:
Inheritance graph
[legend]

Public Types

using SpanStringView = Span< std::string_view const >
 
- Public Types inherited from celeritas::test::GenericGeoTestBase< VecgeomParams >
using SPConstGeo = std::shared_ptr< VecgeomParams const >
 
using WrappedGeoTrack = WrappedGeoTrackView< typename TraitsT::TrackView >
 
- Public Types inherited from celeritas::test::GenericGeoTestInterface
using TrackingResult = GenericGeoTrackingResult
 
using VolumeStackResult = GenericGeoVolumeStackResult
 
using GeoTrackView = GeoTrackInterface< real_type >
 
using UPGeoTrack = std::unique_ptr< GeoTrackView >
 
- 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 SpanStringView expected_log_levels () const
 
SPConstGeo build_geometry () const override
 Build the geometry, defaulting to using the lazy Geant4 construction.
 
bool supports_surface_normal () const override
 Whether surface normals work for the current geometry/test.
 
GenericGeoTrackingTolerance tracking_tol () const override
 Get the safety tolerance (defaults to SoftEq tol).
 
- Public Member Functions inherited from celeritas::test::GenericGeoTestBase< VecgeomParams >
 GenericGeoTestBase ()
 Default constructor.
 
 GenericGeoTestBase (GenericGeoTestBase const &)=delete
 
 GenericGeoTestBase (GenericGeoTestBase &&)=delete
 
virtual ~GenericGeoTestBase ()
 Anchored destructor.
 
GenericGeoTestBaseoperator= (GenericGeoTestBase const &)=delete
 
GenericGeoTestBaseoperator= (GenericGeoTestBase &&)=delete
 
void SetUp () override
 Build geometry during setup.
 
SPConstGeo const & geometry ()
 
SPConstGeo const & geometry () const
 
WrappedGeoTrack make_geo_track_view (TrackSlotId tsid=TrackSlotId{0})
 Get a host track view.
 
WrappedGeoTrack make_geo_track_view (Real3 const &pos_cm, Real3 dir)
 Get and initialize a single-thread host track view.
 
UPGeoTrack make_geo_track_view_interface () final
 Create a track view.
 
std::string_view geometry_type () const final
 Get the label for this geometry: Geant4, VecGeom, ORANGE.
 
SPConstGeoI geometry_interface () const final
 Access the geometry interface, building if needed.
 
- Public Member Functions inherited from celeritas::test::Test
virtual std::string make_unique_filename (std::string_view ext)
 Generate test-unique filename.
 
std::string make_unique_filename ()
 
- Public Member Functions inherited from celeritas::test::GenericGeoTestInterface
TrackingResult track (Real3 const &pos_cm, Real3 const &dir, int max_steps=50)
 Track until exiting the geometry.
 
VolumeStackResult volume_stack (Real3 const &pos_cm)
 Get the volume instance stack at a position.
 
std::string_view gdml_basename () const override
 Return test suite name by default.
 
CheckedGeoTrackView make_checked_track_view ()
 Create a track view with runtime error checking.
 
virtual UnitLength unit_length () const
 Unit length for "track" testing and other results (defaults to cm).
 
virtual size_type num_track_slots () const
 
GeoTrackInitializer make_initializer (Real3 const &pos_unit, Real3 const &dir) const
 Construct an initializer with correct scaling/normalization.
 
std::string volume_name (GeoTrackView const &geo) const
 Get the name of the current volume.
 
std::string unique_volume_name (GeoTrackView const &geo) const
 Get the stack of volume instances.
 
- 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.
 

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

Member Function Documentation

◆ build_geometry()

SPConstGeo celeritas::test::VecgeomTestBase::build_geometry ( ) const
overridevirtual

Build the geometry, defaulting to using the lazy Geant4 construction.

Reimplemented from celeritas::test::GenericGeoTestBase< VecgeomParams >.

◆ supports_surface_normal()

bool celeritas::test::VecgeomTestBase::supports_surface_normal ( ) const
inlineoverridevirtual

Whether surface normals work for the current geometry/test.

This defaults to true and should be disabled per geometry implementation/geometry class.

Reimplemented from celeritas::test::GenericGeoTestInterface.

◆ tracking_tol()

GenericGeoTrackingTolerance celeritas::test::VecgeomTestBase::tracking_tol ( ) const
overridevirtual

Get the safety tolerance (defaults to SoftEq tol).

Reimplemented from celeritas::test::GenericGeoTestInterface.


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