#include <Random.h>
CLHEP::HepRandom::HepRandom |
( |
| ) |
|
CLHEP::HepRandom::HepRandom |
( |
long |
seed | ) |
|
Definition at line 178 of file Random.cc.
static void setTheSeed(long seed, int lux=3)
Definition at line 183 of file Random.cc.
185 theDefaults().resetEngine( algorithm );
Definition at line 188 of file Random.cc.
190 theDefaults().resetEngine( algorithm );
CLHEP::HepRandom::~HepRandom |
( |
| ) |
|
|
virtual |
int CLHEP::HepRandom::createInstance |
( |
| ) |
|
|
static |
Definition at line 308 of file Random.cc.
310 return static_cast<int>( theDefaults().ensureInitialized() );
static std::string CLHEP::HepRandom::distributionName |
( |
| ) |
|
|
inlinestatic |
Definition at line 152 of file Random.h.
152 {
return "HepRandomEngine";}
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 211 of file Random.cc.
212 std::cerr <<
"HepRandom::engine() called -- there is no assigned engine!\n";
213 return *theDefaults().theEngine.get();
double CLHEP::HepRandom::flat |
( |
| ) |
|
Definition at line 196 of file Random.cc.
198 return theDefaults().theEngine->flat();
void CLHEP::HepRandom::flatArray |
( |
const int |
size, |
|
|
double * |
vect |
|
) |
| |
Definition at line 201 of file Random.cc.
203 theDefaults().theEngine->flatArray(size,vect);
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 225 of file Random.cc.
Definition at line 265 of file Random.cc.
267 return theDefaults().theEngine.get();
HepRandom * CLHEP::HepRandom::getTheGenerator |
( |
| ) |
|
|
static |
Definition at line 260 of file Random.cc.
262 return theDefaults().theGenerator.get();
long CLHEP::HepRandom::getTheSeed |
( |
| ) |
|
|
static |
Definition at line 236 of file Random.cc.
238 return theDefaults().theEngine->getSeed();
const long * CLHEP::HepRandom::getTheSeeds |
( |
| ) |
|
|
static |
Definition at line 246 of file Random.cc.
248 return theDefaults().theEngine->getSeeds();
void CLHEP::HepRandom::getTheTableSeeds |
( |
long * |
seeds, |
|
|
int |
index |
|
) |
| |
|
static |
Definition at line 251 of file Random.cc.
253 if ((index >= 0) && (index < 215)) {
static const long seedTable[215][2]
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 210 of file Random.cc.
210 {
return "HepRandom";}
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 206 of file Random.cc.
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 224 of file Random.cc.
static std::istream& CLHEP::HepRandom::restoreDistState |
( |
std::istream & |
is | ) |
|
|
inlinestatic |
void CLHEP::HepRandom::restoreEngineStatus |
( |
const char |
filename[] = "Config.conf" | ) |
|
|
static |
Definition at line 280 of file Random.cc.
282 theDefaults().theEngine->restoreStatus( filename );
std::istream & CLHEP::HepRandom::restoreFullState |
( |
std::istream & |
is | ) |
|
|
static |
Definition at line 290 of file Random.cc.
static HepRandomEngine * getTheEngine()
std::istream & CLHEP::HepRandom::restoreStaticRandomStates |
( |
std::istream & |
is | ) |
|
|
static |
Definition at line 299 of file Random.cc.
static std::istream & restore(std::istream &is)
static std::ostream& CLHEP::HepRandom::saveDistState |
( |
std::ostream & |
os | ) |
|
|
inlinestatic |
void CLHEP::HepRandom::saveEngineStatus |
( |
const char |
filename[] = "Config.conf" | ) |
|
|
static |
Definition at line 275 of file Random.cc.
277 theDefaults().theEngine->saveStatus( filename );
std::ostream & CLHEP::HepRandom::saveFullState |
( |
std::ostream & |
os | ) |
|
|
static |
Definition at line 285 of file Random.cc.
static HepRandomEngine * getTheEngine()
std::ostream & CLHEP::HepRandom::saveStaticRandomStates |
( |
std::ostream & |
os | ) |
|
|
static |
Definition at line 295 of file Random.cc.
static std::ostream & save(std::ostream &os)
Definition at line 270 of file Random.cc.
272 theDefaults().theEngine.reset( theNewEngine, do_nothing_deleter() );
void CLHEP::HepRandom::setTheSeed |
( |
long |
seed, |
|
|
int |
lux = 3 |
|
) |
| |
|
static |
Definition at line 231 of file Random.cc.
233 theDefaults().theEngine->setSeed(seed,
lux);
static constexpr double lux
void CLHEP::HepRandom::setTheSeeds |
( |
const long * |
seeds, |
|
|
int |
aux = -1 |
|
) |
| |
|
static |
Definition at line 241 of file Random.cc.
243 theDefaults().theEngine->setSeeds(seeds,aux);
void CLHEP::HepRandom::showEngineStatus |
( |
| ) |
|
|
static |
Definition at line 303 of file Random.cc.
305 theDefaults().theEngine->showStatus();
const long CLHEP::HepRandom::seedTable |
|
staticprotected |
The documentation for this class was generated from the following files:
- geant4.10.03.p01/source/externals/clhep/include/CLHEP/Random/Random.h
- geant4.10.03.p01/source/externals/clhep/include/CLHEP/Random/SeedTable.h
- geant4.10.03.p01/source/externals/clhep/src/Random.cc