#include <Random.h>
◆ HepRandom() [1/4]
CLHEP::HepRandom::HepRandom |
( |
| ) |
|
◆ HepRandom() [2/4]
CLHEP::HepRandom::HepRandom |
( |
long |
seed | ) |
|
Definition at line 79 of file Random.cc.
static void setTheSeed(long seed, int lux=3)
◆ HepRandom() [3/4]
Definition at line 84 of file Random.cc.
86 theDefaults().resetEngine( algorithm );
◆ HepRandom() [4/4]
Definition at line 89 of file Random.cc.
91 theDefaults().resetEngine( algorithm );
◆ ~HepRandom()
CLHEP::HepRandom::~HepRandom |
( |
| ) |
|
|
virtual |
◆ createInstance()
int CLHEP::HepRandom::createInstance |
( |
| ) |
|
|
static |
Definition at line 209 of file Random.cc.
211 return static_cast<int>( theDefaults().ensureInitialized() );
◆ distributionName()
static std::string CLHEP::HepRandom::distributionName |
( |
| ) |
|
|
inlinestatic |
Definition at line 152 of file Random.h.
152 {
return "HepRandomEngine";}
◆ engine()
Reimplemented in CLHEP::RandFlat, CLHEP::RandBreitWigner, CLHEP::RandGeneral, CLHEP::RandExpZiggurat, CLHEP::RandGaussQ, CLHEP::RandPoissonQ, CLHEP::RandGauss, CLHEP::RandStudentT, CLHEP::RandBinomial, CLHEP::RandGamma, CLHEP::RandLandau, CLHEP::RandChiSquare, CLHEP::RandPoisson, CLHEP::RandExponential, and CLHEP::RandGaussZiggurat.
Definition at line 112 of file Random.cc.
113 std::cerr <<
"HepRandom::engine() called -- there is no assigned engine!\n";
114 return *theDefaults().theEngine.get();
◆ flat() [1/2]
double CLHEP::HepRandom::flat |
( |
| ) |
|
Definition at line 97 of file Random.cc.
99 return theDefaults().theEngine->flat();
◆ flat() [2/2]
◆ flatArray() [1/2]
void CLHEP::HepRandom::flatArray |
( |
const int |
size, |
|
|
double * |
vect |
|
) |
| |
Definition at line 102 of file Random.cc.
104 theDefaults().theEngine->flatArray(size,vect);
◆ flatArray() [2/2]
void CLHEP::HepRandom::flatArray |
( |
HepRandomEngine * |
theNewEngine, |
|
|
const int |
size, |
|
|
double * |
vect |
|
) |
| |
|
inline |
◆ get()
std::istream & CLHEP::HepRandom::get |
( |
std::istream & |
is | ) |
|
|
virtual |
Reimplemented in CLHEP::RandFlat, CLHEP::RandBreitWigner, CLHEP::RandGeneral, CLHEP::RandGauss, CLHEP::RandExpZiggurat, CLHEP::RandGaussQ, CLHEP::RandBinomial, CLHEP::RandGamma, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandGaussZiggurat, CLHEP::RandBit, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandStudentT, and CLHEP::RandPoissonQ.
Definition at line 126 of file Random.cc.
◆ getTheEngine()
Definition at line 166 of file Random.cc.
168 return theDefaults().theEngine.get();
◆ getTheGenerator()
HepRandom * CLHEP::HepRandom::getTheGenerator |
( |
| ) |
|
|
static |
Definition at line 161 of file Random.cc.
163 return theDefaults().theGenerator.get();
◆ getTheSeed()
long CLHEP::HepRandom::getTheSeed |
( |
| ) |
|
|
static |
Definition at line 137 of file Random.cc.
139 return theDefaults().theEngine->getSeed();
◆ getTheSeeds()
const long * CLHEP::HepRandom::getTheSeeds |
( |
| ) |
|
|
static |
Definition at line 147 of file Random.cc.
149 return theDefaults().theEngine->getSeeds();
◆ getTheTableSeeds()
void CLHEP::HepRandom::getTheTableSeeds |
( |
long * |
seeds, |
|
|
int |
index |
|
) |
| |
|
static |
Definition at line 152 of file Random.cc.
static const long seedTable[215][2]
◆ name()
std::string CLHEP::HepRandom::name |
( |
| ) |
const |
|
virtual |
Reimplemented in CLHEP::RandFlat, CLHEP::RandBreitWigner, CLHEP::RandGeneral, CLHEP::RandExpZiggurat, CLHEP::RandGaussQ, CLHEP::RandPoissonQ, CLHEP::RandGauss, CLHEP::RandStudentT, CLHEP::RandBinomial, CLHEP::RandGamma, CLHEP::RandLandau, CLHEP::RandChiSquare, CLHEP::RandPoisson, CLHEP::RandExponential, CLHEP::RandGaussZiggurat, and CLHEP::RandBit.
Definition at line 111 of file Random.cc.
111 {
return "HepRandom";}
◆ operator()()
double CLHEP::HepRandom::operator() |
( |
| ) |
|
|
virtual |
Reimplemented in CLHEP::RandFlat, CLHEP::RandBreitWigner, CLHEP::RandGeneral, CLHEP::RandExpZiggurat, CLHEP::RandPoissonQ, CLHEP::RandGauss, CLHEP::RandLandau, CLHEP::RandStudentT, CLHEP::RandGaussQ, CLHEP::RandBinomial, CLHEP::RandGamma, CLHEP::RandPoisson, CLHEP::RandChiSquare, CLHEP::RandExponential, and CLHEP::RandGaussZiggurat.
Definition at line 107 of file Random.cc.
◆ put()
std::ostream & CLHEP::HepRandom::put |
( |
std::ostream & |
os | ) |
const |
|
virtual |
Reimplemented in CLHEP::RandFlat, CLHEP::RandBreitWigner, CLHEP::RandGeneral, CLHEP::RandGauss, CLHEP::RandExpZiggurat, CLHEP::RandGaussQ, CLHEP::RandBinomial, CLHEP::RandGamma, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandGaussZiggurat, CLHEP::RandBit, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandStudentT, and CLHEP::RandPoissonQ.
Definition at line 125 of file Random.cc.
◆ restoreDistState()
static std::istream& CLHEP::HepRandom::restoreDistState |
( |
std::istream & |
is | ) |
|
|
inlinestatic |
◆ restoreEngineStatus()
void CLHEP::HepRandom::restoreEngineStatus |
( |
const char |
filename[] = "Config.conf" | ) |
|
|
static |
Definition at line 181 of file Random.cc.
183 theDefaults().theEngine->restoreStatus( filename );
◆ restoreFullState()
std::istream & CLHEP::HepRandom::restoreFullState |
( |
std::istream & |
is | ) |
|
|
static |
Definition at line 191 of file Random.cc.
static HepRandomEngine * getTheEngine()
◆ restoreStaticRandomStates()
std::istream & CLHEP::HepRandom::restoreStaticRandomStates |
( |
std::istream & |
is | ) |
|
|
static |
Definition at line 200 of file Random.cc.
static std::istream & restore(std::istream &is)
◆ saveDistState()
static std::ostream& CLHEP::HepRandom::saveDistState |
( |
std::ostream & |
os | ) |
|
|
inlinestatic |
◆ saveEngineStatus()
void CLHEP::HepRandom::saveEngineStatus |
( |
const char |
filename[] = "Config.conf" | ) |
|
|
static |
Definition at line 176 of file Random.cc.
178 theDefaults().theEngine->saveStatus( filename );
◆ saveFullState()
std::ostream & CLHEP::HepRandom::saveFullState |
( |
std::ostream & |
os | ) |
|
|
static |
Definition at line 186 of file Random.cc.
static HepRandomEngine * getTheEngine()
◆ saveStaticRandomStates()
std::ostream & CLHEP::HepRandom::saveStaticRandomStates |
( |
std::ostream & |
os | ) |
|
|
static |
Definition at line 196 of file Random.cc.
static std::ostream & save(std::ostream &os)
◆ setTheEngine()
Definition at line 171 of file Random.cc.
173 theDefaults().theEngine.reset( theNewEngine, do_nothing_deleter() );
◆ setTheSeed()
void CLHEP::HepRandom::setTheSeed |
( |
long |
seed, |
|
|
int |
lux = 3 |
|
) |
| |
|
static |
Definition at line 132 of file Random.cc.
134 theDefaults().theEngine->setSeed(seed,
lux);
◆ setTheSeeds()
void CLHEP::HepRandom::setTheSeeds |
( |
const long * |
seeds, |
|
|
int |
aux = -1 |
|
) |
| |
|
static |
Definition at line 142 of file Random.cc.
144 theDefaults().theEngine->setSeeds(seeds,aux);
◆ showEngineStatus()
void CLHEP::HepRandom::showEngineStatus |
( |
| ) |
|
|
static |
Definition at line 204 of file Random.cc.
206 theDefaults().theEngine->showStatus();
◆ seedTable
const long CLHEP::HepRandom::seedTable |
|
staticprotected |
The documentation for this class was generated from the following files: