Geant4-11
|
#include <RanluxEngine.h>
Public Member Functions | |
double | flat () |
void | flatArray (const int size, double *vect) |
bool | get (const std::vector< unsigned long > &v) |
virtual std::istream & | get (std::istream &is) |
int | getLuxury () const |
long | getSeed () const |
const long * | getSeeds () const |
bool | getState (const std::vector< unsigned long > &v) |
virtual std::istream & | getState (std::istream &is) |
std::string | name () const |
operator double () | |
operator float () | |
operator unsigned int () | |
bool | operator!= (const HepRandomEngine &engine) |
bool | operator== (const HepRandomEngine &engine) |
std::vector< unsigned long > | put () const |
virtual std::ostream & | put (std::ostream &os) const |
RanluxEngine () | |
RanluxEngine (int rowIndex, int colIndex, int lxr) | |
RanluxEngine (long seed, int lxr=3) | |
RanluxEngine (std::istream &is) | |
void | restoreStatus (const char filename[]="Ranlux.conf") |
void | saveStatus (const char filename[]="Ranlux.conf") const |
void | setSeed (long seed, int lxr=3) |
void | setSeeds (const long *seeds, int lxr=3) |
void | showStatus () const |
virtual | ~RanluxEngine () |
Static Public Member Functions | |
static std::string | beginTag () |
static std::string | engineName () |
static HepRandomEngine * | newEngine (const std::vector< unsigned long > &v) |
static HepRandomEngine * | newEngine (std::istream &is) |
Static Public Attributes | |
static const unsigned int | VECTOR_STATE_SIZE = 31 |
Static Protected Member Functions | |
static bool | checkFile (std::istream &file, const std::string &filename, const std::string &classname, const std::string &methodname) |
static double | exponent_bit_32 () |
static double | mantissa_bit_12 () |
static double | mantissa_bit_24 () |
static double | mantissa_bit_32 () |
static double | nearlyTwoToMinus_54 () |
static double | twoToMinus_32 () |
static double | twoToMinus_48 () |
static double | twoToMinus_49 () |
static double | twoToMinus_53 () |
Protected Attributes | |
long | theSeed |
const long * | theSeeds |
Private Attributes | |
float | carry |
int | count24 |
float | float_seed_table [24] |
int | i_lag |
int | j_lag |
int | luxury |
int | nskip |
Static Private Attributes | |
static const int | int_modulus = 0x1000000 |
Definition at line 44 of file RanluxEngine.h.
CLHEP::RanluxEngine::RanluxEngine | ( | std::istream & | is | ) |
Definition at line 122 of file RanluxEngine.cc.
CLHEP::RanluxEngine::RanluxEngine | ( | ) |
Definition at line 79 of file RanluxEngine.cc.
References geant4_check_module_cycles::cycle, CLHEP::HepRandom::getTheTableSeeds(), luxury, CLHEP::anonymous_namespace{RanluxEngine.cc}::maxIndex, CLHEP::anonymous_namespace{RanluxEngine.cc}::numberOfEngines(), setSeed(), setSeeds(), and CLHEP::HepRandomEngine::theSeed.
CLHEP::RanluxEngine::RanluxEngine | ( | long | seed, |
int | lxr = 3 |
||
) |
Definition at line 65 of file RanluxEngine.cc.
References CLHEP::lux, luxury, setSeed(), setSeeds(), and CLHEP::HepRandomEngine::theSeed.
CLHEP::RanluxEngine::RanluxEngine | ( | int | rowIndex, |
int | colIndex, | ||
int | lxr | ||
) |
Definition at line 101 of file RanluxEngine.cc.
References geant4_check_module_cycles::cycle, CLHEP::HepRandom::getTheTableSeeds(), CLHEP::lux, luxury, CLHEP::anonymous_namespace{RanluxEngine.cc}::maxIndex, setSeed(), setSeeds(), and CLHEP::HepRandomEngine::theSeed.
|
virtual |
Definition at line 128 of file RanluxEngine.cc.
|
static |
Definition at line 477 of file RanluxEngine.cc.
|
staticprotectedinherited |
Definition at line 47 of file RandomEngine.cc.
References geant4_check_module_cycles::file.
Referenced by CLHEP::DualRand::restoreStatus(), CLHEP::HepJamesRandom::restoreStatus(), CLHEP::MTwistEngine::restoreStatus(), CLHEP::RanecuEngine::restoreStatus(), restoreStatus(), CLHEP::Ranlux64Engine::restoreStatus(), and CLHEP::RanshiEngine::restoreStatus().
|
inlinestatic |
Definition at line 103 of file RanluxEngine.h.
Referenced by restoreStatus().
|
inlinestaticprotectedinherited |
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 314 of file RanluxEngine.cc.
References carry, count24, float_seed_table, i_lag, j_lag, CLHEP::HepRandomEngine::mantissa_bit_12(), CLHEP::HepRandomEngine::mantissa_bit_24(), and nskip.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 364 of file RanluxEngine.cc.
References carry, count24, float_seed_table, i_lag, j_lag, CLHEP::HepRandomEngine::mantissa_bit_12(), CLHEP::HepRandomEngine::mantissa_bit_24(), and nskip.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 522 of file RanluxEngine.cc.
References getState().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 459 of file RanluxEngine.cc.
References getState(), and CLHEP::MarkerLen.
|
inline |
Definition at line 90 of file RanluxEngine.h.
References luxury.
Referenced by G4WorkerRunManager::G4WorkerRunManager(), and G4UserWorkerThreadInitialization::SetupRNGEngine().
|
inlineinherited |
|
inlineinherited |
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 531 of file RanluxEngine.cc.
References carry, count24, float_seed_table, i_lag, j_lag, luxury, CLHEP::HepRandomEngine::mantissa_bit_24(), nskip, and VECTOR_STATE_SIZE.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 481 of file RanluxEngine.cc.
References carry, count24, float_seed_table, getState(), i_lag, j_lag, luxury, CLHEP::MarkerLen, nskip, CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
Referenced by get(), getState(), and restoreStatus().
|
inlinestaticprotectedinherited |
Referenced by flat(), and flatArray().
|
inlinestaticprotectedinherited |
Referenced by flat(), flatArray(), getState(), put(), setSeed(), and setSeeds().
|
inlinestaticprotectedinherited |
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 63 of file RanluxEngine.cc.
Referenced by source.g4viscp.G4Scene::create_scene(), mcscore.MCParticle::printout(), and source.g4viscp.G4Scene::update_scene().
|
inlinestaticprotectedinherited |
Referenced by CLHEP::DualRand::flat(), CLHEP::MTwistEngine::flat(), and CLHEP::RanshiEngine::flat().
|
staticinherited |
Definition at line 96 of file RandomEngine.cc.
References CLHEP::EngineFactory::newEngine().
|
staticinherited |
Definition at line 91 of file RandomEngine.cc.
References CLHEP::EngineFactory::newEngine().
Referenced by CLHEP::StaticRandomStates::restore().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 417 of file RanluxEngine.cc.
References G4AblaRandom::flat().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 421 of file RanluxEngine.cc.
References G4AblaRandom::flat().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 425 of file RanluxEngine.cc.
References G4AblaRandom::flat().
|
inlineinherited |
|
inlineinherited |
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 443 of file RanluxEngine.cc.
References carry, count24, float_seed_table, i_lag, j_lag, luxury, CLHEP::HepRandomEngine::mantissa_bit_24(), and nskip.
Referenced by put(), and saveStatus().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 432 of file RanluxEngine.cc.
References put().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 264 of file RanluxEngine.cc.
References carry, CLHEP::HepRandomEngine::checkFile(), count24, engineName(), float_seed_table, getState(), i_lag, j_lag, luxury, nskip, CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 252 of file RanluxEngine.cc.
References put().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 130 of file RanluxEngine.cc.
References carry, count24, float_seed_table, i_lag, int_modulus, j_lag, CLHEP::lux, luxury, CLHEP::HepRandomEngine::mantissa_bit_24(), nskip, and CLHEP::HepRandomEngine::theSeed.
Referenced by RanluxEngine(), and setSeeds().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 186 of file RanluxEngine.cc.
References carry, count24, float_seed_table, i_lag, int_modulus, j_lag, CLHEP::lux, luxury, CLHEP::HepRandomEngine::mantissa_bit_24(), nskip, setSeed(), CLHEP::HepRandomEngine::theSeed, and CLHEP::HepRandomEngine::theSeeds.
Referenced by RanluxEngine().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 299 of file RanluxEngine.cc.
References carry, count24, float_seed_table, i_lag, j_lag, luxury, nskip, and CLHEP::HepRandomEngine::theSeed.
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
Referenced by CLHEP::Ranlux64Engine::flat().
|
inlinestaticprotectedinherited |
Referenced by CLHEP::DualRand::flat(), CLHEP::MTwistEngine::flat(), and CLHEP::RanshiEngine::flat().
|
private |
Definition at line 116 of file RanluxEngine.h.
Referenced by flat(), flatArray(), getState(), put(), restoreStatus(), setSeed(), setSeeds(), and showStatus().
|
private |
Definition at line 117 of file RanluxEngine.h.
Referenced by flat(), flatArray(), getState(), put(), restoreStatus(), setSeed(), setSeeds(), and showStatus().
|
private |
Definition at line 114 of file RanluxEngine.h.
Referenced by flat(), flatArray(), getState(), put(), restoreStatus(), setSeed(), setSeeds(), and showStatus().
|
private |
Definition at line 115 of file RanluxEngine.h.
Referenced by flat(), flatArray(), getState(), put(), restoreStatus(), setSeed(), setSeeds(), and showStatus().
|
staticprivate |
Definition at line 118 of file RanluxEngine.h.
Referenced by setSeed(), and setSeeds().
|
private |
Definition at line 115 of file RanluxEngine.h.
Referenced by flat(), flatArray(), getState(), put(), restoreStatus(), setSeed(), setSeeds(), and showStatus().
|
private |
Definition at line 113 of file RanluxEngine.h.
Referenced by getLuxury(), getState(), put(), RanluxEngine(), restoreStatus(), setSeed(), setSeeds(), and showStatus().
|
private |
Definition at line 113 of file RanluxEngine.h.
Referenced by flat(), flatArray(), getState(), put(), restoreStatus(), setSeed(), setSeeds(), and showStatus().
|
protectedinherited |
Definition at line 142 of file RandomEngine.h.
Referenced by CLHEP::DualRand::DualRand(), CLHEP::HepRandomEngine::getSeed(), CLHEP::DualRand::getState(), CLHEP::HepJamesRandom::getState(), CLHEP::MixMaxRng::getState(), CLHEP::MTwistEngine::getState(), CLHEP::RanecuEngine::getState(), CLHEP::Ranlux64Engine::getState(), getState(), CLHEP::RanshiEngine::getState(), CLHEP::HepJamesRandom::HepJamesRandom(), CLHEP::MixMaxRng::MixMaxRng(), CLHEP::RanecuEngine::put(), CLHEP::MixMaxRng::put(), CLHEP::MTwistEngine::put(), CLHEP::RanecuEngine::RanecuEngine(), RanluxEngine(), CLHEP::RanluxppEngine::RanluxppEngine(), CLHEP::RanshiEngine::RanshiEngine(), CLHEP::DualRand::restoreStatus(), CLHEP::HepJamesRandom::restoreStatus(), CLHEP::MTwistEngine::restoreStatus(), CLHEP::RanecuEngine::restoreStatus(), restoreStatus(), CLHEP::Ranlux64Engine::restoreStatus(), CLHEP::RanshiEngine::restoreStatus(), CLHEP::MTwistEngine::saveStatus(), CLHEP::RanecuEngine::setIndex(), CLHEP::RanecuEngine::setSeed(), CLHEP::HepJamesRandom::setSeed(), CLHEP::MixMaxRng::setSeed(), CLHEP::RanluxppEngine::setSeed(), CLHEP::Ranlux64Engine::setSeed(), setSeed(), CLHEP::DualRand::setSeed(), CLHEP::MTwistEngine::setSeed(), CLHEP::RanecuEngine::setSeeds(), CLHEP::Ranlux64Engine::setSeeds(), setSeeds(), CLHEP::MixMaxRng::setSeeds(), CLHEP::RanshiEngine::setSeeds(), CLHEP::DualRand::showStatus(), CLHEP::HepJamesRandom::showStatus(), CLHEP::MTwistEngine::showStatus(), CLHEP::RanecuEngine::showStatus(), CLHEP::Ranlux64Engine::showStatus(), showStatus(), and CLHEP::RanshiEngine::showStatus().
|
protectedinherited |
Definition at line 143 of file RandomEngine.h.
Referenced by CLHEP::HepRandomEngine::getSeeds(), CLHEP::RanecuEngine::RanecuEngine(), CLHEP::RanecuEngine::setIndex(), CLHEP::RanecuEngine::setSeed(), CLHEP::HepJamesRandom::setSeeds(), CLHEP::RanluxppEngine::setSeeds(), CLHEP::RanecuEngine::setSeeds(), CLHEP::Ranlux64Engine::setSeeds(), setSeeds(), CLHEP::MixMaxRng::setSeeds(), CLHEP::DualRand::setSeeds(), CLHEP::MTwistEngine::setSeeds(), and CLHEP::RanshiEngine::setSeeds().
|
static |
Definition at line 109 of file RanluxEngine.h.
Referenced by getState(), and restoreStatus().