Geant4-11
|
#include <Random.h>
Public Member Functions | |
virtual HepRandomEngine & | engine () |
double | flat () |
double | flat (HepRandomEngine *theNewEngine) |
void | flatArray (const int size, double *vect) |
void | flatArray (HepRandomEngine *theNewEngine, const int size, double *vect) |
virtual std::istream & | get (std::istream &is) |
HepRandom () | |
HepRandom (HepRandomEngine &algorithm) | |
HepRandom (HepRandomEngine *algorithm) | |
HepRandom (long seed) | |
virtual std::string | name () const |
virtual double | operator() () |
virtual std::ostream & | put (std::ostream &os) const |
virtual | ~HepRandom () |
Static Public Member Functions | |
static int | createInstance () |
static std::string | distributionName () |
static HepRandomEngine * | getTheEngine () |
static HepRandom * | getTheGenerator () |
static long | getTheSeed () |
static const long * | getTheSeeds () |
static void | getTheTableSeeds (long *seeds, int index) |
static std::istream & | restoreDistState (std::istream &is) |
static void | restoreEngineStatus (const char filename[]="Config.conf") |
static std::istream & | restoreFullState (std::istream &is) |
static std::istream & | restoreStaticRandomStates (std::istream &is) |
static std::ostream & | saveDistState (std::ostream &os) |
static void | saveEngineStatus (const char filename[]="Config.conf") |
static std::ostream & | saveFullState (std::ostream &os) |
static std::ostream & | saveStaticRandomStates (std::ostream &os) |
static void | setTheEngine (HepRandomEngine *theNewEngine) |
static void | setTheSeed (long seed, int lxr=3) |
static void | setTheSeeds (const long *seeds, int aux=-1) |
static void | showEngineStatus () |
Static Protected Attributes | |
static const long | seedTable [215][2] |
CLHEP::HepRandom::HepRandom | ( | long | seed | ) |
CLHEP::HepRandom::HepRandom | ( | HepRandomEngine & | algorithm | ) |
Definition at line 186 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::defaults::resetEngine(), and CLHEP::anonymous_namespace{Random.cc}::theDefaults().
CLHEP::HepRandom::HepRandom | ( | HepRandomEngine * | algorithm | ) |
Definition at line 191 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::defaults::resetEngine(), and CLHEP::anonymous_namespace{Random.cc}::theDefaults().
|
static |
Definition at line 311 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::defaults::ensureInitialized(), and CLHEP::anonymous_namespace{Random.cc}::theDefaults().
|
inlinestatic |
|
virtual |
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandExpZiggurat, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 214 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
double CLHEP::HepRandom::flat | ( | ) |
Definition at line 199 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
Referenced by CLHEP::RandExponential::shoot().
|
inline |
void CLHEP::HepRandom::flatArray | ( | const int | size, |
double * | vect | ||
) |
Definition at line 204 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
inline |
|
virtual |
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBit, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandExpZiggurat, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 228 of file Random.cc.
Referenced by CLHEP::operator>>().
|
static |
Definition at line 268 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
Referenced by CLHEP::StaticRandomStates::restore(), CLHEP::RandFlat::restoreEngineStatus(), CLHEP::RandGauss::restoreEngineStatus(), CLHEP::RandFlat::saveEngineStatus(), CLHEP::RandGauss::saveEngineStatus(), CLHEP::RandExponential::shoot(), CLHEP::RandExpZiggurat::shoot(), CLHEP::RandFlat::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandGaussZiggurat::shoot(), CLHEP::RandChiSquare::shoot(), CLHEP::RandStudentT::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandGamma::shoot(), CLHEP::RandPoisson::shoot(), CLHEP::RandPoissonQ::shoot(), CLHEP::RandBinomial::shoot(), and CLHEP::RandFlat::shootArray().
|
static |
Definition at line 263 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theGenerator.
|
static |
Definition at line 239 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
static |
Definition at line 249 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
static |
Definition at line 254 of file Random.cc.
Referenced by CLHEP::HepJamesRandom::HepJamesRandom(), CLHEP::MTwistEngine::MTwistEngine(), CLHEP::RanecuEngine::RanecuEngine(), CLHEP::Ranlux64Engine::Ranlux64Engine(), CLHEP::RanluxEngine::RanluxEngine(), and CLHEP::RanecuEngine::setSeed().
|
virtual |
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBit, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandExpZiggurat, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 213 of file Random.cc.
Referenced by source.g4viscp.G4Scene::create_scene(), mcscore.MCParticle::printout(), and source.g4viscp.G4Scene::update_scene().
|
virtual |
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandExpZiggurat, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 209 of file Random.cc.
References G4AblaRandom::flat().
|
virtual |
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBit, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandExpZiggurat, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 227 of file Random.cc.
Referenced by CLHEP::operator<<().
|
inlinestatic |
|
static |
Definition at line 283 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
static |
Definition at line 293 of file Random.cc.
Referenced by CLHEP::RandFlat::restoreFullState(), and CLHEP::RandGauss::restoreFullState().
|
static |
Definition at line 302 of file Random.cc.
References CLHEP::StaticRandomStates::restore().
|
inlinestatic |
|
static |
Definition at line 278 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
Referenced by G4CascadeInterface::ApplyYourself(), G4HadronicProcess::PostStepDoIt(), and G4CascadeInterface::Propagate().
|
static |
Definition at line 288 of file Random.cc.
Referenced by G4EventManager::DoProcessing(), G4EventManager::ProcessOneEvent(), CLHEP::RandFlat::saveFullState(), and CLHEP::RandGauss::saveFullState().
|
static |
Definition at line 298 of file Random.cc.
References CLHEP::StaticRandomStates::save().
|
static |
Definition at line 273 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
Referenced by CLHEP::StaticRandomStates::restore().
|
static |
Definition at line 234 of file Random.cc.
References CLHEP::lux, CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
static |
Definition at line 244 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
static |
Definition at line 306 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.