29 #ifdef G4MULTITHREADED
31 #include <CLHEP/Random/StaticRandomStates.h>
32 #include <CLHEP/Random/JamesRandom.h>
183 return CLHEP::StaticRandomStates::save(os);
188 return CLHEP::StaticRandomStates::restore(is);
214 static G4ThreadLocal CLHEP::HepJamesRandom *defaultEngine = 0;
215 if (!defaultEngine) {
217 defaultEngine =
new CLHEP::HepJamesRandom;
static G4long getTheSeed()
static CLHEP::HepRandomEngine * getTheEngine()
shared_ptr< HepRandom > theGenerator
static G4MTHepRandom * getTheGenerator()
shared_ptr< HepRandomEngine > theEngine
static G4ThreadLocal G4MTHepRandom * theGenerator
static G4int createInstance()
static void setTheSeeds(const G4long *seeds, G4int aux=-1)
static void setTheEngine(CLHEP::HepRandomEngine *theNewEngine)
static void saveEngineStatus(const char filename[]="Config.conf")
#define G4MUTEX_INITIALIZER
static void setTheSeed(G4long seed, G4int lux=3)
static std::istream & restoreFullState(std::istream &is)
static std::ostream & saveStaticRandomStates(std::ostream &os)
std::istream & operator>>(std::istream &is, HepAxisAngle &aa)
static std::istream & restoreStaticRandomStates(std::istream &is)
static G4int createInstanceOnce()
static void showEngineStatus()
static std::ostream & saveFullState(std::ostream &os)
static G4ThreadLocal G4int isActive
std::ostream & operator<<(std::ostream &ostr, const G4String &astr)
virtual std::ostream & put(std::ostream &os) const
static void restoreEngineStatus(const char filename[]="Config.conf")
virtual std::istream & get(std::istream &is)
static const G4long * getTheSeeds()
virtual G4double operator()()
void flatArray(const G4int size, G4double *vect)
static G4ThreadLocal CLHEP::HepRandomEngine * theEngine