Template Class RMGWorkerInitialization

Inheritance Relationships

Base Type

  • public ThreadInitialization

Class Documentation

template<typename ThreadInitialization>
class RMGWorkerInitialization : public ThreadInitialization

Worker-thread initialization that honours remage’s RNG configuration.

Mixin template parameterized on a Geant4 worker initialization (e.g. G4UserWorkerThreadInitialization or G4UserTaskThreadInitialization). When the user has explicitly selected a random engine through RMGManager, that engine is installed on the worker thread; otherwise Geant4’s default per-thread seeding strategy is used.

Public Functions

RMGWorkerInitialization() = default
~RMGWorkerInitialization() = default
inline void SetupRNGEngine(const CLHEP::HepRandomEngine *aRNGEngine) const override

Install the user-selected random engine on this worker, or fall back to Geant4’s.