Celeritas 0.7.0-dev.127+develop.e63889793
|
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. | |
OffloadMode | GetMode () const |
Access whether Celeritas is set up, enabled, or uninitialized. | |
void | BuildForMaster () |
void | Build () |
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 | |
IntegrationBase () | |
Initialize MPI and logging on first access. | |
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.
This and the integration daughters all share common data in detail::IntegrationSingleton
.
OffloadMode celeritas::IntegrationBase::GetMode | ( | ) | const |
Access whether Celeritas is set up, enabled, or uninitialized.
This is only legal to call after SetOptions
.
CoreStateInterface & celeritas::IntegrationBase::GetState | ( | ) |
Access THREAD-LOCAL Celeritas core state data for user diagnostics.
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.