CLHEP 2.0.4.7 Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <Random.h>
Inheritance diagram for CLHEP::HepRandom:
Public Member Functions | |
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) |
virtual double | operator() () |
virtual std::string | name () const |
virtual HepRandomEngine & | engine () |
virtual std::ostream & | put (std::ostream &os) const |
virtual std::istream & | get (std::istream &is) |
Static Public Member Functions | |
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 () |
Static Protected Attributes | |
static const long | seedTable [215][2] |
Definition at line 50 of file Random.h.
CLHEP::HepRandom::HepRandom | ( | ) |
CLHEP::HepRandom::HepRandom | ( | long | seed | ) |
CLHEP::HepRandom::HepRandom | ( | HepRandomEngine & | algorithm | ) |
CLHEP::HepRandom::HepRandom | ( | HepRandomEngine * | algorithm | ) |
int CLHEP::HepRandom::createInstance | ( | ) | [static] |
static std::string CLHEP::HepRandom::distributionName | ( | ) | [inline, static] |
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBit, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, and CLHEP::RandStudentT.
HepRandomEngine & CLHEP::HepRandom::engine | ( | ) | [virtual] |
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, and CLHEP::RandStudentT.
double CLHEP::HepRandom::flat | ( | HepRandomEngine * | theNewEngine | ) | [inline] |
double CLHEP::HepRandom::flat | ( | ) |
Definition at line 72 of file Random.cc.
References CLHEP::HepRandomEngine::flat().
Referenced by main(), operator()(), and CLHEP::RandExponential::shoot().
void CLHEP::HepRandom::flatArray | ( | HepRandomEngine * | theNewEngine, | |
const int | size, | |||
double * | vect | |||
) | [inline] |
void CLHEP::HepRandom::flatArray | ( | const int | size, | |
double * | vect | |||
) |
std::istream & CLHEP::HepRandom::get | ( | std::istream & | is | ) | [virtual] |
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBit, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, and CLHEP::RandStudentT.
Definition at line 101 of file Random.cc.
Referenced by CLHEP::operator>>().
HepRandomEngine * CLHEP::HepRandom::getTheEngine | ( | ) | [static] |
Definition at line 141 of file Random.cc.
Referenced by CLHEP::RandGeneral::RandGeneral(), CLHEP::StaticRandomStates::restore(), CLHEP::RandGauss::restoreEngineStatus(), CLHEP::RandFlat::restoreEngineStatus(), restoreFullState(), CLHEP::RandGauss::saveEngineStatus(), CLHEP::RandFlat::saveEngineStatus(), saveFullState(), CLHEP::RandStudentT::shoot(), CLHEP::RandPoissonT::shoot(), CLHEP::RandPoisson::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandGamma::shoot(), CLHEP::RandFlat::shoot(), CLHEP::RandExponential::shoot(), CLHEP::RandChiSquare::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandBinomial::shoot(), CLHEP::RandFlat::shootArray(), and useSeed().
HepRandom * CLHEP::HepRandom::getTheGenerator | ( | ) | [static] |
long CLHEP::HepRandom::getTheSeed | ( | ) | [static] |
const long * CLHEP::HepRandom::getTheSeeds | ( | ) | [static] |
Definition at line 122 of file Random.cc.
References CLHEP::HepRandomEngine::getSeeds().
Referenced by main().
void CLHEP::HepRandom::getTheTableSeeds | ( | long * | seeds, | |
int | index | |||
) | [static] |
Definition at line 127 of file Random.cc.
References seedTable.
Referenced by CLHEP::DRand48Engine::DRand48Engine(), CLHEP::HepJamesRandom::HepJamesRandom(), CLHEP::Hurd160Engine::Hurd160Engine(), CLHEP::Hurd288Engine::Hurd288Engine(), CLHEP::MTwistEngine::MTwistEngine(), CLHEP::RandEngine::RandEngine(), CLHEP::RanecuEngine::RanecuEngine(), CLHEP::Ranlux64Engine::Ranlux64Engine(), CLHEP::RanluxEngine::RanluxEngine(), and CLHEP::RanecuEngine::setSeed().
std::string CLHEP::HepRandom::name | ( | ) | const [virtual] |
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBit, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, and CLHEP::RandStudentT.
double CLHEP::HepRandom::operator() | ( | ) | [virtual] |
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, and CLHEP::RandStudentT.
Definition at line 82 of file Random.cc.
References flat().
std::ostream & CLHEP::HepRandom::put | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBit, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, and CLHEP::RandStudentT.
Definition at line 100 of file Random.cc.
Referenced by CLHEP::operator<<().
static std::istream& CLHEP::HepRandom::restoreDistState | ( | std::istream & | is | ) | [inline, static] |
Reimplemented in CLHEP::RandBit, CLHEP::RandFlat, and CLHEP::RandGauss.
void CLHEP::HepRandom::restoreEngineStatus | ( | const char | filename[] = "Config.conf" |
) | [static] |
Reimplemented in CLHEP::RandFlat, and CLHEP::RandGauss.
Definition at line 156 of file Random.cc.
References CLHEP::HepRandomEngine::restoreStatus().
std::istream & CLHEP::HepRandom::restoreFullState | ( | std::istream & | is | ) | [static] |
Reimplemented in CLHEP::RandBit, CLHEP::RandFlat, and CLHEP::RandGauss.
Definition at line 166 of file Random.cc.
References getTheEngine().
Referenced by CLHEP::RandGauss::restoreFullState(), and CLHEP::RandFlat::restoreFullState().
std::istream & CLHEP::HepRandom::restoreStaticRandomStates | ( | std::istream & | is | ) | [static] |
static std::ostream& CLHEP::HepRandom::saveDistState | ( | std::ostream & | os | ) | [inline, static] |
Reimplemented in CLHEP::RandBit, CLHEP::RandFlat, and CLHEP::RandGauss.
void CLHEP::HepRandom::saveEngineStatus | ( | const char | filename[] = "Config.conf" |
) | [static] |
Reimplemented in CLHEP::RandFlat, and CLHEP::RandGauss.
Definition at line 151 of file Random.cc.
References CLHEP::HepRandomEngine::saveStatus().
std::ostream & CLHEP::HepRandom::saveFullState | ( | std::ostream & | os | ) | [static] |
Reimplemented in CLHEP::RandBit, CLHEP::RandFlat, and CLHEP::RandGauss.
Definition at line 161 of file Random.cc.
References getTheEngine().
Referenced by CLHEP::RandGauss::saveFullState(), and CLHEP::RandFlat::saveFullState().
std::ostream & CLHEP::HepRandom::saveStaticRandomStates | ( | std::ostream & | os | ) | [static] |
void CLHEP::HepRandom::setTheEngine | ( | HepRandomEngine * | theNewEngine | ) | [static] |
Definition at line 146 of file Random.cc.
Referenced by main(), and CLHEP::StaticRandomStates::restore().
void CLHEP::HepRandom::setTheSeed | ( | long | seed, | |
int | lux = 3 | |||
) | [static] |
Definition at line 107 of file Random.cc.
References CLHEP::HepRandomEngine::setSeed().
Referenced by diagmatrix_test(), HepRandom(), main(), matrix_test(), symmatrix_test(), useSeed(), and vector_test().
void CLHEP::HepRandom::setTheSeeds | ( | const long * | seeds, | |
int | aux = -1 | |||
) | [static] |
Definition at line 117 of file Random.cc.
References CLHEP::HepRandomEngine::setSeeds().
Referenced by main().
void CLHEP::HepRandom::showEngineStatus | ( | ) | [static] |
const long CLHEP::HepRandom::seedTable [static, protected] |