83 G4Random::getTheEngine();
118 if (retRNG !=
nullptr) {
119 G4Random::setTheEngine(retRNG);
124 msg <<
" Unknown type of RNG Engine - " <<
G4endl
125 <<
" Can cope only with HepJamesRandom, MixMaxRng, Ranecu, Ranlux64,"
126 <<
" Ranlux++, MTwistEngine, DualRand, Ranlux or Ranshi." <<
G4endl
127 <<
" Cannot clone this type of RNG engine, as required for this thread" <<
G4endl
128 <<
" Aborting " <<
G4endl;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
#define G4MUTEX_INITIALIZER
#define G4THREADJOIN(worker)
void G4THREADCREATE(_Worker *&worker, _Func func, _Args... args)
static void StartThread(G4WorkerThread *context)
virtual void JoinWorker(G4Thread *aThread)
virtual void SetupRNGEngine(const CLHEP::HepRandomEngine *aRNGEngine) const
virtual G4Thread * CreateAndStartWorker(G4WorkerThread *workerThreadContext)
virtual G4WorkerRunManager * CreateWorkerRunManager() const