Geant4-11
|
#include <RandGauss.h>
Public Member Functions | |
HepRandomEngine & | engine () |
double | fire () |
double | fire (double mean, double stdDev) |
void | fireArray (const int size, double *vect) |
void | fireArray (const int size, double *vect, double mean, double 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 |
RandGauss (HepRandomEngine &anEngine, double mean=0.0, double stdDev=1.0) | |
RandGauss (HepRandomEngine *anEngine, double mean=0.0, double stdDev=1.0) | |
void | setF (bool val) |
virtual | ~RandGauss () |
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 double | shoot () |
static double | shoot (double mean, double stdDev) |
static double | shoot (HepRandomEngine *anEngine) |
static double | shoot (HepRandomEngine *anEngine, double mean, double stdDev) |
static void | shootArray (const int size, double *vect, double mean=0.0, double stdDev=1.0) |
static void | shootArray (HepRandomEngine *anEngine, const int size, double *vect, double mean=0.0, double stdDev=1.0) |
static void | showEngineStatus () |
Protected Member Functions | |
double | normal () |
Static Protected Member Functions | |
static double | getVal () |
static void | setVal (double nextVal) |
Protected Attributes | |
double | defaultMean |
double | defaultStdDev |
std::shared_ptr< HepRandomEngine > | localEngine |
Static Protected Attributes | |
static const long | seedTable [215][2] |
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 41 of file RandGauss.h.
|
inline |
|
inline |
|
virtual |
Definition at line 51 of file RandGauss.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 99 of file RandGauss.h.
Referenced by restoreDistState(), and saveDistState().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.
Definition at line 45 of file RandGauss.cc.
References localEngine.
Referenced by CLHEP::RandGaussQ::engine(), and CLHEP::RandGaussZiggurat::engine().
double CLHEP::RandGauss::fire | ( | ) |
Referenced by fireArray(), and operator()().
|
inline |
void CLHEP::RandGauss::fireArray | ( | const int | size, |
double * | vect | ||
) |
Definition at line 158 of file RandGauss.cc.
References defaultMean, defaultStdDev, and fire().
void CLHEP::RandGauss::fireArray | ( | const int | size, |
double * | vect, | ||
double | mean, | ||
double | stdDev | ||
) |
Definition at line 164 of file RandGauss.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.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.
Definition at line 277 of file RandGauss.cc.
References defaultMean, defaultStdDev, CLHEP::DoubConv::longs2double(), name(), nextGauss, CLHEP::possibleKeywordInput(), and set.
Referenced by CLHEP::RandGaussQ::get(), and CLHEP::RandGaussZiggurat::get().
|
inline |
|
static |
Definition at line 171 of file RandGauss.cc.
References set_st.
Referenced by saveDistState(), saveEngineStatus(), and 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(), restoreEngineStatus(), CLHEP::RandFlat::saveEngineStatus(), saveEngineStatus(), CLHEP::RandExponential::shoot(), CLHEP::RandExpZiggurat::shoot(), CLHEP::RandFlat::shoot(), 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().
|
staticprotected |
Definition at line 181 of file RandGauss.cc.
References nextGauss_st.
Referenced by saveDistState(), saveEngineStatus(), and shoot().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.
Definition at line 44 of file RandGauss.cc.
Referenced by source.g4viscp.G4Scene::create_scene(), get(), mcscore.MCParticle::printout(), put(), and source.g4viscp.G4Scene::update_scene().
|
protected |
Definition at line 132 of file RandGauss.cc.
References fac, localEngine, nextGauss, and set.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.
Definition at line 54 of file RandGauss.cc.
References defaultMean, defaultStdDev, and fire().
|
virtual |
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.
Definition at line 58 of file RandGauss.cc.
References fire().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.
Definition at line 258 of file RandGauss.cc.
References defaultMean, defaultStdDev, CLHEP::DoubConv::dto2longs(), name(), nextGauss, CLHEP::prec, and set.
Referenced by CLHEP::RandGaussQ::put(), and CLHEP::RandGaussZiggurat::put().
|
static |
Definition at line 346 of file RandGauss.cc.
References distributionName(), CLHEP::DoubConv::longs2double(), nextGauss_st, CLHEP::possibleKeywordInput(), and setFlag().
Referenced by CLHEP::StaticRandomStates::restore(), and restoreFullState().
|
static |
Definition at line 211 of file RandGauss.cc.
References CLHEP::HepRandom::getTheEngine(), CLHEP::DoubConv::longs2double(), nextGauss_st, CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::restoreStatus(), and setFlag().
|
static |
Definition at line 396 of file RandGauss.cc.
References restoreDistState(), and CLHEP::HepRandom::restoreFullState().
|
staticinherited |
Definition at line 302 of file Random.cc.
References CLHEP::StaticRandomStates::restore().
|
static |
Definition at line 331 of file RandGauss.cc.
References distributionName(), CLHEP::DoubConv::dto2longs(), getFlag(), getVal(), and CLHEP::prec.
Referenced by saveFullState().
|
static |
Definition at line 191 of file RandGauss.cc.
References demo::app, CLHEP::DoubConv::dto2longs(), getFlag(), CLHEP::HepRandom::getTheEngine(), getVal(), and CLHEP::HepRandomEngine::saveStatus().
|
static |
Definition at line 390 of file RandGauss.cc.
References saveDistState(), and CLHEP::HepRandom::saveFullState().
Referenced by CLHEP::StaticRandomStates::save().
|
staticinherited |
Definition at line 298 of file Random.cc.
References CLHEP::StaticRandomStates::save().
|
inline |
|
static |
Definition at line 176 of file RandGauss.cc.
References set_st.
Referenced by restoreDistState(), restoreEngineStatus(), and 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.
|
staticprotected |
|
static |
Definition at line 62 of file RandGauss.cc.
References fac, CLHEP::HepRandomEngine::flat(), getFlag(), CLHEP::HepRandom::getTheEngine(), getVal(), setFlag(), and setVal().
Referenced by shootArray().
|
inlinestatic |
|
static |
Definition at line 98 of file RandGauss.cc.
References fac, CLHEP::HepRandomEngine::flat(), getFlag(), getVal(), setFlag(), and setVal().
|
inlinestatic |
|
static |
Definition at line 91 of file RandGauss.cc.
References shoot().
|
static |
Definition at line 124 of file RandGauss.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.
|
protected |
Definition at line 151 of file RandGauss.h.
Referenced by CLHEP::RandGaussZiggurat::fire(), fireArray(), CLHEP::RandGaussQ::fireArray(), CLHEP::RandGaussZiggurat::fireArray(), get(), operator()(), CLHEP::RandGaussQ::operator()(), CLHEP::RandGaussZiggurat::operator()(), and put().
|
protected |
Definition at line 152 of file RandGauss.h.
Referenced by CLHEP::RandGaussZiggurat::fire(), fireArray(), CLHEP::RandGaussQ::fireArray(), CLHEP::RandGaussZiggurat::fireArray(), get(), operator()(), CLHEP::RandGaussQ::operator()(), CLHEP::RandGaussZiggurat::operator()(), and put().
|
protected |
Definition at line 154 of file RandGauss.h.
Referenced by engine(), CLHEP::RandGaussZiggurat::fire(), normal(), CLHEP::RandGaussQ::operator()(), and CLHEP::RandGaussZiggurat::operator()().
|
private |
Definition at line 159 of file RandGauss.h.
|
staticprivate |
Definition at line 163 of file RandGauss.h.
Referenced by getVal(), restoreDistState(), restoreEngineStatus(), and setVal().
|
staticprotectedinherited |
|
private |
|
staticprivate |
Definition at line 162 of file RandGauss.h.