Geant4-11
|
#include <Ranlux64Engine.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 |
virtual | operator double () |
virtual | operator float () |
virtual | 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 |
Ranlux64Engine () | |
Ranlux64Engine (int rowIndex, int colIndex, int lxr) | |
Ranlux64Engine (long seed, int lxr=1) | |
Ranlux64Engine (std::istream &is) | |
void | restoreStatus (const char filename[]="Ranlux64.conf") |
void | saveStatus (const char filename[]="Ranlux64.conf") const |
void | setSeed (long seed, int lxr=1) |
void | setSeeds (const long *seeds, int lxr=1) |
void | showStatus () const |
virtual | ~Ranlux64Engine () |
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 = 30 |
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 Member Functions | |
void | advance (int dozens) |
void | update () |
Private Attributes | |
double | carry |
int | endIters |
int | index |
int | luxury |
int | pDiscard |
int | pDozens |
double | randoms [12] |
Definition at line 48 of file Ranlux64Engine.h.
CLHEP::Ranlux64Engine::Ranlux64Engine | ( | std::istream & | is | ) |
Definition at line 151 of file Ranlux64Engine.cc.
CLHEP::Ranlux64Engine::Ranlux64Engine | ( | ) |
Definition at line 107 of file Ranlux64Engine.cc.
References advance(), geant4_check_module_cycles::cycle, CLHEP::HepRandom::getTheTableSeeds(), luxury, CLHEP::anonymous_namespace{Ranlux64Engine.cc}::maxIndex, CLHEP::anonymous_namespace{Ranlux64Engine.cc}::numberOfEngines(), and setSeeds().
CLHEP::Ranlux64Engine::Ranlux64Engine | ( | long | seed, |
int | lxr = 1 |
||
) |
Definition at line 127 of file Ranlux64Engine.cc.
References advance(), CLHEP::lux, luxury, and setSeeds().
CLHEP::Ranlux64Engine::Ranlux64Engine | ( | int | rowIndex, |
int | colIndex, | ||
int | lxr | ||
) |
Definition at line 137 of file Ranlux64Engine.cc.
References geant4_check_module_cycles::cycle, CLHEP::HepRandom::getTheTableSeeds(), CLHEP::lux, luxury, CLHEP::anonymous_namespace{Ranlux64Engine.cc}::maxIndex, and setSeeds().
|
virtual |
Definition at line 157 of file Ranlux64Engine.cc.
|
private |
Definition at line 259 of file Ranlux64Engine.cc.
References carry, randoms, CLHEP::HepRandomEngine::twoToMinus_48(), and anonymous_namespace{G4CascadeDeexciteBase.cc}::zero.
Referenced by Ranlux64Engine(), and update().
|
static |
Definition at line 642 of file Ranlux64Engine.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(), CLHEP::RanluxEngine::restoreStatus(), restoreStatus(), and CLHEP::RanshiEngine::restoreStatus().
|
inlinestatic |
Definition at line 91 of file Ranlux64Engine.h.
Referenced by restoreStatus().
|
inlinestaticprotectedinherited |
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 159 of file Ranlux64Engine.cc.
References index, randoms, CLHEP::HepRandomEngine::twoToMinus_49(), and update().
Referenced by flatArray().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 376 of file Ranlux64Engine.cc.
References flat().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 688 of file Ranlux64Engine.cc.
References getState().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 624 of file Ranlux64Engine.cc.
References getState(), and CLHEP::MarkerLen.
|
inline |
Definition at line 82 of file Ranlux64Engine.h.
References luxury.
Referenced by G4WorkerRunManager::G4WorkerRunManager(), and G4UserWorkerThreadInitialization::SetupRNGEngine().
|
inlineinherited |
|
inlineinherited |
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 697 of file Ranlux64Engine.cc.
References carry, index, CLHEP::DoubConv::longs2double(), luxury, pDiscard, randoms, and VECTOR_STATE_SIZE.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 646 of file Ranlux64Engine.cc.
References carry, endIters, getState(), index, luxury, CLHEP::MarkerLen, pDiscard, pDozens, CLHEP::possibleKeywordInput(), randoms, 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 105 of file Ranlux64Engine.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().
|
virtualinherited |
Reimplemented in CLHEP::DualRand, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::RanecuEngine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, and CLHEP::RanluxppEngine.
Definition at line 34 of file RandomEngine.cc.
References G4AblaRandom::flat().
|
virtualinherited |
Reimplemented in CLHEP::DualRand, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::RanecuEngine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, and CLHEP::RanluxppEngine.
Definition at line 38 of file RandomEngine.cc.
References G4AblaRandom::flat().
|
virtualinherited |
Reimplemented in CLHEP::DualRand, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::RanecuEngine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, and CLHEP::RanluxppEngine.
Definition at line 42 of file RandomEngine.cc.
References G4AblaRandom::flat().
|
inlineinherited |
|
inlineinherited |
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 608 of file Ranlux64Engine.cc.
References carry, CLHEP::DoubConv::dto2longs(), index, luxury, pDiscard, and randoms.
Referenced by put(), and saveStatus().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 597 of file Ranlux64Engine.cc.
References put().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 544 of file Ranlux64Engine.cc.
References carry, CLHEP::HepRandomEngine::checkFile(), endIters, engineName(), getState(), index, luxury, pDiscard, pDozens, CLHEP::possibleKeywordInput(), randoms, CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 532 of file Ranlux64Engine.cc.
References put().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 382 of file Ranlux64Engine.cc.
References carry, endIters, index, CLHEP::lux, luxury, pDiscard, pDozens, randoms, CLHEP::HepRandomEngine::theSeed, CLHEP::HepRandomEngine::twoToMinus_32(), and CLHEP::HepRandomEngine::twoToMinus_48().
Referenced by setSeeds().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 458 of file Ranlux64Engine.cc.
References carry, endIters, index, CLHEP::lux, luxury, pDiscard, pDozens, randoms, setSeed(), CLHEP::HepRandomEngine::theSeed, CLHEP::HepRandomEngine::theSeeds, CLHEP::HepRandomEngine::twoToMinus_32(), and CLHEP::HepRandomEngine::twoToMinus_48().
Referenced by Ranlux64Engine().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 581 of file Ranlux64Engine.cc.
References carry, index, luxury, pDiscard, randoms, and CLHEP::HepRandomEngine::theSeed.
|
inlinestaticprotectedinherited |
Referenced by CLHEP::DualRand::flat(), CLHEP::MTwistEngine::flat(), CLHEP::RanshiEngine::flat(), setSeed(), and setSeeds().
|
inlinestaticprotectedinherited |
Referenced by advance(), setSeed(), setSeeds(), and update().
|
inlinestaticprotectedinherited |
Referenced by flat().
|
inlinestaticprotectedinherited |
Referenced by CLHEP::DualRand::flat(), CLHEP::MTwistEngine::flat(), and CLHEP::RanshiEngine::flat().
|
private |
Definition at line 169 of file Ranlux64Engine.cc.
References advance(), carry, endIters, index, CLHEP::m, CLHEP::ns, pDozens, randoms, and CLHEP::HepRandomEngine::twoToMinus_48().
Referenced by flat().
|
private |
Definition at line 111 of file Ranlux64Engine.h.
Referenced by advance(), getState(), put(), restoreStatus(), setSeed(), setSeeds(), showStatus(), and update().
|
private |
Definition at line 106 of file Ranlux64Engine.h.
Referenced by getState(), restoreStatus(), setSeed(), setSeeds(), and update().
|
private |
Definition at line 109 of file Ranlux64Engine.h.
Referenced by flat(), getState(), put(), restoreStatus(), setSeed(), setSeeds(), showStatus(), and update().
|
private |
Definition at line 107 of file Ranlux64Engine.h.
Referenced by getLuxury(), getState(), put(), Ranlux64Engine(), restoreStatus(), setSeed(), setSeeds(), and showStatus().
|
private |
Definition at line 104 of file Ranlux64Engine.h.
Referenced by getState(), put(), restoreStatus(), setSeed(), setSeeds(), and showStatus().
|
private |
Definition at line 105 of file Ranlux64Engine.h.
Referenced by getState(), restoreStatus(), setSeed(), setSeeds(), and update().
|
private |
Definition at line 110 of file Ranlux64Engine.h.
Referenced by advance(), flat(), getState(), put(), restoreStatus(), setSeed(), setSeeds(), showStatus(), and update().
|
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(), getState(), CLHEP::RanluxEngine::getState(), CLHEP::RanshiEngine::getState(), CLHEP::HepJamesRandom::HepJamesRandom(), CLHEP::MixMaxRng::MixMaxRng(), CLHEP::RanecuEngine::put(), CLHEP::MixMaxRng::put(), CLHEP::MTwistEngine::put(), CLHEP::RanecuEngine::RanecuEngine(), CLHEP::RanluxEngine::RanluxEngine(), CLHEP::RanluxppEngine::RanluxppEngine(), CLHEP::RanshiEngine::RanshiEngine(), CLHEP::DualRand::restoreStatus(), CLHEP::HepJamesRandom::restoreStatus(), CLHEP::MTwistEngine::restoreStatus(), CLHEP::RanecuEngine::restoreStatus(), CLHEP::RanluxEngine::restoreStatus(), restoreStatus(), CLHEP::RanshiEngine::restoreStatus(), CLHEP::MTwistEngine::saveStatus(), CLHEP::RanecuEngine::setIndex(), CLHEP::RanecuEngine::setSeed(), CLHEP::HepJamesRandom::setSeed(), CLHEP::MixMaxRng::setSeed(), CLHEP::RanluxppEngine::setSeed(), setSeed(), CLHEP::RanluxEngine::setSeed(), CLHEP::DualRand::setSeed(), CLHEP::MTwistEngine::setSeed(), CLHEP::RanecuEngine::setSeeds(), setSeeds(), CLHEP::RanluxEngine::setSeeds(), CLHEP::MixMaxRng::setSeeds(), CLHEP::RanshiEngine::setSeeds(), CLHEP::DualRand::showStatus(), CLHEP::HepJamesRandom::showStatus(), CLHEP::MTwistEngine::showStatus(), CLHEP::RanecuEngine::showStatus(), showStatus(), CLHEP::RanluxEngine::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(), setSeeds(), CLHEP::RanluxEngine::setSeeds(), CLHEP::MixMaxRng::setSeeds(), CLHEP::DualRand::setSeeds(), CLHEP::MTwistEngine::setSeeds(), and CLHEP::RanshiEngine::setSeeds().
|
static |
Definition at line 97 of file Ranlux64Engine.h.
Referenced by getState(), and restoreStatus().