35 #ifndef G4MTHepRandom_h
36 #define G4MTHepRandom_h 1
38 #include <CLHEP/Random/RandomEngine.h>
39 #include <CLHEP/Random/RandExponential.h>
40 #include <CLHEP/Random/RandFlat.h>
41 #include <CLHEP/Random/RandBit.h>
42 #include <CLHEP/Random/RandGamma.h>
43 #include <CLHEP/Random/RandGaussQ.h>
44 #include <CLHEP/Random/RandGeneral.h>
74 inline G4double flat (CLHEP::HepRandomEngine* theNewEngine);
77 inline void flatArray(CLHEP::HepRandomEngine* theNewEngine,
85 virtual std::ostream &
put ( std::ostream & os )
const;
86 virtual std::istream &
get ( std::istream & is );
111 static void setTheEngine (CLHEP::HepRandomEngine* theNewEngine);
static G4long getTheSeed()
static CLHEP::HepRandomEngine * getTheEngine()
static std::ostream & saveDistState(std::ostream &os)
static G4MTHepRandom * getTheGenerator()
static G4ThreadLocal G4MTHepRandom * theGenerator
std::istream & operator>>(std::istream &is, G4MTHepRandom &dist)
static G4int createInstance()
static void setTheSeeds(const G4long *seeds, G4int aux=-1)
static constexpr double lux
static void setTheEngine(CLHEP::HepRandomEngine *theNewEngine)
static void getTheTableSeeds(G4long *seeds, G4int index)
static void saveEngineStatus(const char filename[]="Config.conf")
static void setTheSeed(G4long seed, G4int lux=3)
static std::istream & restoreDistState(std::istream &is)
static std::istream & restoreFullState(std::istream &is)
static std::ostream & saveStaticRandomStates(std::ostream &os)
static std::istream & restoreStaticRandomStates(std::istream &is)
static G4int createInstanceOnce()
static void showEngineStatus()
static std::ostream & saveFullState(std::ostream &os)
static G4ThreadLocal G4int isActive
virtual std::ostream & put(std::ostream &os) const
static void restoreEngineStatus(const char filename[]="Config.conf")
std::ostream & operator<<(std::ostream &os, const G4MTHepRandom &dist)
static const G4long * getTheSeeds()
virtual G4double operator()()
void flatArray(const G4int size, G4double *vect)
static G4ThreadLocal CLHEP::HepRandomEngine * theEngine