82 G4Random::getTheEngine();
106 if(retRNG !=
nullptr)
107 G4Random::setTheEngine(retRNG);
112 msg <<
" Unknown type of RNG Engine - " <<
G4endl
113 <<
" Can cope only with HepJamesRandom, MixMaxRng, Ranecu, Ranlux64,"
114 <<
" Ranlux++, MTwistEngine, DualRand, Ranlux or Ranshi." <<
G4endl
115 <<
" Cannot clone this type of RNG engine, as required for this thread"
117 G4Exception(
"G4UserTaskInitializition::SetupRNGEngine()",
"Run0122",
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
#define G4THREADJOIN(worker)
virtual G4WorkerRunManager * CreateWorkerRunManager() const
virtual void JoinWorker(G4Thread *aThread)
G4UserTaskThreadInitialization()
virtual void SetupRNGEngine(const CLHEP::HepRandomEngine *aRNGEngine) const
virtual G4Thread * CreateAndStartWorker(G4WorkerThread *workerThreadContext)
virtual ~G4UserTaskThreadInitialization()