42 #ifdef G4MULTITHREADED
59 #ifdef G4MULTITHREADED
86 G4Random::getTheEngine();
91 if ( dynamic_cast<const CLHEP::HepJamesRandom*>(aNewRNG) ) {
94 if ( dynamic_cast<const CLHEP::MixMaxRng*>(aNewRNG) ) {
97 if ( dynamic_cast<const CLHEP::RanecuEngine*>(aNewRNG) ) {
100 if ( dynamic_cast<const CLHEP::Ranlux64Engine*>(aNewRNG) ) {
104 if ( dynamic_cast<const CLHEP::MTwistEngine*>(aNewRNG) ) {
107 if ( dynamic_cast<const CLHEP::DualRand*>(aNewRNG) ) {
110 if ( dynamic_cast<const CLHEP::RanluxEngine*>(aNewRNG) ) {
114 if ( dynamic_cast<const CLHEP::RanshiEngine*>(aNewRNG) ) {
119 G4Random::setTheEngine( retRNG );
125 msg<<
" Unknown type of RNG Engine - " <<
G4endl
126 <<
" Can cope only with HepJamesRandom, MixMaxRng, Ranecu, Ranlux64,"
127 <<
" MTwistEngine, DualRand, Ranlux or Ranshi."
129 <<
" Cannot clone this type of RNG engine, as required for this thread" <<
G4endl
130 <<
" Aborting " <<
G4endl;
131 G4Exception(
"G4UserWorkerInitializition::SetupRNGEngine()",