Geant4-11
|
#include <RandBit.h>
Public Member Functions | |
HepRandomEngine & | engine () |
double | fire () |
double | fire (double a, double b) |
double | fire (double width) |
void | fireArray (const int size, double *vect) |
void | fireArray (const int size, double *vect, double lx, double dx) |
int | fireBit () |
long | fireInt (long a1, long n) |
long | fireInt (long n) |
double | flat () |
double | flat (HepRandomEngine *theNewEngine) |
void | flatArray (const int size, double *vect) |
void | flatArray (HepRandomEngine *theNewEngine, const int size, double *vect) |
std::istream & | get (std::istream &is) |
std::string | name () const |
double | operator() () |
double | operator() (double a, double b) |
double | operator() (double width) |
std::ostream & | put (std::ostream &os) const |
RandBit (HepRandomEngine &anEngine) | |
RandBit (HepRandomEngine &anEngine, double a, double b) | |
RandBit (HepRandomEngine &anEngine, double width) | |
RandBit (HepRandomEngine *anEngine) | |
RandBit (HepRandomEngine *anEngine, double a, double b) | |
RandBit (HepRandomEngine *anEngine, double width) | |
virtual | ~RandBit () |
Static Public Member Functions | |
static int | createInstance () |
static std::string | distributionName () |
static HepRandomEngine * | getTheEngine () |
static HepRandom * | getTheGenerator () |
static long | getTheSeed () |
static const long * | getTheSeeds () |
static void | getTheTableSeeds (long *seeds, int index) |
static std::istream & | restoreDistState (std::istream &is) |
static void | restoreEngineStatus (const char filename[]="Config.conf") |
static std::istream & | restoreFullState (std::istream &is) |
static std::istream & | restoreStaticRandomStates (std::istream &is) |
static std::ostream & | saveDistState (std::ostream &os) |
static void | saveEngineStatus (const char filename[]="Config.conf") |
static std::ostream & | saveFullState (std::ostream &os) |
static std::ostream & | saveStaticRandomStates (std::ostream &os) |
static void | setTheEngine (HepRandomEngine *theNewEngine) |
static void | setTheSeed (long seed, int lxr=3) |
static void | setTheSeeds (const long *seeds, int aux=-1) |
static double | shoot () |
static double | shoot (double a, double b) |
static double | shoot (double width) |
static double | shoot (HepRandomEngine *anEngine) |
static double | shoot (HepRandomEngine *anEngine, double a, double b) |
static double | shoot (HepRandomEngine *anEngine, double width) |
static void | shootArray (const int size, double *vect) |
static void | shootArray (const int size, double *vect, double lx, double dx) |
static void | shootArray (HepRandomEngine *anEngine, const int size, double *vect) |
static void | shootArray (HepRandomEngine *anEngine, const int size, double *vect, double lx, double dx) |
static int | shootBit () |
static int | shootBit (HepRandomEngine *) |
static long | shootInt (HepRandomEngine *anEngine, long a1, long n) |
static long | shootInt (HepRandomEngine *anEngine, long n) |
static long | shootInt (long a1, long n) |
static long | shootInt (long n) |
static void | showEngineStatus () |
Static Protected Attributes | |
static const long | seedTable [215][2] |
Private Member Functions | |
void | fireBits () |
Static Private Member Functions | |
static void | shootBits () |
static void | shootBits (HepRandomEngine *) |
Private Attributes | |
double | defaultA |
double | defaultB |
double | defaultWidth |
unsigned long | firstUnusedBit |
std::shared_ptr< HepRandomEngine > | localEngine |
unsigned long | randomInt |
Static Private Attributes | |
static const unsigned long | MSB = 1ul<<RandFlat::MSBBits |
static const int | MSBBits = 15 |
static CLHEP_THREAD_LOCAL unsigned long | staticFirstUnusedBit = 0 |
static CLHEP_THREAD_LOCAL unsigned long | staticRandomInt = 0 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Definition at line 24 of file RandBit.cc.
|
staticinherited |
Definition at line 311 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::defaults::ensureInitialized(), and CLHEP::anonymous_namespace{Random.cc}::theDefaults().
|
inlinestatic |
|
virtualinherited |
Reimplemented from CLHEP::HepRandom.
Definition at line 44 of file RandFlat.cc.
References CLHEP::RandFlat::localEngine.
|
inlineinherited |
Referenced by CLHEP::RandFlat::fireArray(), and CLHEP::RandFlat::operator()().
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 88 of file RandFlat.cc.
References CLHEP::RandFlat::defaultA, CLHEP::RandFlat::defaultB, and CLHEP::RandFlat::fire().
|
inherited |
Definition at line 96 of file RandFlat.cc.
References CLHEP::RandFlat::fire().
|
inline |
|
inlineprivateinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 199 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
Referenced by CLHEP::RandExponential::shoot().
|
inlineinherited |
|
inherited |
Definition at line 204 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
inlineinherited |
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 33 of file RandBit.cc.
References CLHEP::RandFlat::get(), and name().
|
staticinherited |
Definition at line 268 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
Referenced by CLHEP::StaticRandomStates::restore(), CLHEP::RandFlat::restoreEngineStatus(), CLHEP::RandGauss::restoreEngineStatus(), CLHEP::RandFlat::saveEngineStatus(), CLHEP::RandGauss::saveEngineStatus(), CLHEP::RandExponential::shoot(), CLHEP::RandExpZiggurat::shoot(), CLHEP::RandFlat::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandGaussZiggurat::shoot(), CLHEP::RandChiSquare::shoot(), CLHEP::RandStudentT::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandGamma::shoot(), CLHEP::RandPoisson::shoot(), CLHEP::RandPoissonQ::shoot(), CLHEP::RandBinomial::shoot(), and CLHEP::RandFlat::shootArray().
|
staticinherited |
Definition at line 263 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theGenerator.
|
staticinherited |
Definition at line 239 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
staticinherited |
Definition at line 249 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
staticinherited |
Definition at line 254 of file Random.cc.
Referenced by CLHEP::HepJamesRandom::HepJamesRandom(), CLHEP::MTwistEngine::MTwistEngine(), CLHEP::RanecuEngine::RanecuEngine(), CLHEP::Ranlux64Engine::Ranlux64Engine(), CLHEP::RanluxEngine::RanluxEngine(), and CLHEP::RanecuEngine::setSeed().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 22 of file RandBit.cc.
Referenced by source.g4viscp.G4Scene::create_scene(), get(), mcscore.MCParticle::printout(), put(), and source.g4viscp.G4Scene::update_scene().
|
virtualinherited |
Reimplemented from CLHEP::HepRandom.
Definition at line 49 of file RandFlat.cc.
References CLHEP::RandFlat::defaultA, CLHEP::RandFlat::defaultB, and CLHEP::RandFlat::fire().
|
inherited |
Definition at line 57 of file RandFlat.cc.
References CLHEP::RandFlat::fire().
|
inherited |
Definition at line 53 of file RandFlat.cc.
References CLHEP::RandFlat::fire().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 27 of file RandBit.cc.
References name(), and CLHEP::RandFlat::put().
|
inlinestatic |
Definition at line 94 of file RandBit.h.
References CLHEP::RandFlat::restoreDistState().
|
staticinherited |
Definition at line 120 of file RandFlat.cc.
References CLHEP::HepRandom::getTheEngine(), CLHEP::HepRandomEngine::restoreStatus(), CLHEP::RandFlat::staticFirstUnusedBit, and CLHEP::RandFlat::staticRandomInt.
|
inlinestatic |
Definition at line 86 of file RandBit.h.
References CLHEP::RandFlat::restoreFullState().
|
staticinherited |
Definition at line 302 of file Random.cc.
References CLHEP::StaticRandomStates::restore().
|
inlinestatic |
Definition at line 90 of file RandBit.h.
References CLHEP::RandFlat::saveDistState().
|
staticinherited |
Definition at line 105 of file RandFlat.cc.
References demo::app, CLHEP::HepRandom::getTheEngine(), CLHEP::HepRandomEngine::saveStatus(), CLHEP::RandFlat::staticFirstUnusedBit, and CLHEP::RandFlat::staticRandomInt.
|
inlinestatic |
Definition at line 82 of file RandBit.h.
References CLHEP::RandFlat::saveFullState().
|
staticinherited |
Definition at line 298 of file Random.cc.
References CLHEP::StaticRandomStates::save().
|
staticinherited |
Definition at line 273 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
Referenced by CLHEP::StaticRandomStates::restore().
|
staticinherited |
Definition at line 234 of file Random.cc.
References CLHEP::lux, CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
staticinherited |
Definition at line 244 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
staticinherited |
Definition at line 61 of file RandFlat.cc.
References CLHEP::HepRandomEngine::flat(), and CLHEP::HepRandom::getTheEngine().
Referenced by CLHEP::RandBreitWigner::fireM2(), G4ParticleHPProduct::GetMultiplicity(), CLHEP::RandFlat::shootArray(), and CLHEP::RandBreitWigner::shootM2().
|
inlinestaticinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
|
staticinherited |
Definition at line 65 of file RandFlat.cc.
References CLHEP::HepRandomEngine::flatArray(), and CLHEP::HepRandom::getTheEngine().
|
staticinherited |
Definition at line 69 of file RandFlat.cc.
References CLHEP::RandFlat::shoot().
|
inlinestaticinherited |
|
staticinherited |
Definition at line 78 of file RandFlat.cc.
References CLHEP::RandFlat::shoot().
|
inlinestatic |
|
inlinestatic |
|
inlinestaticprivateinherited |
|
inlinestaticprivateinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
|
staticinherited |
Definition at line 306 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
privateinherited |
Definition at line 201 of file RandFlat.h.
Referenced by CLHEP::RandFlat::fireArray(), CLHEP::RandFlat::get(), CLHEP::RandFlat::operator()(), and CLHEP::RandFlat::put().
|
privateinherited |
Definition at line 202 of file RandFlat.h.
Referenced by CLHEP::RandFlat::fireArray(), CLHEP::RandFlat::get(), CLHEP::RandFlat::operator()(), and CLHEP::RandFlat::put().
|
privateinherited |
Definition at line 200 of file RandFlat.h.
Referenced by CLHEP::RandFlat::get(), and CLHEP::RandFlat::put().
|
privateinherited |
Definition at line 195 of file RandFlat.h.
Referenced by CLHEP::RandFlat::get(), and CLHEP::RandFlat::put().
|
privateinherited |
Definition at line 199 of file RandFlat.h.
Referenced by CLHEP::RandFlat::engine().
|
staticprivateinherited |
Definition at line 190 of file RandFlat.h.
|
staticprivateinherited |
Definition at line 191 of file RandFlat.h.
|
privateinherited |
Definition at line 194 of file RandFlat.h.
Referenced by CLHEP::RandFlat::get(), and CLHEP::RandFlat::put().
|
staticprotectedinherited |
|
staticprivateinherited |
Definition at line 197 of file RandFlat.h.
Referenced by CLHEP::RandFlat::restoreDistState(), CLHEP::RandFlat::restoreEngineStatus(), CLHEP::RandFlat::saveDistState(), and CLHEP::RandFlat::saveEngineStatus().
|
staticprivateinherited |
Definition at line 196 of file RandFlat.h.
Referenced by CLHEP::RandFlat::restoreDistState(), CLHEP::RandFlat::restoreEngineStatus(), CLHEP::RandFlat::saveDistState(), and CLHEP::RandFlat::saveEngineStatus().