|
Celeritas 0.7.0-dev.205+develop.57aed2a38
|
Manage offloading of tracks to Celeritas. More...
#include <LocalTransporter.hh>

Public Member Functions | |
| LocalTransporter (SetupOptions const &options, SharedParams ¶ms) | |
| Construct with shared (MT) params. | |
| void | Push (G4Track &) |
| Convert a Geant4 track to a Celeritas primary and add to buffer. | |
| void | SetEventId (int id) |
| CoreStateInterface const & | GetState () const |
| Access core state data for user diagnostics. | |
| CoreStateInterface & | GetState () |
| Access core state data for user diagnostics. | |
| operator bool () const | |
| Whether the class instance is initialized. | |
LocalOffload interface | |
| void | Initialize (SetupOptions const &options, SharedParams ¶ms) final |
| Helper for making initialization more obvious from user code. | |
| void | InitializeEvent (int) final |
| Set the event ID and reseed the Celeritas RNG at the start of an event. | |
| void | Flush () final |
| Transport the buffered tracks and all secondaries produced. | |
| void | Finalize () final |
| Clear local data. | |
| bool | Initialized () const final |
| Helper for making initialization more obvious from user code. | |
| size_type | GetBufferSize () const final |
| Helper for making initialization more obvious from user code. | |
| MapStrDbl | GetActionTime () const final |
| Get the accumulated action times. | |
Public Member Functions inherited from celeritas::LocalOffloadInterface | |
| operator bool () const | |
| Whether the class instance is initialized. | |
Additional Inherited Members | |
Public Types inherited from celeritas::LocalOffloadInterface | |
| using | MapStrDbl = std::unordered_map< std::string, double > |
Protected Member Functions inherited from celeritas::LocalOffloadInterface | |
| CELER_DEFAULT_COPY_MOVE (LocalOffloadInterface) | |
Manage offloading of tracks to Celeritas.
This class must be constructed locally on each worker thread/task/stream, usually as a shared pointer that's accessible to:
LocalOffload or something?
|
finalvirtual |
Clear local data.
This may need to be executed on the same thread it was created in order to safely deallocate some Geant4 objects under the hood...
Implements celeritas::LocalOffloadInterface.
|
finalvirtual |
Transport the buffered tracks and all secondaries produced.
Abort cleanly for interrupt and user-defined (i.e., job manager) signals.
Implements celeritas::LocalOffloadInterface.
|
finalvirtual |
Get the accumulated action times.
Implements celeritas::LocalOffloadInterface.
|
inlinefinalvirtual |
Helper for making initialization more obvious from user code.
This gives it some symmetry with Finalize, which is provided as an exception-friendly destructor.
Implements celeritas::LocalOffloadInterface.
|
inlinefinalvirtual |
Helper for making initialization more obvious from user code.
This gives it some symmetry with Finalize, which is provided as an exception-friendly destructor.
Implements celeritas::LocalOffloadInterface.
|
inlinefinalvirtual |
Helper for making initialization more obvious from user code.
This gives it some symmetry with Finalize, which is provided as an exception-friendly destructor.
Implements celeritas::LocalOffloadInterface.
Set the event ID and reseed the Celeritas RNG at the start of an event.
Implements celeritas::LocalOffloadInterface.
Convert a Geant4 track to a Celeritas primary and add to buffer.