#include <Random.h>
◆ HepRandom() [1/4]
CLHEP::HepRandom::HepRandom |
( |
| ) |
|
◆ HepRandom() [2/4]
CLHEP::HepRandom::HepRandom |
( |
long | seed | ) |
|
Definition at line 181 of file Random.cc.
182{
184}
static void setTheSeed(long seed, int lxr=3)
◆ HepRandom() [3/4]
Definition at line 186 of file Random.cc.
187{
188 theDefaults().resetEngine( algorithm );
189}
◆ HepRandom() [4/4]
Definition at line 191 of file Random.cc.
192{
193 theDefaults().resetEngine( algorithm );
194}
◆ ~HepRandom()
CLHEP::HepRandom::~HepRandom |
( |
| ) |
|
|
virtual |
◆ createInstance()
int CLHEP::HepRandom::createInstance |
( |
| ) |
|
|
static |
Definition at line 311 of file Random.cc.
312{
313 return static_cast<int>( theDefaults().ensureInitialized() );
314}
◆ distributionName()
static std::string CLHEP::HepRandom::distributionName |
( |
| ) |
|
|
inlinestatic |
Definition at line 151 of file Random.h.
151{return "HepRandomEngine";}
◆ engine()
Reimplemented in CLHEP::RandBinomial, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandExpZiggurat, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 214 of file Random.cc.
214 {
215 std::cerr << "HepRandom::engine() called -- there is no assigned engine!\n";
216 return *theDefaults().theEngine.get();
217}
◆ 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 204 of file Random.cc.
205{
206 theDefaults().theEngine->flatArray(size,vect);
207}
◆ 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::RandBinomial, CLHEP::RandBit, CLHEP::RandBreitWigner, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandExpZiggurat, CLHEP::RandFlat, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 228 of file Random.cc.
Referenced by getTheGenerator(), and CLHEP::operator>>().
◆ getTheEngine()
Definition at line 268 of file Random.cc.
269{
270 return theDefaults().theEngine.get();
271}
Referenced by CLHEP::StaticRandomStates::restore(), CLHEP::RandFlat::restoreEngineStatus(), CLHEP::RandGauss::restoreEngineStatus(), CLHEP::RandFlat::saveEngineStatus(), CLHEP::RandGauss::saveEngineStatus(), CLHEP::RandBinomial::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandChiSquare::shoot(), CLHEP::RandExponential::shoot(), CLHEP::RandExponential::shoot(), CLHEP::RandExpZiggurat::shoot(), CLHEP::RandExpZiggurat::shoot(), CLHEP::RandFlat::shoot(), CLHEP::RandGamma::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandGaussZiggurat::shoot(), CLHEP::RandPoisson::shoot(), CLHEP::RandPoissonQ::shoot(), CLHEP::RandStudentT::shoot(), and CLHEP::RandFlat::shootArray().
◆ getTheGenerator()
HepRandom * CLHEP::HepRandom::getTheGenerator |
( |
| ) |
|
|
static |
Definition at line 263 of file Random.cc.
264{
265 return theDefaults().theGenerator.get();
266}
◆ getTheSeed()
long CLHEP::HepRandom::getTheSeed |
( |
| ) |
|
|
static |
Definition at line 239 of file Random.cc.
240{
241 return theDefaults().theEngine->getSeed();
242}
◆ getTheSeeds()
const long * CLHEP::HepRandom::getTheSeeds |
( |
| ) |
|
|
static |
Definition at line 249 of file Random.cc.
250{
251 return theDefaults().theEngine->getSeeds();
252}
◆ getTheTableSeeds()
void CLHEP::HepRandom::getTheTableSeeds |
( |
long * | seeds, |
|
|
int | index ) |
|
static |
Definition at line 254 of file Random.cc.
255{
256 if ((index >= 0) && (index < 215)) {
259 }
260 else seeds = NULL;
261}
static const long seedTable[215][2]
Referenced by CLHEP::HepJamesRandom::HepJamesRandom(), CLHEP::HepJamesRandom::HepJamesRandom(), CLHEP::MTwistEngine::MTwistEngine(), CLHEP::MTwistEngine::MTwistEngine(), CLHEP::RanecuEngine::RanecuEngine(), CLHEP::RanecuEngine::RanecuEngine(), CLHEP::Ranlux64Engine::Ranlux64Engine(), CLHEP::Ranlux64Engine::Ranlux64Engine(), CLHEP::RanluxEngine::RanluxEngine(), CLHEP::RanluxEngine::RanluxEngine(), and CLHEP::RanecuEngine::setSeed().
◆ 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::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 213 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::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 209 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::RandGaussZiggurat, CLHEP::RandGeneral, CLHEP::RandLandau, CLHEP::RandPoisson, CLHEP::RandPoissonQ, and CLHEP::RandStudentT.
Definition at line 227 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 |
Definition at line 283 of file Random.cc.
284{
285 theDefaults().theEngine->restoreStatus( filename );
286}
◆ restoreFullState()
std::istream & CLHEP::HepRandom::restoreFullState |
( |
std::istream & | is | ) |
|
|
static |
◆ restoreStaticRandomStates()
std::istream & CLHEP::HepRandom::restoreStaticRandomStates |
( |
std::istream & | is | ) |
|
|
static |
Definition at line 302 of file Random.cc.
302 {
304}
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 298 of file Random.cc.
298 {
300}
static std::ostream & save(std::ostream &os)
◆ setTheEngine()
◆ setTheSeed()
void CLHEP::HepRandom::setTheSeed |
( |
long | seed, |
|
|
int | lxr = 3 ) |
|
static |
Definition at line 234 of file Random.cc.
235{
236 theDefaults().theEngine->setSeed(seed,lux);
237}
◆ setTheSeeds()
void CLHEP::HepRandom::setTheSeeds |
( |
const long * | seeds, |
|
|
int | aux = -1 ) |
|
static |
Definition at line 244 of file Random.cc.
245{
246 theDefaults().theEngine->setSeeds(seeds,aux);
247}
◆ showEngineStatus()
void CLHEP::HepRandom::showEngineStatus |
( |
| ) |
|
|
static |
Definition at line 306 of file Random.cc.
307{
308 theDefaults().theEngine->showStatus();
309}
◆ seedTable
const long CLHEP::HepRandom::seedTable |
|
staticprotected |
The documentation for this class was generated from the following files: