#include <Random.h>
◆ HepRandom() [1/4]
CLHEP::HepRandom::HepRandom |
( |
| ) |
|
◆ HepRandom() [2/4]
CLHEP::HepRandom::HepRandom |
( |
long |
seed | ) |
|
Definition at line 78 of file Random.cc.
79{
81}
static void setTheSeed(long seed, int lux=3)
◆ HepRandom() [3/4]
Definition at line 83 of file Random.cc.
84{
85 theDefaults().resetEngine( algorithm );
86}
◆ HepRandom() [4/4]
Definition at line 88 of file Random.cc.
89{
90 theDefaults().resetEngine( algorithm );
91}
◆ ~HepRandom()
CLHEP::HepRandom::~HepRandom |
( |
| ) |
|
|
virtual |
◆ createInstance()
int CLHEP::HepRandom::createInstance |
( |
| ) |
|
|
static |
Definition at line 208 of file Random.cc.
209{
210 return static_cast<int>( theDefaults().ensureInitialized() );
211}
◆ distributionName()
static std::string CLHEP::HepRandom::distributionName |
( |
| ) |
|
|
inlinestatic |
Definition at line 152 of file Random.h.
152{return "HepRandomEngine";}
◆ engine()
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 111 of file Random.cc.
111 {
112 std::cerr << "HepRandom::engine() called -- there is no assigned engine!\n";
113 return *theDefaults().theEngine.get();
114}
◆ flat() [1/2]
double CLHEP::HepRandom::flat |
( |
| ) |
|
◆ flat() [2/2]
◆ flatArray() [1/2]
void CLHEP::HepRandom::flatArray |
( |
const int |
size, |
|
|
double * |
vect |
|
) |
| |
Definition at line 101 of file Random.cc.
102{
103 theDefaults().theEngine->flatArray(size,vect);
104}
◆ flatArray() [2/2]
◆ get()
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::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 125 of file Random.cc.
Referenced by getTheGenerator(), and CLHEP::operator>>().
◆ getTheEngine()
Definition at line 165 of file Random.cc.
166{
167 return theDefaults().theEngine.get();
168}
Referenced by CLHEP::StaticRandomStates::restore(), CLHEP::RandFlat::restoreEngineStatus(), CLHEP::RandGauss::restoreEngineStatus(), restoreFullState(), CLHEP::RandFlat::saveEngineStatus(), CLHEP::RandGauss::saveEngineStatus(), saveFullState(), CLHEP::RandExponential::shoot(), CLHEP::RandFlat::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandChiSquare::shoot(), CLHEP::RandStudentT::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandGamma::shoot(), CLHEP::RandPoisson::shoot(), CLHEP::RandPoissonQ::shoot(), CLHEP::RandBinomial::shoot(), CLHEP::RandFlat::shootArray(), and tpia_misc_drng().
◆ getTheGenerator()
HepRandom * CLHEP::HepRandom::getTheGenerator |
( |
| ) |
|
|
static |
Definition at line 160 of file Random.cc.
161{
162 return theDefaults().theGenerator.get();
163}
◆ getTheSeed()
long CLHEP::HepRandom::getTheSeed |
( |
| ) |
|
|
static |
Definition at line 136 of file Random.cc.
137{
138 return theDefaults().theEngine->getSeed();
139}
◆ getTheSeeds()
const long * CLHEP::HepRandom::getTheSeeds |
( |
| ) |
|
|
static |
Definition at line 146 of file Random.cc.
147{
148 return theDefaults().theEngine->getSeeds();
149}
◆ getTheTableSeeds()
void CLHEP::HepRandom::getTheTableSeeds |
( |
long * |
seeds, |
|
|
int |
index |
|
) |
| |
|
static |
◆ name()
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::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 110 of file Random.cc.
◆ operator()()
double CLHEP::HepRandom::operator() |
( |
| ) |
|
|
virtual |
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 106 of file Random.cc.
◆ put()
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::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 124 of file Random.cc.
Referenced by CLHEP::operator<<().
◆ restoreDistState()
static std::istream & CLHEP::HepRandom::restoreDistState |
( |
std::istream & |
is | ) |
|
|
inlinestatic |
◆ restoreEngineStatus()
void CLHEP::HepRandom::restoreEngineStatus |
( |
const char |
filename[] = "Config.conf" | ) |
|
|
static |
◆ restoreFullState()
std::istream & CLHEP::HepRandom::restoreFullState |
( |
std::istream & |
is | ) |
|
|
static |
◆ restoreStaticRandomStates()
std::istream & CLHEP::HepRandom::restoreStaticRandomStates |
( |
std::istream & |
is | ) |
|
|
static |
Definition at line 199 of file Random.cc.
199 {
201}
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 |
◆ saveFullState()
std::ostream & CLHEP::HepRandom::saveFullState |
( |
std::ostream & |
os | ) |
|
|
static |
◆ saveStaticRandomStates()
std::ostream & CLHEP::HepRandom::saveStaticRandomStates |
( |
std::ostream & |
os | ) |
|
|
static |
Definition at line 195 of file Random.cc.
195 {
197}
static std::ostream & save(std::ostream &os)
◆ setTheEngine()
◆ setTheSeed()
void CLHEP::HepRandom::setTheSeed |
( |
long |
seed, |
|
|
int |
lux = 3 |
|
) |
| |
|
static |
Definition at line 131 of file Random.cc.
132{
133 theDefaults().theEngine->setSeed(seed,lux);
134}
Referenced by HepRandom().
◆ setTheSeeds()
void CLHEP::HepRandom::setTheSeeds |
( |
const long * |
seeds, |
|
|
int |
aux = -1 |
|
) |
| |
|
static |
◆ showEngineStatus()
void CLHEP::HepRandom::showEngineStatus |
( |
| ) |
|
|
static |
◆ seedTable
const long CLHEP::HepRandom::seedTable |
|
staticprotected |
The documentation for this class was generated from the following files: