Geant4-11
|
#include <RanluxppEngine.h>
Public Member Functions | |
double | flat () override |
void | flatArray (const int size, double *vect) override |
bool | get (const std::vector< unsigned long > &v) override |
std::istream & | get (std::istream &is) override |
long | getSeed () const |
const long * | getSeeds () const |
bool | getState (const std::vector< unsigned long > &v) override |
std::istream & | getState (std::istream &is) override |
std::string | name () const override |
operator double () override | |
operator float () override | |
operator unsigned int () override | |
bool | operator!= (const HepRandomEngine &engine) |
bool | operator== (const HepRandomEngine &engine) |
std::vector< unsigned long > | put () const override |
std::ostream & | put (std::ostream &os) const override |
RanluxppEngine () | |
RanluxppEngine (long seed) | |
RanluxppEngine (std::istream &is) | |
void | restoreStatus (const char filename[]="Ranluxpp.conf") override |
void | saveStatus (const char filename[]="Ranluxpp.conf") const override |
void | setSeed (long seed, int dummy=0) override |
void | setSeeds (const long *seeds, int dummy=0) override |
void | showStatus () const override |
void | skip (uint64_t n) |
virtual | ~RanluxppEngine () |
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 = 21 |
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 () |
uint64_t | nextRandomBits () |
Private Attributes | |
unsigned | fCarry |
Carry bit of the RANLUX state. More... | |
int | fPosition = 0 |
Current position in bits. More... | |
uint64_t | fState [9] |
RANLUX state of the generator. More... | |
Definition at line 33 of file RanluxppEngine.h.
CLHEP::RanluxppEngine::RanluxppEngine | ( | ) |
Definition at line 63 of file RanluxppEngine.cc.
References CLHEP::anonymous_namespace{RanluxppEngine.cc}::numberOfEngines(), and setSeed().
CLHEP::RanluxppEngine::RanluxppEngine | ( | long | seed | ) |
Definition at line 68 of file RanluxppEngine.cc.
References setSeed(), and CLHEP::HepRandomEngine::theSeed.
CLHEP::RanluxppEngine::RanluxppEngine | ( | std::istream & | is | ) |
Definition at line 73 of file RanluxppEngine.cc.
References get().
|
virtualdefault |
|
private |
Definition at line 82 of file RanluxppEngine.cc.
References fCarry, fPosition, fState, CLHEP::anonymous_namespace{RanluxppEngine.cc}::kA_2048, mulmod(), to_lcg(), and to_ranlux().
Referenced by nextRandomBits().
|
static |
Definition at line 223 of file RanluxppEngine.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(), CLHEP::Ranlux64Engine::restoreStatus(), and CLHEP::RanshiEngine::restoreStatus().
|
static |
Definition at line 221 of file RanluxppEngine.cc.
Referenced by name().
|
inlinestaticprotectedinherited |
|
overridevirtual |
Implements CLHEP::HepRandomEngine.
Definition at line 111 of file RanluxppEngine.cc.
References CLHEP::kBits, and nextRandomBits().
Referenced by flatArray(), operator double(), and operator float().
|
overridevirtual |
Implements CLHEP::HepRandomEngine.
Definition at line 123 of file RanluxppEngine.cc.
References flat().
|
overridevirtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 277 of file RanluxppEngine.cc.
References getState().
|
overridevirtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 234 of file RanluxppEngine.cc.
References beginTag(), and getState().
Referenced by RanluxppEngine(), and restoreStatus().
|
inlineinherited |
|
inlineinherited |
|
overridevirtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 286 of file RanluxppEngine.cc.
References fCarry, fPosition, fState, and VECTOR_STATE_SIZE.
|
overridevirtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 245 of file RanluxppEngine.cc.
References getState(), and VECTOR_STATE_SIZE.
Referenced by get(), and getState().
|
inlinestaticprotectedinherited |
Referenced by CLHEP::RanluxEngine::flat(), and CLHEP::RanluxEngine::flatArray().
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
overridevirtual |
Implements CLHEP::HepRandomEngine.
Definition at line 219 of file RanluxppEngine.cc.
References engineName().
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().
|
private |
Definition at line 90 of file RanluxppEngine.cc.
References advance(), fPosition, fState, CLHEP::kBits, and CLHEP::kMaxPos.
Referenced by flat(), and operator unsigned int().
|
inlineoverridevirtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 84 of file RanluxppEngine.h.
References flat().
|
inlineoverridevirtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 85 of file RanluxppEngine.h.
References flat().
|
inlineoverridevirtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 86 of file RanluxppEngine.h.
References nextRandomBits().
|
inlineinherited |
|
inlineinherited |
|
overridevirtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 258 of file RanluxppEngine.cc.
References fCarry, fPosition, fState, and VECTOR_STATE_SIZE.
Referenced by put(), and saveStatus().
|
overridevirtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 225 of file RanluxppEngine.cc.
References beginTag(), and put().
|
overridevirtual |
Implements CLHEP::HepRandomEngine.
Definition at line 190 of file RanluxppEngine.cc.
References get().
|
overridevirtual |
Implements CLHEP::HepRandomEngine.
Definition at line 184 of file RanluxppEngine.cc.
References put().
|
overridevirtual |
Implements CLHEP::HepRandomEngine.
Definition at line 129 of file RanluxppEngine.cc.
References fCarry, fPosition, fState, CLHEP::anonymous_namespace{RanluxppEngine.cc}::kA_2048, mulmod(), powermod(), CLHEP::HepRandomEngine::theSeed, and to_ranlux().
Referenced by RanluxppEngine(), and setSeeds().
|
overridevirtual |
Implements CLHEP::HepRandomEngine.
Definition at line 150 of file RanluxppEngine.cc.
References setSeed(), and CLHEP::HepRandomEngine::theSeeds.
|
overridevirtual |
Implements CLHEP::HepRandomEngine.
Definition at line 196 of file RanluxppEngine.cc.
void CLHEP::RanluxppEngine::skip | ( | uint64_t | n | ) |
Definition at line 155 of file RanluxppEngine.cc.
References fCarry, fPosition, fState, CLHEP::anonymous_namespace{RanluxppEngine.cc}::kA_2048, CLHEP::kBits, CLHEP::kMaxPos, mulmod(), CLHEP::detail::n, powermod(), skip(), to_lcg(), and to_ranlux().
Referenced by skip().
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
Referenced by CLHEP::Ranlux64Engine::flat().
|
inlinestaticprotectedinherited |
Referenced by CLHEP::DualRand::flat(), CLHEP::MTwistEngine::flat(), and CLHEP::RanshiEngine::flat().
|
private |
Carry bit of the RANLUX state.
Definition at line 97 of file RanluxppEngine.h.
Referenced by advance(), getState(), put(), setSeed(), showStatus(), and skip().
|
private |
Current position in bits.
Definition at line 98 of file RanluxppEngine.h.
Referenced by advance(), getState(), nextRandomBits(), put(), setSeed(), showStatus(), and skip().
|
private |
RANLUX state of the generator.
Definition at line 96 of file RanluxppEngine.h.
Referenced by advance(), getState(), nextRandomBits(), put(), setSeed(), showStatus(), and skip().
|
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(), 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(), RanluxppEngine(), CLHEP::RanshiEngine::RanshiEngine(), CLHEP::DualRand::restoreStatus(), CLHEP::HepJamesRandom::restoreStatus(), CLHEP::MTwistEngine::restoreStatus(), CLHEP::RanecuEngine::restoreStatus(), CLHEP::RanluxEngine::restoreStatus(), CLHEP::Ranlux64Engine::restoreStatus(), CLHEP::RanshiEngine::restoreStatus(), CLHEP::MTwistEngine::saveStatus(), CLHEP::RanecuEngine::setIndex(), CLHEP::RanecuEngine::setSeed(), CLHEP::HepJamesRandom::setSeed(), CLHEP::MixMaxRng::setSeed(), setSeed(), CLHEP::Ranlux64Engine::setSeed(), CLHEP::RanluxEngine::setSeed(), CLHEP::DualRand::setSeed(), CLHEP::MTwistEngine::setSeed(), CLHEP::RanecuEngine::setSeeds(), CLHEP::Ranlux64Engine::setSeeds(), CLHEP::RanluxEngine::setSeeds(), CLHEP::MixMaxRng::setSeeds(), CLHEP::RanshiEngine::setSeeds(), CLHEP::DualRand::showStatus(), CLHEP::HepJamesRandom::showStatus(), CLHEP::MTwistEngine::showStatus(), CLHEP::RanecuEngine::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(), CLHEP::RanecuEngine::RanecuEngine(), CLHEP::RanecuEngine::setIndex(), CLHEP::RanecuEngine::setSeed(), CLHEP::HepJamesRandom::setSeeds(), setSeeds(), CLHEP::RanecuEngine::setSeeds(), CLHEP::Ranlux64Engine::setSeeds(), CLHEP::RanluxEngine::setSeeds(), CLHEP::MixMaxRng::setSeeds(), CLHEP::DualRand::setSeeds(), CLHEP::MTwistEngine::setSeeds(), and CLHEP::RanshiEngine::setSeeds().
|
static |
Definition at line 90 of file RanluxppEngine.h.
Referenced by getState(), and put().