Geant4-11
|
#include <RandExpZiggurat.h>
Public Member Functions | |
HepRandomEngine & | engine () |
float | fire () |
float | fire (float mean) |
void | fireArray (const int size, double *vect) |
void | fireArray (const int size, double *vect, double mean) |
void | fireArray (const int size, float *vect) |
void | fireArray (const int size, float *vect, float mean) |
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 |
virtual double | operator() () |
float | operator() (float mean) |
std::ostream & | put (std::ostream &os) const |
RandExpZiggurat (HepRandomEngine &anEngine, double mean=1.0) | |
RandExpZiggurat (HepRandomEngine *anEngine, double mean=1.0) | |
virtual | ~RandExpZiggurat () |
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 float | shoot () |
static float | shoot (float mean) |
static float | shoot (HepRandomEngine *anEngine) |
static float | shoot (HepRandomEngine *anEngine, float mean) |
static void | shootArray (const int size, double *vect, double mean=1.0) |
static void | shootArray (const int size, float *vect, float mean=1.0) |
static void | shootArray (HepRandomEngine *anEngine, const int size, double *vect, double mean=1.0) |
static void | shootArray (HepRandomEngine *anEngine, const int size, float *vect, float mean=1.0) |
static void | showEngineStatus () |
static bool | ziggurat_init () |
Static Protected Member Functions | |
static float | ziggurat_efix (unsigned long jz, HepRandomEngine *anEngine) |
static float | ziggurat_REXP (HepRandomEngine *anEngine) |
static unsigned long | ziggurat_SHR3 (HepRandomEngine *anEngine) |
static float | ziggurat_UNI (HepRandomEngine *anEngine) |
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 | |
RandExpZiggurat (const RandExpZiggurat &d) | |
Private Attributes | |
double | defaultMean |
std::shared_ptr< HepRandomEngine > | localEngine |
Definition at line 36 of file RandExpZiggurat.h.
|
inline |
Definition at line 158 of file RandExpZiggurat.h.
|
inline |
Definition at line 162 of file RandExpZiggurat.h.
|
virtual |
Definition at line 19 of file RandExpZiggurat.cc.
|
private |
Definition at line 22 of file RandExpZiggurat.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 109 of file RandExpZiggurat.h.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 17 of file RandExpZiggurat.cc.
References localEngine.
|
inline |
Definition at line 85 of file RandExpZiggurat.h.
References defaultMean, and fire().
Referenced by fire(), fireArray(), and operator()().
|
inline |
Definition at line 86 of file RandExpZiggurat.h.
References localEngine, and ziggurat_REXP().
void CLHEP::RandExpZiggurat::fireArray | ( | const int | size, |
double * | vect | ||
) |
Definition at line 56 of file RandExpZiggurat.cc.
References defaultMean, and fire().
void CLHEP::RandExpZiggurat::fireArray | ( | const int | size, |
double * | vect, | ||
double | mean | ||
) |
Definition at line 66 of file RandExpZiggurat.cc.
References fire().
void CLHEP::RandExpZiggurat::fireArray | ( | const int | size, |
float * | vect | ||
) |
Definition at line 51 of file RandExpZiggurat.cc.
References defaultMean, and fire().
void CLHEP::RandExpZiggurat::fireArray | ( | const int | size, |
float * | vect, | ||
float | mean | ||
) |
Definition at line 61 of file RandExpZiggurat.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::HepRandom.
Definition at line 89 of file RandExpZiggurat.cc.
References defaultMean, CLHEP::DoubConv::longs2double(), name(), and CLHEP::possibleKeywordInput().
|
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(), 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 15 of file RandExpZiggurat.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 26 of file RandExpZiggurat.cc.
References defaultMean, and fire().
|
inline |
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 71 of file RandExpZiggurat.cc.
References defaultMean, CLHEP::DoubConv::dto2longs(), and name().
|
inlinestaticinherited |
|
staticinherited |
Definition at line 283 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
staticinherited |
Definition at line 293 of file Random.cc.
Referenced by CLHEP::RandFlat::restoreFullState(), and CLHEP::RandGauss::restoreFullState().
|
staticinherited |
Definition at line 302 of file Random.cc.
References CLHEP::StaticRandomStates::restore().
|
inlinestaticinherited |
|
staticinherited |
Definition at line 278 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
Referenced by G4CascadeInterface::ApplyYourself(), G4HadronicProcess::PostStepDoIt(), and G4CascadeInterface::Propagate().
|
staticinherited |
Definition at line 288 of file Random.cc.
Referenced by G4EventManager::DoProcessing(), G4EventManager::ProcessOneEvent(), CLHEP::RandFlat::saveFullState(), and CLHEP::RandGauss::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.
|
inlinestatic |
Definition at line 56 of file RandExpZiggurat.h.
References CLHEP::HepRandom::getTheEngine(), and shoot().
Referenced by shoot(), and shootArray().
|
inlinestatic |
Definition at line 57 of file RandExpZiggurat.h.
References CLHEP::HepRandom::getTheEngine(), and shoot().
Referenced by shoot().
|
inlinestatic |
|
inlinestatic |
|
static |
Definition at line 36 of file RandExpZiggurat.cc.
References shoot().
|
static |
Definition at line 31 of file RandExpZiggurat.cc.
References shoot().
|
static |
Definition at line 46 of file RandExpZiggurat.cc.
References shoot().
|
static |
Definition at line 41 of file RandExpZiggurat.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.
|
staticprotected |
Definition at line 110 of file RandExpZiggurat.cc.
References fe, ke, we, ziggurat_init(), ziggurat_is_init, ziggurat_SHR3(), and ziggurat_UNI().
Referenced by ziggurat_REXP().
|
static |
Definition at line 130 of file RandExpZiggurat.cc.
References fe, fn, ke, kn, we, wn, and ziggurat_is_init.
Referenced by ziggurat_efix(), and ziggurat_REXP().
|
inlinestaticprotected |
Definition at line 137 of file RandExpZiggurat.h.
References ke, we, ziggurat_efix(), ziggurat_init(), ziggurat_is_init, and ziggurat_SHR3().
|
inlinestaticprotected |
Definition at line 135 of file RandExpZiggurat.h.
Referenced by ziggurat_efix(), and ziggurat_REXP().
|
inlinestaticprotected |
Definition at line 136 of file RandExpZiggurat.h.
References CLHEP::HepRandomEngine::flat().
Referenced by ziggurat_efix().
|
private |
Definition at line 151 of file RandExpZiggurat.h.
Referenced by fire(), fireArray(), get(), operator()(), and put().
|
staticprotected |
Definition at line 131 of file RandExpZiggurat.h.
Referenced by ziggurat_efix(), and ziggurat_init().
|
staticprotected |
Definition at line 131 of file RandExpZiggurat.h.
Referenced by ziggurat_init().
|
staticprotected |
Definition at line 130 of file RandExpZiggurat.h.
Referenced by ziggurat_efix(), ziggurat_init(), and ziggurat_REXP().
|
staticprotected |
Definition at line 130 of file RandExpZiggurat.h.
Referenced by ziggurat_init().
|
private |
Definition at line 150 of file RandExpZiggurat.h.
|
staticprotectedinherited |
|
staticprotected |
Definition at line 131 of file RandExpZiggurat.h.
Referenced by ziggurat_efix(), ziggurat_init(), and ziggurat_REXP().
|
staticprotected |
Definition at line 131 of file RandExpZiggurat.h.
Referenced by ziggurat_init().
|
staticprotected |
Definition at line 133 of file RandExpZiggurat.h.
Referenced by ziggurat_efix(), ziggurat_init(), and ziggurat_REXP().