Geant4-11
|
#include <RandFlat.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 |
RandFlat (HepRandomEngine &anEngine) | |
RandFlat (HepRandomEngine &anEngine, double a, double b) | |
RandFlat (HepRandomEngine &anEngine, double width) | |
RandFlat (HepRandomEngine *anEngine) | |
RandFlat (HepRandomEngine *anEngine, double a, double b) | |
RandFlat (HepRandomEngine *anEngine, double width) | |
virtual | ~RandFlat () |
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 |
Definition at line 41 of file RandFlat.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Definition at line 46 of file RandFlat.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 |
Definition at line 136 of file RandFlat.h.
Referenced by restoreDistState(), and saveDistState().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 44 of file RandFlat.cc.
References localEngine.
|
inline |
Referenced by fireArray(), and operator()().
|
inline |
|
inline |
void CLHEP::RandFlat::fireArray | ( | const int | size, |
double * | vect | ||
) |
Definition at line 88 of file RandFlat.cc.
void CLHEP::RandFlat::fireArray | ( | const int | size, |
double * | vect, | ||
double | lx, | ||
double | dx | ||
) |
Definition at line 96 of file RandFlat.cc.
References fire().
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
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 173 of file RandFlat.cc.
References defaultA, defaultB, defaultWidth, firstUnusedBit, CLHEP::DoubConv::longs2double(), name(), CLHEP::possibleKeywordInput(), and randomInt.
Referenced by CLHEP::RandBit::get().
|
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(), restoreEngineStatus(), CLHEP::RandGauss::restoreEngineStatus(), saveEngineStatus(), CLHEP::RandGauss::saveEngineStatus(), CLHEP::RandExponential::shoot(), CLHEP::RandExpZiggurat::shoot(), 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 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 43 of file RandFlat.cc.
Referenced by source.g4viscp.G4Scene::create_scene(), get(), mcscore.MCParticle::printout(), put(), and source.g4viscp.G4Scene::update_scene().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 49 of file RandFlat.cc.
double CLHEP::RandFlat::operator() | ( | double | a, |
double | b | ||
) |
double CLHEP::RandFlat::operator() | ( | double | width | ) |
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 157 of file RandFlat.cc.
References defaultA, defaultB, defaultWidth, CLHEP::DoubConv::dto2longs(), firstUnusedBit, name(), and randomInt.
Referenced by CLHEP::RandBit::put().
|
static |
Definition at line 213 of file RandFlat.cc.
References distributionName(), staticFirstUnusedBit, and staticRandomInt.
Referenced by CLHEP::StaticRandomStates::restore(), CLHEP::RandBit::restoreDistState(), and restoreFullState().
|
static |
Definition at line 120 of file RandFlat.cc.
References CLHEP::HepRandom::getTheEngine(), CLHEP::HepRandomEngine::restoreStatus(), staticFirstUnusedBit, and staticRandomInt.
|
static |
Definition at line 244 of file RandFlat.cc.
References restoreDistState(), and CLHEP::HepRandom::restoreFullState().
Referenced by CLHEP::RandBit::restoreFullState().
|
staticinherited |
Definition at line 302 of file Random.cc.
References CLHEP::StaticRandomStates::restore().
|
static |
Definition at line 204 of file RandFlat.cc.
References distributionName(), CLHEP::prec, staticFirstUnusedBit, and staticRandomInt.
Referenced by CLHEP::StaticRandomStates::save(), CLHEP::RandBit::saveDistState(), and saveFullState().
|
static |
Definition at line 105 of file RandFlat.cc.
References demo::app, CLHEP::HepRandom::getTheEngine(), CLHEP::HepRandomEngine::saveStatus(), staticFirstUnusedBit, and staticRandomInt.
|
static |
Definition at line 238 of file RandFlat.cc.
References saveDistState(), and CLHEP::HepRandom::saveFullState().
Referenced by CLHEP::RandBit::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.
|
static |
Definition at line 61 of file RandFlat.cc.
References CLHEP::HepRandomEngine::flat(), and CLHEP::HepRandom::getTheEngine().
Referenced by CLHEP::RandBreitWigner::fireM2(), G4ParticleHPProduct::GetMultiplicity(), shootArray(), and CLHEP::RandBreitWigner::shootM2().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
Definition at line 65 of file RandFlat.cc.
References CLHEP::HepRandomEngine::flatArray(), and CLHEP::HepRandom::getTheEngine().
|
static |
Definition at line 69 of file RandFlat.cc.
References shoot().
|
inlinestatic |
|
static |
Definition at line 78 of file RandFlat.cc.
References shoot().
|
inlinestatic |
|
inlinestatic |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
staticinherited |
Definition at line 306 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
private |
Definition at line 201 of file RandFlat.h.
Referenced by fireArray(), get(), operator()(), and put().
|
private |
Definition at line 202 of file RandFlat.h.
Referenced by fireArray(), get(), operator()(), and put().
|
private |
Definition at line 200 of file RandFlat.h.
|
private |
Definition at line 195 of file RandFlat.h.
|
private |
Definition at line 199 of file RandFlat.h.
Referenced by engine().
|
staticprivate |
Definition at line 190 of file RandFlat.h.
|
staticprivate |
Definition at line 191 of file RandFlat.h.
|
private |
Definition at line 194 of file RandFlat.h.
|
staticprotectedinherited |
|
staticprivate |
Definition at line 197 of file RandFlat.h.
Referenced by restoreDistState(), restoreEngineStatus(), saveDistState(), and saveEngineStatus().
|
staticprivate |
Definition at line 196 of file RandFlat.h.
Referenced by restoreDistState(), restoreEngineStatus(), saveDistState(), and saveEngineStatus().