82 G4Random::getTheEngine();
104 if(retRNG !=
nullptr)
105 G4Random::setTheEngine(retRNG);
110 msg <<
" Unknown type of RNG Engine - " <<
G4endl
111 <<
" Can cope only with HepJamesRandom, MixMaxRng, Ranecu, Ranlux64,"
112 <<
" MTwistEngine, DualRand, Ranlux or Ranshi." <<
G4endl
113 <<
" Cannot clone this type of RNG engine, as required for this thread"
115 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()