|
Celeritas 0.7.0-dev.313+develop.1857205b
|
Common interface for integrating Celeritas into user applications. More...
#include <IntegrationBase.hh>

Public Member Functions | |
| void | BuildForMaster () |
| void | Build () |
User integration points | |
| void | SetOptions (SetupOptions &&opts) |
| Set options before starting the run. | |
| void | BeginOfRunAction (G4Run const *run) |
| Start the run. | |
| void | EndOfRunAction (G4Run const *run) |
| End the run. | |
Low-level Celeritas accessors | |
| OffloadMode | GetMode () const |
| Access whether Celeritas is set up, enabled, or uninitialized. | |
| CoreParams const & | GetParams () |
| Access global Celeritas shared params during a run, if not disabled. | |
| CoreStateInterface & | GetState () |
| Access thread-local Celeritas core state data for user diagnostics. | |
Protected Member Functions | |
| IntegrationBase () | |
| Initialize MPI and logging on first access. | |
| IntegrationBase (IntegrationBase const &)=default | |
| IntegrationBase & | operator= (IntegrationBase const &)=default |
| IntegrationBase (IntegrationBase &&)=default | |
| IntegrationBase & | operator= (IntegrationBase &&)=default |
| virtual void | verify_local_setup ()=0 |
| Verify setup after initialization (called if thread is doing offload) | |
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.
Start the run.
This handles shared/local setup and calls verify_setup if offload is enabled.
| 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 by the framework after this point.