103 G4Random::getTheEngine();
149 if(retRNG !=
nullptr)
151 G4Random::setTheEngine(retRNG);
157 msg <<
" Unknown type of RNG Engine - " <<
G4endl
158 <<
" Can cope only with HepJamesRandom, MixMaxRng, Ranecu, Ranlux64,"
159 <<
" Ranlux++, MTwistEngine, DualRand, Ranlux or Ranshi." <<
G4endl
160 <<
" Cannot clone this type of RNG engine, as required for this thread"
162 G4Exception(
"G4UserWorkerThreadInitialization::SetupRNGEngine()",
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 ~G4UserWorkerThreadInitialization()
virtual void JoinWorker(G4Thread *aThread)
virtual void SetupRNGEngine(const CLHEP::HepRandomEngine *aRNGEngine) const
G4UserWorkerThreadInitialization()
virtual G4Thread * CreateAndStartWorker(G4WorkerThread *workerThreadContext)
virtual G4WorkerRunManager * CreateWorkerRunManager() const