Celeritas 0.6.0-2+develop.96611fab
|
Simple interface for G4VTrackingManager-based integration. More...
#include <FastSimulationIntegration.hh>
Public Member Functions | |
void | BeginOfRunAction (G4Run const *run) final |
Start the run, initializing Celeritas options. | |
![]() | |
OffloadMode | GetMode () const |
Access whether Celeritas is set up, enabled, or uninitialized. | |
void | SetOptions (SetupOptions &&opts) |
Set options before starting the run. | |
void | BuildForMaster () |
void | Build () |
void | EndOfRunAction (G4Run const *run) |
End the run. | |
CoreParams const & | GetParams () |
Access Celeritas shared params. | |
CoreStateInterface & | GetState () |
Access THREAD-LOCAL Celeritas core state data for user diagnostics. | |
Static Public Member Functions | |
static FastSimulationIntegration & | Instance () |
Access the public-facing integration singleton. | |
Additional Inherited Members | |
![]() | |
IntegrationBase () | |
Initialize logging on first access. | |
CELER_DEFAULT_COPY_MOVE (IntegrationBase) | |
Simple interface for G4VTrackingManager-based integration.
This singleton integrates both thread-local and global data with the user application. To use this class in your Geant4 application to offload tracks to Celeritas:
FastSimulationModel
to regions of interest.SetOptions
to set up options before G4RunManager::Initialize:
usually in main
for simple applications.BeginOfRunAction
and EndOfRunAction
from UserRunAction
The CELER_DISABLE
environment variable, if set and non-empty, will disable offloading so that Celeritas will not be built nor kill tracks.
The method names correspond to methods in Geant4 User Actions and must be called from all threads, both worker and master.
Start the run, initializing Celeritas options.
Implements celeritas::IntegrationBase.