CLHEP 2.0.4.7 Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <RandGauss.h>
Inheritance diagram for CLHEP::RandGauss:
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) |
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) |
Protected Member Functions | |
RandGauss (const RandGauss &d) | |
double | normal () |
Static Protected Member Functions | |
static double | getVal () |
static void | setVal (double nextVal) |
Protected Attributes | |
double | defaultMean |
double | defaultStdDev |
HepRandomEngine * | localEngine |
Definition at line 41 of file RandGauss.h.
CLHEP::RandGauss::RandGauss | ( | HepRandomEngine & | anEngine, | |
double | mean = 0.0 , |
|||
double | stdDev = 1.0 | |||
) | [inline] |
CLHEP::RandGauss::RandGauss | ( | HepRandomEngine * | anEngine, | |
double | mean = 0.0 , |
|||
double | stdDev = 1.0 | |||
) | [inline] |
CLHEP::RandGauss::~RandGauss | ( | ) | [virtual] |
CLHEP::RandGauss::RandGauss | ( | const RandGauss & | d | ) | [protected] |
Definition at line 54 of file RandGauss.cc.
static std::string CLHEP::RandGauss::distributionName | ( | ) | [inline, static] |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
Definition at line 99 of file RandGauss.h.
Referenced by restoreDistState(), and saveDistState().
HepRandomEngine & CLHEP::RandGauss::engine | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
Definition at line 44 of file RandGauss.cc.
References localEngine.
Referenced by CLHEP::RandGaussT::engine(), and CLHEP::RandGaussQ::engine().
double CLHEP::RandGauss::fire | ( | double | mean, | |
double | stdDev | |||
) | [inline] |
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
double CLHEP::RandGauss::fire | ( | ) |
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
Referenced by dist_layout(), fireArray(), main(), operator()(), and testRandGauss().
void CLHEP::RandGauss::fireArray | ( | const int | size, | |
double * | vect, | |||
double | mean, | |||
double | stdDev | |||
) |
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
Definition at line 175 of file RandGauss.cc.
References fire().
void CLHEP::RandGauss::fireArray | ( | const int | size, | |
double * | vect | |||
) |
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
Definition at line 167 of file RandGauss.cc.
References defaultMean, defaultStdDev, and fire().
std::istream & CLHEP::RandGauss::get | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
Definition at line 276 of file RandGauss.cc.
References defaultMean, defaultStdDev, CLHEP::DoubConv::longs2double(), name(), and CLHEP::possibleKeywordInput().
Referenced by CLHEP::RandGaussT::get().
bool CLHEP::RandGauss::getF | ( | ) | const [inline] |
Definition at line 115 of file RandGauss.h.
static bool CLHEP::RandGauss::getFlag | ( | ) | [inline, static] |
Definition at line 111 of file RandGauss.h.
Referenced by saveDistState(), saveEngineStatus(), and shoot().
static double CLHEP::RandGauss::getVal | ( | ) | [inline, static, protected] |
Definition at line 148 of file RandGauss.h.
Referenced by saveDistState(), saveEngineStatus(), and shoot().
std::string CLHEP::RandGauss::name | ( | ) | const [virtual] |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
Definition at line 43 of file RandGauss.cc.
double CLHEP::RandGauss::normal | ( | ) | [protected] |
Definition at line 141 of file RandGauss.cc.
References CLHEP::HepRandomEngine::flat(), and localEngine.
double CLHEP::RandGauss::operator() | ( | double | mean, | |
double | stdDev | |||
) | [virtual] |
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
Definition at line 63 of file RandGauss.cc.
References fire().
double CLHEP::RandGauss::operator() | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
Definition at line 59 of file RandGauss.cc.
References defaultMean, defaultStdDev, and fire().
std::ostream & CLHEP::RandGauss::put | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
Definition at line 251 of file RandGauss.cc.
References defaultMean, defaultStdDev, CLHEP::DoubConv::dto2longs(), and name().
Referenced by CLHEP::RandGaussT::put().
std::istream & CLHEP::RandGauss::restoreDistState | ( | std::istream & | is | ) | [static] |
Reimplemented from CLHEP::HepRandom.
Definition at line 352 of file RandGauss.cc.
References distributionName(), CLHEP::DoubConv::longs2double(), CLHEP::possibleKeywordInput(), and setFlag().
Referenced by CLHEP::StaticRandomStates::restore(), and restoreFullState().
void CLHEP::RandGauss::restoreEngineStatus | ( | const char | filename[] = "Config.conf" |
) | [static] |
Reimplemented from CLHEP::HepRandom.
Definition at line 204 of file RandGauss.cc.
References CLHEP::HepRandom::getTheEngine(), CLHEP::DoubConv::longs2double(), CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::restoreStatus(), and setFlag().
std::istream & CLHEP::RandGauss::restoreFullState | ( | std::istream & | is | ) | [static] |
Reimplemented from CLHEP::HepRandom.
Definition at line 402 of file RandGauss.cc.
References restoreDistState(), and CLHEP::HepRandom::restoreFullState().
std::ostream & CLHEP::RandGauss::saveDistState | ( | std::ostream & | os | ) | [static] |
Reimplemented from CLHEP::HepRandom.
Definition at line 337 of file RandGauss.cc.
References distributionName(), CLHEP::DoubConv::dto2longs(), getFlag(), and getVal().
Referenced by saveFullState().
void CLHEP::RandGauss::saveEngineStatus | ( | const char | filename[] = "Config.conf" |
) | [static] |
Reimplemented from CLHEP::HepRandom.
Definition at line 184 of file RandGauss.cc.
References CLHEP::DoubConv::dto2longs(), getFlag(), CLHEP::HepRandom::getTheEngine(), getVal(), and CLHEP::HepRandomEngine::saveStatus().
std::ostream & CLHEP::RandGauss::saveFullState | ( | std::ostream & | os | ) | [static] |
Reimplemented from CLHEP::HepRandom.
Definition at line 396 of file RandGauss.cc.
References saveDistState(), and CLHEP::HepRandom::saveFullState().
Referenced by CLHEP::StaticRandomStates::save().
void CLHEP::RandGauss::setF | ( | bool | val | ) | [inline] |
Definition at line 117 of file RandGauss.h.
static void CLHEP::RandGauss::setFlag | ( | bool | val | ) | [inline, static] |
Definition at line 113 of file RandGauss.h.
Referenced by restoreDistState(), restoreEngineStatus(), and shoot().
static void CLHEP::RandGauss::setVal | ( | double | nextVal | ) | [inline, static, protected] |
static double CLHEP::RandGauss::shoot | ( | HepRandomEngine * | anEngine, | |
double | mean, | |||
double | stdDev | |||
) | [inline, static] |
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
double CLHEP::RandGauss::shoot | ( | HepRandomEngine * | anEngine | ) | [static] |
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
Definition at line 105 of file RandGauss.cc.
References CLHEP::HepRandomEngine::flat(), getFlag(), getVal(), setFlag(), and setVal().
static double CLHEP::RandGauss::shoot | ( | double | mean, | |
double | stdDev | |||
) | [inline, static] |
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
double CLHEP::RandGauss::shoot | ( | ) | [static] |
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
Definition at line 67 of file RandGauss.cc.
References CLHEP::HepRandomEngine::flat(), getFlag(), CLHEP::HepRandom::getTheEngine(), getVal(), setFlag(), and setVal().
Referenced by shootArray().
void CLHEP::RandGauss::shootArray | ( | HepRandomEngine * | anEngine, | |
const int | size, | |||
double * | vect, | |||
double | mean = 0.0 , |
|||
double | stdDev = 1.0 | |||
) | [static] |
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
Definition at line 131 of file RandGauss.cc.
References shoot().
void CLHEP::RandGauss::shootArray | ( | const int | size, | |
double * | vect, | |||
double | mean = 0.0 , |
|||
double | stdDev = 1.0 | |||
) | [static] |
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussT.
Definition at line 96 of file RandGauss.cc.
References shoot().
double CLHEP::RandGauss::defaultMean [protected] |
Definition at line 154 of file RandGauss.h.
Referenced by CLHEP::RandGaussT::fireArray(), CLHEP::RandGaussQ::fireArray(), fireArray(), get(), CLHEP::RandGaussT::operator()(), CLHEP::RandGaussQ::operator()(), operator()(), and put().
double CLHEP::RandGauss::defaultStdDev [protected] |
Definition at line 155 of file RandGauss.h.
Referenced by CLHEP::RandGaussT::fireArray(), CLHEP::RandGaussQ::fireArray(), fireArray(), get(), CLHEP::RandGaussT::operator()(), CLHEP::RandGaussQ::operator()(), operator()(), and put().
HepRandomEngine* CLHEP::RandGauss::localEngine [protected] |
Definition at line 157 of file RandGauss.h.
Referenced by engine(), normal(), CLHEP::RandGaussT::operator()(), CLHEP::RandGaussQ::operator()(), and ~RandGauss().