|
Celeritas 0.7.0-dev.161+develop.301cbc939
|
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. | |
Public Member Functions inherited from celeritas::IntegrationBase | |
| void | SetOptions (SetupOptions &&opts) |
| Set options before starting the run. | |
| OffloadMode | GetMode () const |
| Access whether Celeritas is set up, enabled, or uninitialized. | |
| 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 TrackingManagerIntegration & | Instance () |
| Access the public-facing integration singleton. | |
Additional Inherited Members | |
Protected Member Functions inherited from celeritas::IntegrationBase | |
| IntegrationBase () | |
| Initialize MPI and 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:
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.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.