Celeritas 0.6.0-2+develop.96611fab
|
Common interface for integrating Celeritas into user applications. More...
#include <IntegrationBase.hh>
Public Member Functions | |
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 () |
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 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. It cannot be accessed before the run manager is created (this requirement may be relaxed in the future).
detail::IntegrationSingleton
.
|
protected |
Initialize logging on first access.
Since this is done during static initialization, it is guaranteed to be thread safe.
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.