29 #ifdef G4MULTITHREADED
74 if ( deleteEngine ) {
delete theEngine; theEngine = 0; }
80 return theEngine->
flat();
154 theEngine = theNewEngine;
200 if (theGenerator)
return 1;
210 if (isActive)
return isActive;
215 if (!defaultEngine) {
220 if ( !theEngine ) { theEngine = defaultEngine; }
221 if ( !theGenerator ) { theGenerator =
new G4MTHepRandom( theEngine ); }
static G4long getTheSeed()
static CLHEP::HepRandomEngine * getTheEngine()
virtual void showStatus() const =0
shared_ptr< HepRandom > theGenerator
static G4MTHepRandom * getTheGenerator()
shared_ptr< HepRandomEngine > theEngine
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
const long * getSeeds() const
static void setTheSeed(G4long seed, G4int lux=3)
static std::istream & restoreFullState(std::istream &is)
static std::ostream & saveStaticRandomStates(std::ostream &os)
static std::istream & restoreStaticRandomStates(std::istream &is)
virtual void restoreStatus(const char filename[]="Config.conf")=0
static G4int createInstanceOnce()
virtual void setSeed(long seed, int)=0
static void showEngineStatus()
static std::ostream & saveFullState(std::ostream &os)
static std::istream & restore(std::istream &is)
virtual void setSeeds(const long *seeds, int)=0
virtual std::ostream & put(std::ostream &os) const
static std::ostream & save(std::ostream &os)
static void restoreEngineStatus(const char filename[]="Config.conf")
std::ostream & operator<<(std::ostream &, const BasicVector3D< float > &)
std::istream & operator>>(std::istream &, BasicVector3D< float > &)
virtual std::istream & get(std::istream &is)
static const G4long * getTheSeeds()
virtual void saveStatus(const char filename[]="Config.conf") const =0
virtual G4double operator()()
void flatArray(const G4int size, G4double *vect)
virtual void flatArray(const int size, double *vect)=0