#include <Random.h>
◆ HepRandom() [1/4]
CLHEP::HepRandom::HepRandom |
( |
| ) |
|
◆ HepRandom() [2/4]
CLHEP::HepRandom::HepRandom |
( |
long |
seed | ) |
|
Definition at line 183 of file Random.cc.
184{
186}
static void setTheSeed(long seed, int lxr=3)
◆ HepRandom() [3/4]
Definition at line 188 of file Random.cc.
189{
190 theDefaults().resetEngine( algorithm );
191}
◆ HepRandom() [4/4]
Definition at line 193 of file Random.cc.
194{
195 theDefaults().resetEngine( algorithm );
196}
◆ ~HepRandom()
CLHEP::HepRandom::~HepRandom |
( |
| ) |
|
|
virtual |
◆ createInstance()
int CLHEP::HepRandom::createInstance |
( |
| ) |
|
|
static |
Definition at line 313 of file Random.cc.
314{
315 return static_cast<int>( theDefaults().ensureInitialized() );
316}
◆ distributionName()
static std::string CLHEP::HepRandom::distributionName |
( |
| ) |
|
|
inlinestatic |
Definition at line 153 of file Random.h.
153{return "HepRandomEngine";}
◆ engine()
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandExpZiggurat, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandSkewNormal, and CLHEP::RandStudentT.
Definition at line 216 of file Random.cc.
216 {
217 std::cerr << "HepRandom::engine() called -- there is no assigned engine!\n";
218 return *theDefaults().theEngine.get();
219}
◆ 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 206 of file Random.cc.
207{
208 theDefaults().theEngine->flatArray(size,vect);
209}
◆ 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::RandExpZiggurat, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandSkewNormal, and CLHEP::RandStudentT.
Definition at line 230 of file Random.cc.
Referenced by getTheGenerator(), and CLHEP::operator>>().
◆ getTheEngine()
Definition at line 270 of file Random.cc.
271{
272 return theDefaults().theEngine.get();
273}
Referenced by CLHEP::StaticRandomStates::restore(), CLHEP::RandFlat::restoreEngineStatus(), CLHEP::RandGauss::restoreEngineStatus(), CLHEP::RandFlat::saveEngineStatus(), CLHEP::RandGauss::saveEngineStatus(), CLHEP::RandExponential::shoot(), CLHEP::RandExpZiggurat::shoot(), CLHEP::RandFlat::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandGaussZiggurat::shoot(), CLHEP::RandSkewNormal::shoot(), CLHEP::RandChiSquare::shoot(), CLHEP::RandStudentT::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandGamma::shoot(), CLHEP::RandPoisson::shoot(), CLHEP::RandPoissonQ::shoot(), CLHEP::RandPoissonT::shoot(), CLHEP::RandBinomial::shoot(), CLHEP::RandFlat::shootArray(), testRandGauss(), and useSeed().
◆ getTheGenerator()
HepRandom * CLHEP::HepRandom::getTheGenerator |
( |
| ) |
|
|
static |
Definition at line 265 of file Random.cc.
266{
267 return theDefaults().theGenerator.get();
268}
Referenced by main().
◆ getTheSeed()
long CLHEP::HepRandom::getTheSeed |
( |
| ) |
|
|
static |
Definition at line 241 of file Random.cc.
242{
243 return theDefaults().theEngine->getSeed();
244}
◆ getTheSeeds()
const long * CLHEP::HepRandom::getTheSeeds |
( |
| ) |
|
|
static |
Definition at line 251 of file Random.cc.
252{
253 return theDefaults().theEngine->getSeeds();
254}
◆ 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::RandExpZiggurat, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandSkewNormal, and CLHEP::RandStudentT.
Definition at line 215 of file Random.cc.
◆ operator()()
double CLHEP::HepRandom::operator() |
( |
| ) |
|
|
virtual |
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandExpZiggurat, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandSkewNormal, and CLHEP::RandStudentT.
Definition at line 211 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::RandExpZiggurat, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussT, CLHEP::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandSkewNormal, and CLHEP::RandStudentT.
Definition at line 229 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 304 of file Random.cc.
304 {
306}
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 300 of file Random.cc.
300 {
302}
static std::ostream & save(std::ostream &os)
◆ setTheEngine()
◆ setTheSeed()
void CLHEP::HepRandom::setTheSeed |
( |
long |
seed, |
|
|
int |
lxr = 3 |
|
) |
| |
|
static |
◆ setTheSeeds()
void CLHEP::HepRandom::setTheSeeds |
( |
const long * |
seeds, |
|
|
int |
aux = -1 |
|
) |
| |
|
static |
Definition at line 246 of file Random.cc.
247{
248 theDefaults().theEngine->setSeeds(seeds,aux);
249}
◆ showEngineStatus()
void CLHEP::HepRandom::showEngineStatus |
( |
| ) |
|
|
static |
Definition at line 308 of file Random.cc.
309{
310 theDefaults().theEngine->showStatus();
311}
◆ seedTable
const long CLHEP::HepRandom::seedTable |
|
staticprotected |
The documentation for this class was generated from the following files: