Celeritas  0.5.0-86+4a8eea4
Classes | Public Member Functions | List of all members
celeritas::GeantSetup Class Reference

Construct a Geant 4 run manager and populate internal Geant4 physics. More...

#include <GeantSetup.hh>

Public Types

Type aliases
using Options = GeantPhysicsOptions
 

Public Member Functions

 GeantSetup (std::string const &gdml_filename, Options options)
 Construct from a GDML file and physics options.
 
 ~GeantSetup ()
 Terminate the run manager on destruction.
 
 CELER_DEFAULT_MOVE_DELETE_COPY (GeantSetup)
 Prevent copying but allow moving.
 
G4VPhysicalVolume const * world () const
 Get the world detector volume.
 
 operator bool () const
 True if we own a run manager.
 

Detailed Description

Construct a Geant 4 run manager and populate internal Geant4 physics.

This is usually passed directly into GeantImporter . It hides Geant4 implementation details (including header files) from the rest of the code. It is safe to include even when Geant4 is unavailable!

The setup is targeted specifically for physics that Celeritas supports.


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