|
Celeritas 0.7.0-dev.164+develop.929c81eeb
|
Help set up Geant4 for integration testing. More...
#include <IntegrationTestBase.hh>

Public Types | |
Type aliases | |
| using | PrimaryInput = celeritas::inp::CorePrimaryGenerator |
| using | PhysicsInput = celeritas::GeantPhysicsOptions |
| using | UPPhysicsList = std::unique_ptr< G4VModularPhysicsList > |
| using | UPTrackAction = std::unique_ptr< G4UserTrackingAction > |
| using | UPStepAction = std::unique_ptr< G4UserSteppingAction > |
| using | UPSensDet = std::unique_ptr< G4VSensitiveDetector > |
Public Member Functions | |
| std::string | make_unique_filename (std::string_view ext) override |
| Generate test-unique filename. | |
| G4RunManager & | run_manager () |
| virtual std::string_view | gdml_basename () const =0 |
| Set the GDML filename (in test/geocel/data without ".gdml") | |
| virtual PrimaryInput | make_primary_input () const =0 |
| Create options for the primary generator. | |
| virtual PhysicsInput | make_physics_input () const |
| virtual UPPhysicsList | make_physics_list () const |
| virtual UPTrackAction | make_tracking_action () |
| virtual UPStepAction | make_stepping_action () |
| virtual SetupOptions | make_setup_options () |
| virtual UPSensDet | make_sens_det (std::string const &sd_name) |
Dispatch from user run/event actions | |
| virtual void | BeginOfRunAction (G4Run const *run)=0 |
| virtual void | EndOfRunAction (G4Run const *run)=0 |
| virtual void | BeginOfEventAction (G4Event const *event)=0 |
| virtual void | EndOfEventAction (G4Event const *event)=0 |
Public Member Functions inherited from celeritas::test::Test | |
| std::string | make_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}. | |
| 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 |
Help set up Geant4 for integration testing.
Calling setup_run_manager will:
gdml_basename on the main thread to load the detectormake_physics_list The detector construction will:
make_sens_det on each worker threadThe action initialization will create several classes which can dispatch back to the test harness:
make_primary_input The run manager will be deleted when the GoogleTest harness is torn down.
|
pure virtual |
Set the GDML filename (in test/geocel/data without ".gdml")
Implemented in celeritas::test::LarSphereIntegrationMixin, celeritas::test::TestEm3IntegrationMixin, and celeritas::test::OpNoviceIntegrationMixin.
|
pure virtual |
Create options for the primary generator.
Implemented in celeritas::test::LarSphereIntegrationMixin, celeritas::test::TestEm3IntegrationMixin, and celeritas::test::OpNoviceIntegrationMixin.
|
overridevirtual |
Generate test-unique filename.
Reimplemented from celeritas::test::Test.