Geant4-11
|
#include <RanecuEngine.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) |
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 |
RanecuEngine () | |
RanecuEngine (int index) | |
RanecuEngine (std::istream &is) | |
void | restoreStatus (const char filename[]="Ranecu.conf") |
void | saveStatus (const char filename[]="Ranecu.conf") const |
void | setIndex (long index) |
void | setSeed (long index, int dum=0) |
void | setSeeds (const long *seeds, int index=-1) |
void | showStatus () const |
virtual | ~RanecuEngine () |
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 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 |
Static Protected Attributes | |
static const int | ecuyer_a = 40014 |
static const int | ecuyer_b = 53668 |
static const int | ecuyer_c = 12211 |
static const int | ecuyer_d = 40692 |
static const int | ecuyer_e = 52774 |
static const int | ecuyer_f = 3791 |
static const int | shift1 = 2147483563 |
static const int | shift2 = 2147483399 |
static const unsigned int | VECTOR_STATE_SIZE = 4 |
Private Member Functions | |
void | further_randomize (int seq, int col, int index, int modulus) |
Private Attributes | |
int | seq |
long | table [215][2] |
Static Private Attributes | |
static const int | maxSeq = 215 |
Definition at line 46 of file RanecuEngine.h.
CLHEP::RanecuEngine::RanecuEngine | ( | std::istream & | is | ) |
Definition at line 105 of file RanecuEngine.cc.
CLHEP::RanecuEngine::RanecuEngine | ( | ) |
Definition at line 71 of file RanecuEngine.cc.
References geant4_check_module_cycles::cycle, CLHEP::HepRandom::getTheTableSeeds(), maxSeq, CLHEP::anonymous_namespace{RanecuEngine.cc}::numberOfEngines(), seq, table, CLHEP::HepRandomEngine::theSeed, and CLHEP::HepRandomEngine::theSeeds.
CLHEP::RanecuEngine::RanecuEngine | ( | int | index | ) |
Definition at line 89 of file RanecuEngine.cc.
References geant4_check_module_cycles::cycle, further_randomize(), CLHEP::HepRandom::getTheTableSeeds(), maxSeq, seq, shift1, table, CLHEP::HepRandomEngine::theSeed, and CLHEP::HepRandomEngine::theSeeds.
|
virtual |
Definition at line 111 of file RanecuEngine.cc.
|
static |
Definition at line 317 of file RanecuEngine.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(), restoreStatus(), CLHEP::RanluxEngine::restoreStatus(), CLHEP::Ranlux64Engine::restoreStatus(), and CLHEP::RanshiEngine::restoreStatus().
|
inlinestatic |
Definition at line 99 of file RanecuEngine.h.
Referenced by restoreStatus().
|
inlinestaticprotectedinherited |
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 199 of file RanecuEngine.cc.
References ecuyer_a, ecuyer_b, ecuyer_c, ecuyer_d, ecuyer_e, ecuyer_f, CLHEP::prec, seq, shift1, shift2, and table.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 222 of file RanecuEngine.cc.
References ecuyer_a, ecuyer_b, ecuyer_c, ecuyer_d, ecuyer_e, ecuyer_f, CLHEP::prec, seq, shift1, shift2, and table.
|
private |
Definition at line 65 of file RanecuEngine.cc.
References table.
Referenced by RanecuEngine(), and setSeed().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 360 of file RanecuEngine.cc.
References getState().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 298 of file RanecuEngine.cc.
References getState(), and CLHEP::MarkerLen.
|
inlineinherited |
|
inlineinherited |
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 369 of file RanecuEngine.cc.
References seq, table, CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 321 of file RanecuEngine.cc.
References getState(), CLHEP::MarkerLen, CLHEP::possibleKeywordInput(), seq, table, CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
Referenced by get(), getState(), and restoreStatus().
|
inlinestaticprotectedinherited |
Referenced by CLHEP::RanluxEngine::flat(), and CLHEP::RanluxEngine::flatArray().
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 63 of file RanecuEngine.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 249 of file RanecuEngine.cc.
References G4AblaRandom::flat().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 253 of file RanecuEngine.cc.
References G4AblaRandom::flat().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 257 of file RanecuEngine.cc.
|
inlineinherited |
|
inlineinherited |
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 289 of file RanecuEngine.cc.
References table, and CLHEP::HepRandomEngine::theSeed.
Referenced by put(), and saveStatus().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 278 of file RanecuEngine.cc.
References put().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 155 of file RanecuEngine.cc.
References CLHEP::HepRandomEngine::checkFile(), engineName(), getState(), CLHEP::possibleKeywordInput(), seq, table, CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 142 of file RanecuEngine.cc.
References put().
void CLHEP::RanecuEngine::setIndex | ( | long | index | ) |
Definition at line 135 of file RanecuEngine.cc.
References maxSeq, seq, table, CLHEP::HepRandomEngine::theSeed, and CLHEP::HepRandomEngine::theSeeds.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 113 of file RanecuEngine.cc.
References further_randomize(), CLHEP::HepRandom::getTheTableSeeds(), maxSeq, seq, shift1, shift2, table, CLHEP::HepRandomEngine::theSeed, and CLHEP::HepRandomEngine::theSeeds.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 123 of file RanecuEngine.cc.
References maxSeq, pos, seq, shift1, shift2, table, CLHEP::HepRandomEngine::theSeed, and CLHEP::HepRandomEngine::theSeeds.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 188 of file RanecuEngine.cc.
References table, 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().
|
staticprotected |
Definition at line 109 of file RanecuEngine.h.
Referenced by flat(), and flatArray().
|
staticprotected |
Definition at line 110 of file RanecuEngine.h.
Referenced by flat(), and flatArray().
|
staticprotected |
Definition at line 111 of file RanecuEngine.h.
Referenced by flat(), and flatArray().
|
staticprotected |
Definition at line 112 of file RanecuEngine.h.
Referenced by flat(), and flatArray().
|
staticprotected |
Definition at line 113 of file RanecuEngine.h.
Referenced by flat(), and flatArray().
|
staticprotected |
Definition at line 114 of file RanecuEngine.h.
Referenced by flat(), and flatArray().
|
staticprivate |
Definition at line 127 of file RanecuEngine.h.
Referenced by RanecuEngine(), setIndex(), setSeed(), and setSeeds().
|
private |
Definition at line 129 of file RanecuEngine.h.
Referenced by flat(), flatArray(), getState(), RanecuEngine(), restoreStatus(), setIndex(), setSeed(), and setSeeds().
|
staticprotected |
Definition at line 115 of file RanecuEngine.h.
Referenced by flat(), flatArray(), RanecuEngine(), setSeed(), and setSeeds().
|
staticprotected |
Definition at line 116 of file RanecuEngine.h.
Referenced by flat(), flatArray(), setSeed(), and setSeeds().
|
private |
Definition at line 128 of file RanecuEngine.h.
Referenced by flat(), flatArray(), further_randomize(), getState(), put(), RanecuEngine(), restoreStatus(), setIndex(), 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(), getState(), CLHEP::Ranlux64Engine::getState(), CLHEP::RanluxEngine::getState(), CLHEP::RanshiEngine::getState(), CLHEP::HepJamesRandom::HepJamesRandom(), CLHEP::MixMaxRng::MixMaxRng(), put(), CLHEP::MixMaxRng::put(), CLHEP::MTwistEngine::put(), RanecuEngine(), CLHEP::RanluxEngine::RanluxEngine(), CLHEP::RanluxppEngine::RanluxppEngine(), CLHEP::RanshiEngine::RanshiEngine(), CLHEP::DualRand::restoreStatus(), CLHEP::HepJamesRandom::restoreStatus(), CLHEP::MTwistEngine::restoreStatus(), restoreStatus(), CLHEP::RanluxEngine::restoreStatus(), CLHEP::Ranlux64Engine::restoreStatus(), CLHEP::RanshiEngine::restoreStatus(), CLHEP::MTwistEngine::saveStatus(), setIndex(), setSeed(), CLHEP::HepJamesRandom::setSeed(), CLHEP::MixMaxRng::setSeed(), CLHEP::RanluxppEngine::setSeed(), CLHEP::Ranlux64Engine::setSeed(), CLHEP::RanluxEngine::setSeed(), CLHEP::DualRand::setSeed(), CLHEP::MTwistEngine::setSeed(), setSeeds(), CLHEP::Ranlux64Engine::setSeeds(), CLHEP::RanluxEngine::setSeeds(), CLHEP::MixMaxRng::setSeeds(), CLHEP::RanshiEngine::setSeeds(), CLHEP::DualRand::showStatus(), CLHEP::HepJamesRandom::showStatus(), CLHEP::MTwistEngine::showStatus(), showStatus(), CLHEP::Ranlux64Engine::showStatus(), CLHEP::RanluxEngine::showStatus(), and CLHEP::RanshiEngine::showStatus().
|
protectedinherited |
Definition at line 143 of file RandomEngine.h.
Referenced by CLHEP::HepRandomEngine::getSeeds(), RanecuEngine(), setIndex(), setSeed(), CLHEP::HepJamesRandom::setSeeds(), CLHEP::RanluxppEngine::setSeeds(), setSeeds(), CLHEP::Ranlux64Engine::setSeeds(), CLHEP::RanluxEngine::setSeeds(), CLHEP::MixMaxRng::setSeeds(), CLHEP::DualRand::setSeeds(), CLHEP::MTwistEngine::setSeeds(), and CLHEP::RanshiEngine::setSeeds().
|
staticprotected |
Definition at line 118 of file RanecuEngine.h.
Referenced by getState(), and restoreStatus().