Celeritas 0.6.0-47+develop.b3cbb238
|
Load problem data directly from Geant4. More...
#include <GeantImporter.hh>
Public Types | |
Type aliases | |
using | DataSelection = GeantImportDataSelection |
using | SPGeantGeo = GeantSetup::SPGeantGeo |
Public Member Functions | |
GeantImporter () | |
Construct from an existing Geant4 geometry, assuming physics is loaded. | |
GeantImporter (GeantSetup &&setup) | |
Construct by capturing a GeantSetup object. | |
ImportData | operator() (DataSelection const &selection) |
Load data from Geant4. | |
ImportData | operator() () final |
Fill all available data from Geant4. | |
SPGeantGeo const & | geo_params () const |
Get the constructed geometry if using setup (may be null) | |
Additional Inherited Members | |
![]() | |
CELER_DEFAULT_COPY_MOVE (ImporterInterface) | |
Load problem data directly from Geant4.
This can be used to circumvent ROOT as a serialization tool, whether to simplify the toolchain or to integrate better with user frameworks. As much data as possible is imported (subject to the data selection); downstream Celeritas classes will validate the imported data as needed.
or to import from an existing, initialized Geant4 state:
|
inlinefinalvirtual |
Fill all available data from Geant4.
Implements celeritas::ImporterInterface.