Geant4.10
|
#include <RandGauss.h>
Public Member Functions | |
RandGauss (HepRandomEngine &anEngine, double mean=0.0, double stdDev=1.0) | |
RandGauss (HepRandomEngine *anEngine, double mean=0.0, double stdDev=1.0) | |
virtual | ~RandGauss () |
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) |
virtual double | operator() () |
virtual double | operator() (double mean, double stdDev) |
std::string | name () const |
HepRandomEngine & | engine () |
std::ostream & | put (std::ostream &os) const |
std::istream & | get (std::istream &is) |
bool | getF () const |
void | setF (bool val) |
![]() | |
HepRandom () | |
HepRandom (long seed) | |
HepRandom (HepRandomEngine &algorithm) | |
HepRandom (HepRandomEngine *algorithm) | |
virtual | ~HepRandom () |
double | flat () |
void | flatArray (const int size, double *vect) |
double | flat (HepRandomEngine *theNewEngine) |
void | flatArray (HepRandomEngine *theNewEngine, const int size, double *vect) |
Static Public Member Functions | |
static double | shoot () |
static double | shoot (double mean, double stdDev) |
static void | shootArray (const int size, double *vect, double mean=0.0, double stdDev=1.0) |
static double | shoot (HepRandomEngine *anEngine) |
static double | shoot (HepRandomEngine *anEngine, double mean, double stdDev) |
static void | shootArray (HepRandomEngine *anEngine, const int size, double *vect, double mean=0.0, double stdDev=1.0) |
static std::string | distributionName () |
static bool | getFlag () |
static void | setFlag (bool val) |
static void | saveEngineStatus (const char filename[]="Config.conf") |
static void | restoreEngineStatus (const char filename[]="Config.conf") |
static std::ostream & | saveFullState (std::ostream &os) |
static std::istream & | restoreFullState (std::istream &is) |
static std::ostream & | saveDistState (std::ostream &os) |
static std::istream & | restoreDistState (std::istream &is) |
![]() | |
static void | setTheSeed (long seed, int lux=3) |
static long | getTheSeed () |
static void | setTheSeeds (const long *seeds, int aux=-1) |
static const long * | getTheSeeds () |
static void | getTheTableSeeds (long *seeds, int index) |
static HepRandom * | getTheGenerator () |
static void | setTheEngine (HepRandomEngine *theNewEngine) |
static HepRandomEngine * | getTheEngine () |
static void | saveEngineStatus (const char filename[]="Config.conf") |
static void | restoreEngineStatus (const char filename[]="Config.conf") |
static std::ostream & | saveFullState (std::ostream &os) |
static std::istream & | restoreFullState (std::istream &is) |
static std::ostream & | saveDistState (std::ostream &os) |
static std::istream & | restoreDistState (std::istream &is) |
static std::ostream & | saveStaticRandomStates (std::ostream &os) |
static std::istream & | restoreStaticRandomStates (std::istream &is) |
static void | showEngineStatus () |
static int | createInstance () |
static std::string | distributionName () |
Protected Member Functions | |
double | normal () |
Static Protected Member Functions | |
static double | getVal () |
static void | setVal (double nextVal) |
Protected Attributes | |
double | defaultMean |
double | defaultStdDev |
shared_ptr< HepRandomEngine > | localEngine |
Additional Inherited Members | |
![]() | |
static const long | seedTable [215][2] |
Definition at line 41 of file RandGauss.h.
|
inline |
|
inline |
|
virtual |
Definition at line 49 of file RandGauss.cc.
|
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 43 of file RandGauss.cc.
References localEngine.
Referenced by CLHEP::RandGaussZiggurat::engine(), and CLHEP::RandGaussQ::engine().
double CLHEP::RandGauss::fire | ( | ) |
Referenced by fireArray(), and operator()().
|
inline |
Definition at line 156 of file RandGauss.cc.
References defaultMean, defaultStdDev, fire(), and test::v.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.
Definition at line 255 of file RandGauss.cc.
References plottest35::c1, defaultMean, defaultStdDev, CLHEP::DoubConv::longs2double(), name(), and CLHEP::possibleKeywordInput().
Referenced by CLHEP::RandGaussZiggurat::get(), and CLHEP::RandGaussQ::get().
|
inline |
Definition at line 115 of file RandGauss.h.
|
inlinestatic |
Definition at line 111 of file RandGauss.h.
Referenced by saveDistState(), saveEngineStatus(), and shoot().
|
inlinestaticprotected |
Definition at line 145 of file RandGauss.h.
Referenced by saveDistState(), saveEngineStatus(), and shoot().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.
Definition at line 42 of file RandGauss.cc.
|
protected |
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.
Definition at line 52 of file RandGauss.cc.
References defaultMean, defaultStdDev, and fire().
|
virtual |
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.
Definition at line 56 of file RandGauss.cc.
References fire().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.
Definition at line 236 of file RandGauss.cc.
References defaultMean, defaultStdDev, CLHEP::DoubConv::dto2longs(), and name().
Referenced by CLHEP::RandGaussZiggurat::put(), and CLHEP::RandGaussQ::put().
|
static |
Definition at line 324 of file RandGauss.cc.
References plottest35::c1, distributionName(), CLHEP::DoubConv::longs2double(), CLHEP::possibleKeywordInput(), and setFlag().
Referenced by CLHEP::StaticRandomStates::restore(), and restoreFullState().
|
static |
Definition at line 189 of file RandGauss.cc.
References CLHEP::HepRandom::getTheEngine(), CLHEP::DoubConv::longs2double(), CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::restoreStatus(), and setFlag().
|
static |
Definition at line 374 of file RandGauss.cc.
References restoreDistState(), and CLHEP::HepRandom::restoreFullState().
|
static |
Definition at line 309 of file RandGauss.cc.
References distributionName(), CLHEP::DoubConv::dto2longs(), getFlag(), and getVal().
Referenced by saveFullState().
|
static |
Definition at line 169 of file RandGauss.cc.
References testem0::app, CLHEP::DoubConv::dto2longs(), getFlag(), CLHEP::HepRandom::getTheEngine(), getVal(), and CLHEP::HepRandomEngine::saveStatus().
|
static |
Definition at line 368 of file RandGauss.cc.
References saveDistState(), and CLHEP::HepRandom::saveFullState().
Referenced by CLHEP::StaticRandomStates::save().
|
inline |
Definition at line 117 of file RandGauss.h.
|
inlinestatic |
Definition at line 113 of file RandGauss.h.
Referenced by restoreDistState(), restoreEngineStatus(), and shoot().
|
inlinestaticprotected |
|
static |
Definition at line 60 of file RandGauss.cc.
References CLHEP::HepRandomEngine::flat(), getFlag(), CLHEP::HepRandom::getTheEngine(), getVal(), setFlag(), setVal(), and test::x.
Referenced by shootArray().
|
inlinestatic |
|
static |
Definition at line 96 of file RandGauss.cc.
References CLHEP::HepRandomEngine::flat(), getFlag(), getVal(), setFlag(), and setVal().
|
inlinestatic |
|
static |
|
static |
|
protected |
Definition at line 151 of file RandGauss.h.
Referenced by CLHEP::RandGaussZiggurat::fire(), CLHEP::RandGaussZiggurat::fireArray(), CLHEP::RandGaussQ::fireArray(), fireArray(), get(), CLHEP::RandGaussZiggurat::operator()(), CLHEP::RandGaussQ::operator()(), operator()(), and put().
|
protected |
Definition at line 152 of file RandGauss.h.
Referenced by CLHEP::RandGaussZiggurat::fire(), CLHEP::RandGaussZiggurat::fireArray(), CLHEP::RandGaussQ::fireArray(), fireArray(), get(), CLHEP::RandGaussZiggurat::operator()(), CLHEP::RandGaussQ::operator()(), operator()(), and put().
|
protected |
Definition at line 154 of file RandGauss.h.
Referenced by engine(), CLHEP::RandGaussZiggurat::fire(), normal(), CLHEP::RandGaussZiggurat::operator()(), and CLHEP::RandGaussQ::operator()().