Celeritas 0.7.0-dev.79+develop.b3dc2e108
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::test::IntegrationTestBase Class Referenceabstract

Help set up Geant4 for integration testing. More...

#include <IntegrationTestBase.hh>

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

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

G4RunManagerrun_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 (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}.
 
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
 

Detailed Description

Help set up Geant4 for integration testing.

Calling setup_run_manager will:

The detector construction will:

The action initialization will create several classes which can dispatch back to the test harness:

The run manager will be deleted when the GoogleTest harness is torn down.

Member Function Documentation

◆ gdml_basename()

virtual std::string_view celeritas::test::IntegrationTestBase::gdml_basename ( ) const
pure virtual

Set the GDML filename (in test/geocel/data without ".gdml")

Implemented in celeritas::test::LarSphereIntegrationMixin, and celeritas::test::TestEm3IntegrationMixin.

◆ make_primary_input()

virtual PrimaryInput celeritas::test::IntegrationTestBase::make_primary_input ( ) const
pure virtual

Create options for the primary generator.

Implemented in celeritas::test::LarSphereIntegrationMixin, and celeritas::test::TestEm3IntegrationMixin.


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