Celeritas 0.7.0-dev.172+develop.fe2a0acd4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
celeritas::test::TwoBoxesGeoTest Class Reference

Test the two-box geometry. More...

#include <GeoTests.hh>

Public Member Functions

 TwoBoxesGeoTest (GenericGeoTestInterface *geo_test)
 Construct with a reference to the GoogleTest.
 
void test_accessors () const
 Test geometry accessors.
 
void test_detailed_tracking () const
 
void test_reentrant () const
 Cross into a new volume and then reflect into the old.
 
void test_tangent () const
 Instead of crossing into a new volume, reflect without exiting.
 
void test_trace () const
 

Static Public Member Functions

static std::string_view gdml_basename ()
 

Detailed Description

Test the two-box geometry.

Inner box inner enclosed in an outer box world . The box's half-width is 5 cm.

Member Function Documentation

◆ test_reentrant()

void celeritas::test::TwoBoxesGeoTest::test_reentrant ( ) const

Cross into a new volume and then reflect into the old.

This is how optical physics is performed: we enter the new volume to determine its characteristics, then apply the optical surface crossing, which might reflect back into the original.

◆ test_tangent()

void celeritas::test::TwoBoxesGeoTest::test_tangent ( ) const

Instead of crossing into a new volume, reflect without exiting.

This simulates a looping track almost tangent to a geometry boundary. The end-of-step direction is changed to account for the momentum vector's end-of-step state, and the boundary isn't actually exited when we call cross boundary.


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