Geant4-11
|
#include <DualRand.h>
Data Structures | |
class | IntegerCong |
class | Tausworthe |
Public Member Functions | |
DualRand () | |
DualRand (int rowIndex, int colIndex) | |
DualRand (long seed) | |
DualRand (std::istream &is) | |
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 |
void | restoreStatus (const char filename[]="DualRand.conf") |
void | saveStatus (const char filename[]="DualRand.conf") const |
void | setSeed (long seed, int) |
void | setSeeds (const long *seeds, int) |
void | showStatus () const |
virtual | ~DualRand () |
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 = 9 |
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 | |
IntegerCong | integerCong |
int | numEngines |
Tausworthe | tausworthe |
Definition at line 49 of file DualRand.h.
CLHEP::DualRand::DualRand | ( | ) |
Definition at line 80 of file DualRand.cc.
References CLHEP::HepRandomEngine::theSeed.
CLHEP::DualRand::DualRand | ( | long | seed | ) |
Definition at line 89 of file DualRand.cc.
References CLHEP::HepRandomEngine::theSeed.
CLHEP::DualRand::DualRand | ( | std::istream & | is | ) |
Definition at line 98 of file DualRand.cc.
CLHEP::DualRand::DualRand | ( | int | rowIndex, |
int | colIndex | ||
) |
Definition at line 105 of file DualRand.cc.
References CLHEP::HepRandomEngine::theSeed.
|
virtual |
Definition at line 114 of file DualRand.cc.
|
static |
Definition at line 248 of file DualRand.cc.
|
staticprotectedinherited |
Definition at line 47 of file RandomEngine.cc.
References geant4_check_module_cycles::file.
Referenced by restoreStatus(), CLHEP::HepJamesRandom::restoreStatus(), CLHEP::MTwistEngine::restoreStatus(), CLHEP::RanecuEngine::restoreStatus(), CLHEP::RanluxEngine::restoreStatus(), CLHEP::Ranlux64Engine::restoreStatus(), and CLHEP::RanshiEngine::restoreStatus().
|
inlinestatic |
|
inlinestaticprotectedinherited |
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 116 of file DualRand.cc.
References integerCong, CLHEP::HepRandomEngine::nearlyTwoToMinus_54(), tausworthe, CLHEP::HepRandomEngine::twoToMinus_32(), and CLHEP::HepRandomEngine::twoToMinus_53().
Referenced by flatArray().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 125 of file DualRand.cc.
References flat().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 288 of file DualRand.cc.
References getState(), and VECTOR_STATE_SIZE.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 231 of file DualRand.cc.
References getState(), and CLHEP::MarkerLen.
|
inlineinherited |
|
inlineinherited |
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 302 of file DualRand.cc.
References CLHEP::DualRand::Tausworthe::get(), CLHEP::DualRand::IntegerCong::get(), integerCong, and tausworthe.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 252 of file DualRand.cc.
References CLHEP::DualRand::Tausworthe::get(), CLHEP::DualRand::IntegerCong::get(), getState(), integerCong, CLHEP::MarkerLen, CLHEP::possibleKeywordInput(), tausworthe, 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 72 of file DualRand.cc.
Referenced by source.g4viscp.G4Scene::create_scene(), mcscore.MCParticle::printout(), and source.g4viscp.G4Scene::update_scene().
|
inlinestaticprotectedinherited |
Referenced by 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 199 of file DualRand.cc.
References G4AblaRandom::flat().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 203 of file DualRand.cc.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 209 of file DualRand.cc.
|
inlineinherited |
|
inlineinherited |
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 223 of file DualRand.cc.
References integerCong, CLHEP::DualRand::Tausworthe::put(), CLHEP::DualRand::IntegerCong::put(), and tausworthe.
Referenced by put(), and saveStatus().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 213 of file DualRand.cc.
References put().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 153 of file DualRand.cc.
References CLHEP::HepRandomEngine::checkFile(), engineName(), CLHEP::DualRand::Tausworthe::get(), CLHEP::DualRand::IntegerCong::get(), getState(), integerCong, CLHEP::possibleKeywordInput(), tausworthe, CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 142 of file DualRand.cc.
References put().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 131 of file DualRand.cc.
References integerCong, tausworthe, and CLHEP::HepRandomEngine::theSeed.
Referenced by setSeeds().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 137 of file DualRand.cc.
References setSeed(), and CLHEP::HepRandomEngine::theSeeds.
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 184 of file DualRand.cc.
References integerCong, CLHEP::DualRand::Tausworthe::put(), CLHEP::DualRand::IntegerCong::put(), tausworthe, and CLHEP::HepRandomEngine::theSeed.
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
Referenced by CLHEP::Ranlux64Engine::flat().
|
inlinestaticprotectedinherited |
Referenced by flat(), CLHEP::MTwistEngine::flat(), and CLHEP::RanshiEngine::flat().
|
private |
Definition at line 137 of file DualRand.h.
Referenced by flat(), getState(), put(), restoreStatus(), setSeed(), and showStatus().
|
private |
Definition at line 135 of file DualRand.h.
|
private |
Definition at line 136 of file DualRand.h.
Referenced by flat(), getState(), put(), restoreStatus(), setSeed(), and showStatus().
|
protectedinherited |
Definition at line 142 of file RandomEngine.h.
Referenced by DualRand(), CLHEP::HepRandomEngine::getSeed(), 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(), CLHEP::RanluxppEngine::RanluxppEngine(), CLHEP::RanshiEngine::RanshiEngine(), 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(), CLHEP::RanluxppEngine::setSeed(), CLHEP::Ranlux64Engine::setSeed(), CLHEP::RanluxEngine::setSeed(), setSeed(), CLHEP::MTwistEngine::setSeed(), CLHEP::RanecuEngine::setSeeds(), CLHEP::Ranlux64Engine::setSeeds(), CLHEP::RanluxEngine::setSeeds(), CLHEP::MixMaxRng::setSeeds(), CLHEP::RanshiEngine::setSeeds(), 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(), CLHEP::RanluxppEngine::setSeeds(), CLHEP::RanecuEngine::setSeeds(), CLHEP::Ranlux64Engine::setSeeds(), CLHEP::RanluxEngine::setSeeds(), CLHEP::MixMaxRng::setSeeds(), setSeeds(), CLHEP::MTwistEngine::setSeeds(), and CLHEP::RanshiEngine::setSeeds().
|
static |
Definition at line 102 of file DualRand.h.
Referenced by get(), getState(), and restoreStatus().