#include <RandomEngine.h>
◆ HepRandomEngine()
CLHEP::HepRandomEngine::HepRandomEngine |
( |
| ) |
|
◆ ~HepRandomEngine()
CLHEP::HepRandomEngine::~HepRandomEngine |
( |
| ) |
|
|
virtual |
◆ beginTag()
std::string CLHEP::HepRandomEngine::beginTag |
( |
| ) |
|
|
static |
Definition at line 70 of file RandomEngine.cc.
70 {
71 return "HepRandomEngine-begin";
72}
◆ checkFile()
bool CLHEP::HepRandomEngine::checkFile |
( |
std::istream & |
file, |
|
|
const std::string & |
filename, |
|
|
const std::string & |
classname, |
|
|
const std::string & |
methodname |
|
) |
| |
|
staticprotected |
Definition at line 49 of file RandomEngine.cc.
52 {
53 if (!file) {
54 std::cerr << "Failure to find or open file " << filename <<
55 " in " << classname << "::" << methodname << "()\n";
56 return false;
57 }
58 return true;
59}
Referenced by CLHEP::DRand48Engine::restoreStatus(), CLHEP::DualRand::restoreStatus(), CLHEP::Hurd160Engine::restoreStatus(), CLHEP::Hurd288Engine::restoreStatus(), CLHEP::HepJamesRandom::restoreStatus(), CLHEP::MTwistEngine::restoreStatus(), CLHEP::RandEngine::restoreStatus(), CLHEP::RanecuEngine::restoreStatus(), CLHEP::RanluxEngine::restoreStatus(), CLHEP::Ranlux64Engine::restoreStatus(), CLHEP::RanshiEngine::restoreStatus(), and CLHEP::TripleRand::restoreStatus().
◆ exponent_bit_32()
static double CLHEP::HepRandomEngine::exponent_bit_32 |
( |
| ) |
|
|
inlinestaticprotected |
◆ flat()
virtual double CLHEP::HepRandomEngine::flat |
( |
| ) |
|
|
pure virtual |
Implemented in CLHEP::DRand48Engine, CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::NonRandomEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, CLHEP::TripleRand, and CLHEP::RanluxppEngine.
Referenced by anonymousRestore2(), anonymousRestoreStatics(), CLHEP::RandFlat::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandStudentT::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandPoisson::shoot(), vectorRestore2(), CLHEP::RandExpZiggurat::ziggurat_UNI(), and CLHEP::RandGaussZiggurat::ziggurat_UNI().
◆ flatArray()
virtual void CLHEP::HepRandomEngine::flatArray |
( |
const int |
size, |
|
|
double * |
vect |
|
) |
| |
|
pure virtual |
Implemented in CLHEP::DRand48Engine, CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::NonRandomEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, CLHEP::TripleRand, and CLHEP::RanluxppEngine.
Referenced by CLHEP::RandFlat::shootArray().
◆ get() [1/2]
bool CLHEP::HepRandomEngine::get |
( |
const std::vector< unsigned long > & |
v | ) |
|
|
virtual |
Reimplemented in CLHEP::DRand48Engine, CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::NonRandomEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, CLHEP::TripleRand, and CLHEP::RanluxppEngine.
Definition at line 84 of file RandomEngine.cc.
84 {
85 std::cerr << "HepRandomEngine::get(v) called -- no effect!\n";
86 return false;
87}
◆ get() [2/2]
std::istream & CLHEP::HepRandomEngine::get |
( |
std::istream & |
is | ) |
|
|
virtual |
Reimplemented in CLHEP::DRand48Engine, CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::NonRandomEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, CLHEP::TripleRand, and CLHEP::RanluxppEngine.
Definition at line 65 of file RandomEngine.cc.
65 {
66 std::cerr << "HepRandomEngine::get called -- no effect!\n";
67 return is;
68}
Referenced by CLHEP::HepRandom::engine(), CLHEP::HepRandom::getTheEngine(), and CLHEP::operator>>().
◆ getSeed()
long CLHEP::HepRandomEngine::getSeed |
( |
| ) |
const |
|
inline |
◆ getSeeds()
const long * CLHEP::HepRandomEngine::getSeeds |
( |
| ) |
const |
|
inline |
◆ getState() [1/2]
bool CLHEP::HepRandomEngine::getState |
( |
const std::vector< unsigned long > & |
v | ) |
|
|
virtual |
Reimplemented in CLHEP::DRand48Engine, CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::NonRandomEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, CLHEP::TripleRand, and CLHEP::RanluxppEngine.
Definition at line 88 of file RandomEngine.cc.
88 {
89 std::cerr << "HepRandomEngine::getState(v) called -- no effect!\n";
90 return false;
91}
◆ getState() [2/2]
std::istream & CLHEP::HepRandomEngine::getState |
( |
std::istream & |
is | ) |
|
|
virtual |
Reimplemented in CLHEP::DRand48Engine, CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::NonRandomEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, CLHEP::TripleRand, and CLHEP::RanluxppEngine.
Definition at line 74 of file RandomEngine.cc.
74 {
75 std::cerr << "HepRandomEngine::getState called -- no effect!\n";
76 return is;
77}
◆ mantissa_bit_12()
static double CLHEP::HepRandomEngine::mantissa_bit_12 |
( |
| ) |
|
|
inlinestaticprotected |
◆ mantissa_bit_24()
static double CLHEP::HepRandomEngine::mantissa_bit_24 |
( |
| ) |
|
|
inlinestaticprotected |
◆ mantissa_bit_32()
static double CLHEP::HepRandomEngine::mantissa_bit_32 |
( |
| ) |
|
|
inlinestaticprotected |
◆ name()
virtual std::string CLHEP::HepRandomEngine::name |
( |
| ) |
const |
|
pure virtual |
Implemented in CLHEP::DRand48Engine, CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::NonRandomEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, CLHEP::TripleRand, and CLHEP::RanluxppEngine.
Referenced by anonymousRestoreStatics(), anonymousRestoreStatics1(), checkRandGeneralDistribution(), CLHEP::StaticRandomStates::restore(), and vectorRestore2().
◆ nearlyTwoToMinus_54()
static double CLHEP::HepRandomEngine::nearlyTwoToMinus_54 |
( |
| ) |
|
|
inlinestaticprotected |
◆ newEngine() [1/2]
HepRandomEngine * CLHEP::HepRandomEngine::newEngine |
( |
const std::vector< unsigned long > & |
v | ) |
|
|
static |
Definition at line 98 of file RandomEngine.cc.
98 {
100}
static HepRandomEngine * newEngine(std::istream &is)
◆ newEngine() [2/2]
◆ operator double()
CLHEP::HepRandomEngine::operator double |
( |
| ) |
|
|
virtual |
Reimplemented in CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, CLHEP::TripleRand, and CLHEP::RanluxppEngine.
Definition at line 36 of file RandomEngine.cc.
◆ operator float()
CLHEP::HepRandomEngine::operator float |
( |
| ) |
|
|
virtual |
Reimplemented in CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, CLHEP::TripleRand, and CLHEP::RanluxppEngine.
Definition at line 40 of file RandomEngine.cc.
40 {
41 return float(
flat() );
42}
◆ operator unsigned int()
CLHEP::HepRandomEngine::operator unsigned int |
( |
| ) |
|
|
virtual |
Reimplemented in CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, CLHEP::TripleRand, and CLHEP::RanluxppEngine.
Definition at line 44 of file RandomEngine.cc.
44 {
46}
static double exponent_bit_32()
◆ operator!=()
◆ operator==()
◆ put() [1/2]
std::vector< unsigned long > CLHEP::HepRandomEngine::put |
( |
| ) |
const |
|
virtual |
Reimplemented in CLHEP::DRand48Engine, CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::NonRandomEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, CLHEP::TripleRand, and CLHEP::RanluxppEngine.
Definition at line 79 of file RandomEngine.cc.
79 {
80 std::cerr << "v=HepRandomEngine::put() called -- no data!\n";
81 std::vector<unsigned long> v;
82 return v;
83}
◆ put() [2/2]
std::ostream & CLHEP::HepRandomEngine::put |
( |
std::ostream & |
os | ) |
const |
|
virtual |
Reimplemented in CLHEP::DRand48Engine, CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::NonRandomEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, CLHEP::TripleRand, and CLHEP::RanluxppEngine.
Definition at line 61 of file RandomEngine.cc.
61 {
62 std::cerr << "HepRandomEngine::put called -- no effect!\n";
63 return os;
64}
Referenced by copy_assignment_is_okay(), and CLHEP::operator<<().
◆ restoreStatus()
virtual void CLHEP::HepRandomEngine::restoreStatus |
( |
const char |
filename[] = "Config.conf" | ) |
|
|
pure virtual |
Implemented in CLHEP::DRand48Engine, CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::RanluxEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxppEngine, CLHEP::RanshiEngine, and CLHEP::TripleRand.
Referenced by CLHEP::RandFlat::restoreEngineStatus(), and CLHEP::RandGauss::restoreEngineStatus().
◆ saveStatus()
virtual void CLHEP::HepRandomEngine::saveStatus |
( |
const char |
filename[] = "Config.conf" | ) |
const |
|
pure virtual |
Implemented in CLHEP::DRand48Engine, CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::RanluxEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxppEngine, CLHEP::RanshiEngine, and CLHEP::TripleRand.
Referenced by CLHEP::RandFlat::saveEngineStatus(), and CLHEP::RandGauss::saveEngineStatus().
◆ setSeed()
virtual void CLHEP::HepRandomEngine::setSeed |
( |
long |
seed, |
|
|
int |
|
|
) |
| |
|
pure virtual |
Implemented in CLHEP::RanecuEngine, CLHEP::DRand48Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::RandEngine, CLHEP::RanluxppEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxEngine, CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::MTwistEngine, CLHEP::RanshiEngine, and CLHEP::TripleRand.
◆ setSeeds()
virtual void CLHEP::HepRandomEngine::setSeeds |
( |
const long * |
seeds, |
|
|
int |
|
|
) |
| |
|
pure virtual |
Implemented in CLHEP::DRand48Engine, CLHEP::HepJamesRandom, CLHEP::RandEngine, CLHEP::RanluxppEngine, CLHEP::RanecuEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxEngine, CLHEP::MixMaxRng, CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::MTwistEngine, CLHEP::RanshiEngine, and CLHEP::TripleRand.
◆ showStatus()
virtual void CLHEP::HepRandomEngine::showStatus |
( |
| ) |
const |
|
pure virtual |
Implemented in CLHEP::DRand48Engine, CLHEP::DualRand, CLHEP::Hurd160Engine, CLHEP::Hurd288Engine, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::RandEngine, CLHEP::RanecuEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxEngine, CLHEP::RanshiEngine, CLHEP::TripleRand, and CLHEP::RanluxppEngine.
◆ twoToMinus_32()
static double CLHEP::HepRandomEngine::twoToMinus_32 |
( |
| ) |
|
|
inlinestaticprotected |
◆ twoToMinus_48()
static double CLHEP::HepRandomEngine::twoToMinus_48 |
( |
| ) |
|
|
inlinestaticprotected |
◆ twoToMinus_49()
static double CLHEP::HepRandomEngine::twoToMinus_49 |
( |
| ) |
|
|
inlinestaticprotected |
◆ twoToMinus_53()
static double CLHEP::HepRandomEngine::twoToMinus_53 |
( |
| ) |
|
|
inlinestaticprotected |
◆ theSeed
long CLHEP::HepRandomEngine::theSeed |
|
protected |
Definition at line 144 of file RandomEngine.h.
Referenced by CLHEP::DRand48Engine::DRand48Engine(), CLHEP::DualRand::DualRand(), getSeed(), CLHEP::DRand48Engine::getState(), CLHEP::DualRand::getState(), CLHEP::Hurd160Engine::getState(), CLHEP::Hurd288Engine::getState(), CLHEP::HepJamesRandom::getState(), CLHEP::MixMaxRng::getState(), CLHEP::MTwistEngine::getState(), CLHEP::RandEngine::getState(), CLHEP::RanecuEngine::getState(), CLHEP::Ranlux64Engine::getState(), CLHEP::RanluxEngine::getState(), CLHEP::RanshiEngine::getState(), CLHEP::TripleRand::getState(), CLHEP::HepJamesRandom::HepJamesRandom(), CLHEP::MixMaxRng::MixMaxRng(), CLHEP::DRand48Engine::put(), CLHEP::DualRand::put(), CLHEP::Hurd160Engine::put(), CLHEP::Hurd288Engine::put(), CLHEP::HepJamesRandom::put(), CLHEP::MixMaxRng::put(), CLHEP::MTwistEngine::put(), CLHEP::RandEngine::put(), CLHEP::RanecuEngine::put(), CLHEP::Ranlux64Engine::put(), CLHEP::RanluxEngine::put(), CLHEP::RanshiEngine::put(), CLHEP::TripleRand::put(), CLHEP::RandEngine::RandEngine(), CLHEP::RanecuEngine::RanecuEngine(), CLHEP::RanluxEngine::RanluxEngine(), CLHEP::RanluxppEngine::RanluxppEngine(), CLHEP::RanshiEngine::RanshiEngine(), CLHEP::DRand48Engine::restoreStatus(), CLHEP::DualRand::restoreStatus(), CLHEP::Hurd160Engine::restoreStatus(), CLHEP::Hurd288Engine::restoreStatus(), CLHEP::HepJamesRandom::restoreStatus(), CLHEP::MTwistEngine::restoreStatus(), CLHEP::RandEngine::restoreStatus(), CLHEP::RanecuEngine::restoreStatus(), CLHEP::RanluxEngine::restoreStatus(), CLHEP::Ranlux64Engine::restoreStatus(), CLHEP::RanshiEngine::restoreStatus(), CLHEP::TripleRand::restoreStatus(), CLHEP::DRand48Engine::saveStatus(), CLHEP::DualRand::saveStatus(), CLHEP::Hurd160Engine::saveStatus(), CLHEP::Hurd288Engine::saveStatus(), CLHEP::HepJamesRandom::saveStatus(), CLHEP::MTwistEngine::saveStatus(), CLHEP::RandEngine::saveStatus(), CLHEP::RanecuEngine::saveStatus(), CLHEP::RanluxEngine::saveStatus(), CLHEP::Ranlux64Engine::saveStatus(), CLHEP::RanshiEngine::saveStatus(), CLHEP::TripleRand::saveStatus(), CLHEP::RanecuEngine::setIndex(), CLHEP::RanecuEngine::setSeed(), CLHEP::DRand48Engine::setSeed(), CLHEP::HepJamesRandom::setSeed(), CLHEP::MixMaxRng::setSeed(), CLHEP::RandEngine::setSeed(), CLHEP::RanluxppEngine::setSeed(), CLHEP::Ranlux64Engine::setSeed(), CLHEP::RanluxEngine::setSeed(), CLHEP::DualRand::setSeed(), CLHEP::Hurd160Engine::setSeed(), CLHEP::Hurd288Engine::setSeed(), CLHEP::MTwistEngine::setSeed(), CLHEP::TripleRand::setSeed(), CLHEP::RanecuEngine::setSeeds(), CLHEP::Ranlux64Engine::setSeeds(), CLHEP::RanluxEngine::setSeeds(), CLHEP::MixMaxRng::setSeeds(), CLHEP::RanshiEngine::setSeeds(), CLHEP::DRand48Engine::showStatus(), CLHEP::DualRand::showStatus(), CLHEP::Hurd160Engine::showStatus(), CLHEP::Hurd288Engine::showStatus(), CLHEP::HepJamesRandom::showStatus(), CLHEP::MTwistEngine::showStatus(), CLHEP::RandEngine::showStatus(), CLHEP::RanecuEngine::showStatus(), CLHEP::Ranlux64Engine::showStatus(), CLHEP::RanluxEngine::showStatus(), CLHEP::RanshiEngine::showStatus(), CLHEP::TripleRand::showStatus(), and CLHEP::TripleRand::TripleRand().
◆ theSeeds
const long* CLHEP::HepRandomEngine::theSeeds |
|
protected |
Definition at line 145 of file RandomEngine.h.
Referenced by getSeeds(), CLHEP::RanecuEngine::RanecuEngine(), CLHEP::RanecuEngine::setIndex(), CLHEP::RanecuEngine::setSeed(), CLHEP::DRand48Engine::setSeeds(), CLHEP::HepJamesRandom::setSeeds(), CLHEP::RandEngine::setSeeds(), CLHEP::RanluxppEngine::setSeeds(), CLHEP::RanecuEngine::setSeeds(), CLHEP::Ranlux64Engine::setSeeds(), CLHEP::RanluxEngine::setSeeds(), CLHEP::MixMaxRng::setSeeds(), CLHEP::DualRand::setSeeds(), CLHEP::Hurd160Engine::setSeeds(), CLHEP::Hurd288Engine::setSeeds(), CLHEP::MTwistEngine::setSeeds(), CLHEP::RanshiEngine::setSeeds(), and CLHEP::TripleRand::setSeeds().
The documentation for this class was generated from the following files: