Geant4-11
|
#include <NonRandomEngine.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 |
NonRandomEngine () | |
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 |
virtual void | restoreStatus (const char filename[]="Config.conf")=0 |
virtual void | saveStatus (const char filename[]="Config.conf") const =0 |
void | setNextRandom (double r) |
void | setRandomInterval (double x) |
void | setRandomSequence (double *s, int n) |
virtual | ~NonRandomEngine () |
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 |
Private Member Functions | |
virtual void | restoreStatus (const char *) |
virtual void | saveStatus (const char *) const |
virtual void | setSeed (long, int) |
virtual void | setSeeds (const long *, int) |
virtual void | showStatus () const |
Private Attributes | |
bool | intervalHasBeenSet |
bool | nextHasBeenSet |
double | nextRandom |
unsigned int | nInSeq |
double | randomInterval |
std::vector< double > | sequence |
bool | sequenceHasBeenSet |
Definition at line 38 of file NonRandomEngine.h.
CLHEP::NonRandomEngine::NonRandomEngine | ( | ) |
Definition at line 33 of file NonRandomEngine.cc.
|
virtual |
Definition at line 40 of file NonRandomEngine.cc.
|
static |
Definition at line 141 of file NonRandomEngine.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().
|
inlinestatic |
Definition at line 70 of file NonRandomEngine.h.
|
inlinestaticprotectedinherited |
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 65 of file NonRandomEngine.cc.
References g4zmq::exit(), intervalHasBeenSet, nextHasBeenSet, nextRandom, nInSeq, randomInterval, sequence, and sequenceHasBeenSet.
Referenced by flatArray().
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 92 of file NonRandomEngine.cc.
References flat().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 202 of file NonRandomEngine.cc.
References getState().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 128 of file NonRandomEngine.cc.
References getState().
|
inlineinherited |
|
inlineinherited |
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 211 of file NonRandomEngine.cc.
References intervalHasBeenSet, CLHEP::DoubConv::longs2double(), nextHasBeenSet, nextRandom, nInSeq, randomInterval, sequence, and sequenceHasBeenSet.
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 145 of file NonRandomEngine.cc.
References getState(), intervalHasBeenSet, nextHasBeenSet, nextRandom, nInSeq, CLHEP::possibleKeywordInput(), randomInterval, sequence, and sequenceHasBeenSet.
Referenced by get(), and getState().
|
inlinestaticprotectedinherited |
Referenced by CLHEP::RanluxEngine::flat(), and CLHEP::RanluxEngine::flatArray().
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
virtual |
Implements CLHEP::HepRandomEngine.
Definition at line 31 of file NonRandomEngine.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 108 of file NonRandomEngine.cc.
References CLHEP::DoubConv::dto2longs(), intervalHasBeenSet, nextHasBeenSet, nextRandom, nInSeq, randomInterval, sequence, and sequenceHasBeenSet.
Referenced by put().
|
virtual |
Reimplemented from CLHEP::HepRandomEngine.
Definition at line 98 of file NonRandomEngine.cc.
References put().
|
inlineprivatevirtual |
Definition at line 92 of file NonRandomEngine.h.
|
pure virtualinherited |
Implemented in CLHEP::DualRand, CLHEP::HepJamesRandom, CLHEP::MixMaxRng, CLHEP::MTwistEngine, CLHEP::RanecuEngine, CLHEP::RanluxEngine, CLHEP::Ranlux64Engine, CLHEP::RanluxppEngine, and CLHEP::RanshiEngine.
Referenced by CLHEP::RandFlat::restoreEngineStatus(), and CLHEP::RandGauss::restoreEngineStatus().
|
inlineprivatevirtual |
Definition at line 91 of file NonRandomEngine.h.
|
pure virtualinherited |
void CLHEP::NonRandomEngine::setNextRandom | ( | double | r | ) |
Definition at line 43 of file NonRandomEngine.cc.
References nextHasBeenSet, and nextRandom.
void CLHEP::NonRandomEngine::setRandomInterval | ( | double | x | ) |
Definition at line 59 of file NonRandomEngine.cc.
References intervalHasBeenSet, and randomInterval.
void CLHEP::NonRandomEngine::setRandomSequence | ( | double * | s, |
int | n | ||
) |
Definition at line 49 of file NonRandomEngine.cc.
References CLHEP::detail::n, nextHasBeenSet, nInSeq, CLHEP::s, sequence, and sequenceHasBeenSet.
|
inlineprivatevirtual |
|
inlineprivatevirtual |
|
inlineprivatevirtual |
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
Referenced by CLHEP::Ranlux64Engine::flat().
|
inlinestaticprotectedinherited |
Referenced by CLHEP::DualRand::flat(), CLHEP::MTwistEngine::flat(), and CLHEP::RanshiEngine::flat().
|
private |
Definition at line 80 of file NonRandomEngine.h.
Referenced by flat(), getState(), put(), and setRandomInterval().
|
private |
Definition at line 78 of file NonRandomEngine.h.
Referenced by flat(), getState(), put(), setNextRandom(), and setRandomSequence().
|
private |
Definition at line 81 of file NonRandomEngine.h.
Referenced by flat(), getState(), put(), and setNextRandom().
|
private |
Definition at line 83 of file NonRandomEngine.h.
Referenced by flat(), getState(), put(), and setRandomSequence().
|
private |
Definition at line 84 of file NonRandomEngine.h.
Referenced by flat(), getState(), put(), and setRandomInterval().
|
private |
Definition at line 82 of file NonRandomEngine.h.
Referenced by flat(), getState(), put(), and setRandomSequence().
|
private |
Definition at line 79 of file NonRandomEngine.h.
Referenced by flat(), getState(), put(), and setRandomSequence().
|
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(), CLHEP::RanluxppEngine::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(), CLHEP::RanluxppEngine::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(), CLHEP::RanluxppEngine::setSeeds(), CLHEP::RanecuEngine::setSeeds(), CLHEP::Ranlux64Engine::setSeeds(), CLHEP::RanluxEngine::setSeeds(), CLHEP::MixMaxRng::setSeeds(), CLHEP::DualRand::setSeeds(), CLHEP::MTwistEngine::setSeeds(), and CLHEP::RanshiEngine::setSeeds().