Celeritas 0.6.0-rc.2.10+develop.de0a3a05
|
Common interface for integrating Celeritas into user applications. More...
#include <IntegrationBase.hh>
Public Member Functions | |
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. | |
virtual void | BeginOfRunAction (G4Run const *run)=0 |
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. | |
Protected Member Functions | |
CELER_DEFAULT_COPY_MOVE (IntegrationBase) | |
Common interface for integrating Celeritas into user applications.
This implements common functionality for the Celeritas integration classes. The GetParams
and GetState
methods may only be used during a run with Celeritas offloading enabled.
detail::IntegrationSingleton
. void celeritas::IntegrationBase::Build | ( | ) |
Initialize during ActionInitialization on a worker thread or serial mode.
We guard against Build
being called from BuildForMaster
since we might add worker-specific code here.
void celeritas::IntegrationBase::SetOptions | ( | SetupOptions && | opts | ) |
Set options before starting the run.
This captures the input to indicate that options cannot be modified after this point.