Geant4-11
|
#include <RandGaussZiggurat.h>
Public Member Functions | |
HepRandomEngine & | engine () |
float | fire () |
double | fire (double mean, double stdDev) |
float | fire (float mean, float stdDev) |
void | fireArray (const int size, double *vect) |
void | fireArray (const int size, double *vect, double mean, double stdDev) |
void | fireArray (const int size, float *vect) |
void | fireArray (const int size, float *vect, float mean, float stdDev) |
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) |
bool | getF () const |
std::string | name () const |
virtual double | operator() () |
virtual double | operator() (double mean, double stdDev) |
std::ostream & | put (std::ostream &os) const |
RandGaussZiggurat (HepRandomEngine &anEngine, double mean=0.0, double stdDev=1.0) | |
RandGaussZiggurat (HepRandomEngine *anEngine, double mean=0.0, double stdDev=1.0) | |
void | setF (bool val) |
virtual | ~RandGaussZiggurat () |
Static Public Member Functions | |
static int | createInstance () |
static std::string | distributionName () |
static bool | getFlag () |
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 | setFlag (bool val) |
static void | setTheEngine (HepRandomEngine *theNewEngine) |
static void | setTheSeed (long seed, int lxr=3) |
static void | setTheSeeds (const long *seeds, int aux=-1) |
static float | shoot () |
static double | shoot (double mean, double stdDev) |
static float | shoot (float mean, float stdDev) |
static double | shoot (HepRandomEngine *anEngine, double mean, double stdDev) |
static float | shoot (HepRandomEngine *anotherEngine) |
static float | shoot (HepRandomEngine *anotherEngine, float mean, float stdDev) |
static void | shootArray (const int size, double *vect, double mean=0.0, double stdDev=1.0) |
static void | shootArray (const int size, float *vect, float mean=0.0, float stdDev=1.0) |
static void | shootArray (HepRandomEngine *anotherEngine, const int size, double *vect, double mean=0.0, double stdDev=1.0) |
static void | shootArray (HepRandomEngine *anotherEngine, const int size, float *vect, float mean=0.0, float stdDev=1.0) |
static void | showEngineStatus () |
static bool | ziggurat_init () |
Protected Member Functions | |
double | normal () |
Static Protected Member Functions | |
static double | getVal () |
static void | setVal (double nextVal) |
static float | ziggurat_nfix (long hz, HepRandomEngine *anEngine) |
static float | ziggurat_RNOR (HepRandomEngine *anEngine) |
static unsigned long | ziggurat_SHR3 (HepRandomEngine *anEngine) |
static float | ziggurat_UNI (HepRandomEngine *anEngine) |
Protected Attributes | |
double | defaultMean |
double | defaultStdDev |
std::shared_ptr< HepRandomEngine > | localEngine |
Static Protected Attributes | |
static CLHEP_THREAD_LOCAL float | fe [256] |
static CLHEP_THREAD_LOCAL float | fn [128] |
static CLHEP_THREAD_LOCAL unsigned long | ke [256] |
static CLHEP_THREAD_LOCAL unsigned long | kn [128] |
static const long | seedTable [215][2] |
static CLHEP_THREAD_LOCAL float | we [256] |
static CLHEP_THREAD_LOCAL float | wn [128] |
static CLHEP_THREAD_LOCAL bool | ziggurat_is_init = false |
Private Member Functions | |
RandGaussZiggurat (const RandGaussZiggurat &d) | |
Private Attributes | |
double | nextGauss |
bool | set |
Static Private Attributes | |
static CLHEP_THREAD_LOCAL double | nextGauss_st = 0.0 |
static CLHEP_THREAD_LOCAL bool | set_st = false |
Definition at line 37 of file RandGaussZiggurat.h.
|
inline |
Definition at line 137 of file RandGaussZiggurat.h.
|
inline |
Definition at line 141 of file RandGaussZiggurat.h.
|
virtual |
Definition at line 14 of file RandGaussZiggurat.cc.
|
private |
|
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 87 of file RandGaussZiggurat.h.
|
virtual |
Reimplemented from CLHEP::RandGauss.
Definition at line 12 of file RandGaussZiggurat.cc.
References CLHEP::RandGauss::engine().
|
inline |
Definition at line 67 of file RandGaussZiggurat.h.
References CLHEP::RandGauss::defaultMean, CLHEP::RandGauss::defaultStdDev, CLHEP::RandGauss::localEngine, and ziggurat_RNOR().
Referenced by fireArray().
|
inlineinherited |
|
inline |
Definition at line 69 of file RandGaussZiggurat.h.
References CLHEP::RandGauss::localEngine, and ziggurat_RNOR().
void CLHEP::RandGaussZiggurat::fireArray | ( | const int | size, |
double * | vect | ||
) |
Definition at line 144 of file RandGaussZiggurat.cc.
References CLHEP::RandGauss::defaultMean, CLHEP::RandGauss::defaultStdDev, and fire().
void CLHEP::RandGaussZiggurat::fireArray | ( | const int | size, |
double * | vect, | ||
double | mean, | ||
double | stdDev | ||
) |
Definition at line 158 of file RandGaussZiggurat.cc.
References fire().
void CLHEP::RandGaussZiggurat::fireArray | ( | const int | size, |
float * | vect | ||
) |
Definition at line 137 of file RandGaussZiggurat.cc.
References CLHEP::RandGauss::defaultMean, CLHEP::RandGauss::defaultStdDev, and fire().
void CLHEP::RandGaussZiggurat::fireArray | ( | const int | size, |
float * | vect, | ||
float | mean, | ||
float | stdDev | ||
) |
Definition at line 151 of file RandGaussZiggurat.cc.
References fire().
|
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::RandGauss.
Definition at line 173 of file RandGaussZiggurat.cc.
References CLHEP::RandGauss::get(), and name().
|
inlineinherited |
|
staticinherited |
Definition at line 171 of file RandGauss.cc.
References CLHEP::RandGauss::set_st.
Referenced by CLHEP::RandGauss::saveDistState(), CLHEP::RandGauss::saveEngineStatus(), and CLHEP::RandGauss::shoot().
|
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(), 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().
|
staticprotectedinherited |
Definition at line 181 of file RandGauss.cc.
References CLHEP::RandGauss::nextGauss_st.
Referenced by CLHEP::RandGauss::saveDistState(), CLHEP::RandGauss::saveEngineStatus(), and CLHEP::RandGauss::shoot().
|
virtual |
Reimplemented from CLHEP::RandGauss.
Definition at line 17 of file RandGaussZiggurat.cc.
Referenced by source.g4viscp.G4Scene::create_scene(), get(), mcscore.MCParticle::printout(), put(), and source.g4viscp.G4Scene::update_scene().
|
protectedinherited |
Definition at line 132 of file RandGauss.cc.
References fac, CLHEP::RandGauss::localEngine, CLHEP::RandGauss::nextGauss, and CLHEP::RandGauss::set.
|
virtual |
Reimplemented from CLHEP::RandGauss.
Definition at line 101 of file RandGaussZiggurat.cc.
References CLHEP::RandGauss::defaultMean, CLHEP::RandGauss::defaultStdDev, CLHEP::RandGauss::localEngine, and ziggurat_RNOR().
|
virtual |
Reimplemented from CLHEP::RandGauss.
Definition at line 105 of file RandGaussZiggurat.cc.
References CLHEP::RandGauss::localEngine, and ziggurat_RNOR().
|
virtual |
Reimplemented from CLHEP::RandGauss.
Definition at line 165 of file RandGaussZiggurat.cc.
References name(), and CLHEP::RandGauss::put().
|
staticinherited |
Definition at line 346 of file RandGauss.cc.
References CLHEP::RandGauss::distributionName(), CLHEP::DoubConv::longs2double(), CLHEP::RandGauss::nextGauss_st, CLHEP::possibleKeywordInput(), and CLHEP::RandGauss::setFlag().
Referenced by CLHEP::StaticRandomStates::restore(), and CLHEP::RandGauss::restoreFullState().
|
staticinherited |
Definition at line 211 of file RandGauss.cc.
References CLHEP::HepRandom::getTheEngine(), CLHEP::DoubConv::longs2double(), CLHEP::RandGauss::nextGauss_st, CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::restoreStatus(), and CLHEP::RandGauss::setFlag().
|
staticinherited |
Definition at line 396 of file RandGauss.cc.
References CLHEP::RandGauss::restoreDistState(), and CLHEP::HepRandom::restoreFullState().
|
staticinherited |
Definition at line 302 of file Random.cc.
References CLHEP::StaticRandomStates::restore().
|
staticinherited |
Definition at line 331 of file RandGauss.cc.
References CLHEP::RandGauss::distributionName(), CLHEP::DoubConv::dto2longs(), CLHEP::RandGauss::getFlag(), CLHEP::RandGauss::getVal(), and CLHEP::prec.
Referenced by CLHEP::RandGauss::saveFullState().
|
staticinherited |
Definition at line 191 of file RandGauss.cc.
References demo::app, CLHEP::DoubConv::dto2longs(), CLHEP::RandGauss::getFlag(), CLHEP::HepRandom::getTheEngine(), CLHEP::RandGauss::getVal(), and CLHEP::HepRandomEngine::saveStatus().
|
staticinherited |
Definition at line 390 of file RandGauss.cc.
References CLHEP::RandGauss::saveDistState(), and CLHEP::HepRandom::saveFullState().
Referenced by CLHEP::StaticRandomStates::save().
|
staticinherited |
Definition at line 298 of file Random.cc.
References CLHEP::StaticRandomStates::save().
|
inlineinherited |
|
staticinherited |
Definition at line 176 of file RandGauss.cc.
References CLHEP::RandGauss::set_st.
Referenced by CLHEP::RandGauss::restoreDistState(), CLHEP::RandGauss::restoreEngineStatus(), and CLHEP::RandGauss::shoot().
|
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.
|
staticprotectedinherited |
Definition at line 186 of file RandGauss.cc.
References CLHEP::RandGauss::nextGauss_st.
Referenced by CLHEP::RandGauss::shoot().
|
inlinestatic |
Definition at line 49 of file RandGaussZiggurat.h.
References CLHEP::HepRandom::getTheEngine(), and ziggurat_RNOR().
Referenced by shootArray().
|
inlinestaticinherited |
|
inlinestatic |
|
inlinestaticinherited |
|
inlinestatic |
|
inlinestatic |
|
static |
Definition at line 116 of file RandGaussZiggurat.cc.
References shoot().
|
static |
Definition at line 109 of file RandGaussZiggurat.cc.
References shoot().
|
static |
Definition at line 130 of file RandGaussZiggurat.cc.
References shoot().
|
static |
Definition at line 123 of file RandGaussZiggurat.cc.
References shoot().
|
staticinherited |
Definition at line 306 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
static |
Definition at line 22 of file RandGaussZiggurat.cc.
References fe, fn, ke, kn, we, wn, and ziggurat_is_init.
Referenced by ziggurat_nfix(), and ziggurat_RNOR().
|
staticprotected |
Definition at line 73 of file RandGaussZiggurat.cc.
References fn, kn, wn, ziggurat_init(), ziggurat_is_init, ziggurat_SHR3(), and ziggurat_UNI().
Referenced by ziggurat_RNOR().
|
inlinestaticprotected |
Definition at line 115 of file RandGaussZiggurat.h.
References kn, wn, ziggurat_init(), ziggurat_is_init, ziggurat_nfix(), and ziggurat_SHR3().
Referenced by fire(), operator()(), and shoot().
|
inlinestaticprotected |
Definition at line 113 of file RandGaussZiggurat.h.
Referenced by ziggurat_nfix(), and ziggurat_RNOR().
|
inlinestaticprotected |
Definition at line 114 of file RandGaussZiggurat.h.
References CLHEP::HepRandomEngine::flat().
Referenced by ziggurat_nfix().
|
protectedinherited |
Definition at line 151 of file RandGauss.h.
Referenced by fire(), CLHEP::RandGauss::fireArray(), CLHEP::RandGaussQ::fireArray(), fireArray(), CLHEP::RandGauss::get(), CLHEP::RandGauss::operator()(), CLHEP::RandGaussQ::operator()(), operator()(), and CLHEP::RandGauss::put().
|
protectedinherited |
Definition at line 152 of file RandGauss.h.
Referenced by fire(), CLHEP::RandGauss::fireArray(), CLHEP::RandGaussQ::fireArray(), fireArray(), CLHEP::RandGauss::get(), CLHEP::RandGauss::operator()(), CLHEP::RandGaussQ::operator()(), operator()(), and CLHEP::RandGauss::put().
|
staticprotected |
Definition at line 109 of file RandGaussZiggurat.h.
Referenced by ziggurat_init().
|
staticprotected |
Definition at line 109 of file RandGaussZiggurat.h.
Referenced by ziggurat_init(), and ziggurat_nfix().
|
staticprotected |
Definition at line 108 of file RandGaussZiggurat.h.
Referenced by ziggurat_init().
|
staticprotected |
Definition at line 108 of file RandGaussZiggurat.h.
Referenced by ziggurat_init(), ziggurat_nfix(), and ziggurat_RNOR().
|
protectedinherited |
Definition at line 154 of file RandGauss.h.
Referenced by CLHEP::RandGauss::engine(), fire(), CLHEP::RandGauss::normal(), CLHEP::RandGaussQ::operator()(), and operator()().
|
privateinherited |
Definition at line 159 of file RandGauss.h.
Referenced by CLHEP::RandGauss::get(), CLHEP::RandGauss::normal(), and CLHEP::RandGauss::put().
|
staticprivateinherited |
Definition at line 163 of file RandGauss.h.
Referenced by CLHEP::RandGauss::getVal(), CLHEP::RandGauss::restoreDistState(), CLHEP::RandGauss::restoreEngineStatus(), and CLHEP::RandGauss::setVal().
|
staticprotectedinherited |
|
privateinherited |
Definition at line 158 of file RandGauss.h.
Referenced by CLHEP::RandGauss::get(), CLHEP::RandGauss::getF(), CLHEP::RandGauss::normal(), CLHEP::RandGauss::put(), and CLHEP::RandGauss::setF().
|
staticprivateinherited |
Definition at line 162 of file RandGauss.h.
Referenced by CLHEP::RandGauss::getFlag(), and CLHEP::RandGauss::setFlag().
|
staticprotected |
Definition at line 109 of file RandGaussZiggurat.h.
Referenced by ziggurat_init().
|
staticprotected |
Definition at line 109 of file RandGaussZiggurat.h.
Referenced by ziggurat_init(), ziggurat_nfix(), and ziggurat_RNOR().
|
staticprotected |
Definition at line 111 of file RandGaussZiggurat.h.
Referenced by ziggurat_init(), ziggurat_nfix(), and ziggurat_RNOR().