Celeritas 0.6.0-rc.2.10+develop.de0a3a05
|
Simple interface for G4VTrackingManager-based integration. More...
#include <TrackingManagerIntegration.hh>
Public Member Functions | |
void | BeginOfRunAction (G4Run const *run) final |
Start the run, initializing Celeritas options. | |
![]() | |
void | SetOptions (SetupOptions &&opts) |
Set options before starting the run. | |
void | BuildForMaster () |
Initialize during ActionInitialization on non-worker thread in MT mode. | |
void | Build () |
Initialize during ActionInitialization on a worker thread or serial mode. | |
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 TrackingManagerIntegration & | Instance () |
Access the public-facing integration singleton. | |
Additional Inherited Members | |
![]() | |
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:
TrackingManagerConstructor
class to add the Celeritas tracking manager to your physics list.SetOptions
to set up options before G4RunManager::Initialize:
usually in main
for simple applications.Build
and BuildForMaster
from UserActionInitialization
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.