#include <Random.h>
CLHEP::HepRandom::HepRandom |
( |
| ) |
|
CLHEP::HepRandom::HepRandom |
( |
long |
seed | ) |
|
Definition at line 83 of file Random.cc.
85 theDefaults().resetEngine( algorithm );
Definition at line 88 of file Random.cc.
90 theDefaults().resetEngine( algorithm );
CLHEP::HepRandom::~HepRandom |
( |
| ) |
|
|
virtual |
int CLHEP::HepRandom::createInstance |
( |
| ) |
|
|
static |
Definition at line 208 of file Random.cc.
210 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::RandStudentT, CLHEP::RandBinomial, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandLandau, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandPoisson, and CLHEP::RandGaussZiggurat.
Definition at line 111 of file Random.cc.
References CLHEP::HepRandomEngine::get().
112 std::cerr <<
"HepRandom::engine() called -- there is no assigned engine!\n";
113 return *theDefaults().theEngine.get();
double CLHEP::HepRandom::flat |
( |
| ) |
|
void CLHEP::HepRandom::flatArray |
( |
const int |
size, |
|
|
double * |
vect |
|
) |
| |
Definition at line 101 of file Random.cc.
103 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::RandStudentT, CLHEP::RandPoisson, and CLHEP::RandPoissonQ.
Definition at line 125 of file Random.cc.
Referenced by getTheGenerator(), and CLHEP::operator>>().
Definition at line 165 of file Random.cc.
References CLHEP::HepRandomEngine::get().
Referenced by G4FPYSamplingOps::Initialize(), CLHEP::StaticRandomStates::restore(), CLHEP::RandGauss::restoreEngineStatus(), CLHEP::RandFlat::restoreEngineStatus(), restoreFullState(), CLHEP::RandGauss::saveEngineStatus(), CLHEP::RandFlat::saveEngineStatus(), saveFullState(), CLHEP::RandGaussZiggurat::shoot(), CLHEP::RandExpZiggurat::shoot(), CLHEP::RandExponential::shoot(), CLHEP::RandChiSquare::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandBinomial::shoot(), CLHEP::RandGamma::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandFlat::shoot(), CLHEP::RandPoisson::shoot(), CLHEP::RandStudentT::shoot(), CLHEP::RandPoissonQ::shoot(), CLHEP::RandFlat::shootArray(), and tpia_misc_drng().
167 return theDefaults().theEngine.get();
HepRandom * CLHEP::HepRandom::getTheGenerator |
( |
| ) |
|
|
static |
Definition at line 160 of file Random.cc.
References get().
162 return theDefaults().theGenerator.get();
long CLHEP::HepRandom::getTheSeed |
( |
| ) |
|
|
static |
const long * CLHEP::HepRandom::getTheSeeds |
( |
| ) |
|
|
static |
void CLHEP::HepRandom::getTheTableSeeds |
( |
long * |
seeds, |
|
|
int |
index |
|
) |
| |
|
static |
std::string CLHEP::HepRandom::name |
( |
| ) |
const |
|
virtual |
Reimplemented in CLHEP::RandFlat, CLHEP::RandBreitWigner, CLHEP::RandGeneral, CLHEP::RandExpZiggurat, CLHEP::RandGaussQ, CLHEP::RandPoissonQ, CLHEP::RandStudentT, CLHEP::RandBinomial, CLHEP::RandGamma, CLHEP::RandGauss, CLHEP::RandLandau, CLHEP::RandChiSquare, CLHEP::RandExponential, CLHEP::RandPoisson, CLHEP::RandGaussZiggurat, and CLHEP::RandBit.
Definition at line 110 of file Random.cc.
110 {
return "HepRandom";}
double CLHEP::HepRandom::operator() |
( |
| ) |
|
|
virtual |
Reimplemented in CLHEP::RandFlat, CLHEP::RandBreitWigner, CLHEP::RandGeneral, CLHEP::RandExpZiggurat, CLHEP::RandPoissonQ, CLHEP::RandLandau, CLHEP::RandStudentT, CLHEP::RandGauss, CLHEP::RandGaussQ, CLHEP::RandBinomial, CLHEP::RandGamma, CLHEP::RandPoisson, CLHEP::RandChiSquare, CLHEP::RandExponential, and CLHEP::RandGaussZiggurat.
Definition at line 106 of file Random.cc.
References flat().
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::RandStudentT, CLHEP::RandPoisson, and CLHEP::RandPoissonQ.
Definition at line 124 of file Random.cc.
Referenced by CLHEP::operator<<().
static std::istream& CLHEP::HepRandom::restoreDistState |
( |
std::istream & |
is | ) |
|
|
inlinestatic |
void CLHEP::HepRandom::restoreEngineStatus |
( |
const char |
filename[] = "Config.conf" | ) |
|
|
static |
std::istream & CLHEP::HepRandom::restoreFullState |
( |
std::istream & |
is | ) |
|
|
static |
std::istream & CLHEP::HepRandom::restoreStaticRandomStates |
( |
std::istream & |
is | ) |
|
|
static |
static std::ostream& CLHEP::HepRandom::saveDistState |
( |
std::ostream & |
os | ) |
|
|
inlinestatic |
void CLHEP::HepRandom::saveEngineStatus |
( |
const char |
filename[] = "Config.conf" | ) |
|
|
static |
Definition at line 175 of file Random.cc.
Referenced by G4CascadeInterface::ApplyYourself(), PurgMagRunAction::BeginOfRunAction(), ExG4RunAction01::BeginOfRunAction(), Em10RunAction::BeginOfRunAction(), ExG4EventAction01::EndOfEventAction(), Em10EventAction::EndOfEventAction(), PurgMagRunAction::EndOfRunAction(), ExG4RunAction01::EndOfRunAction(), Em10RunAction::EndOfRunAction(), G4HadronicProcess::PostStepDoIt(), and G4CascadeInterface::Propagate().
177 theDefaults().theEngine->saveStatus( filename );
std::ostream & CLHEP::HepRandom::saveFullState |
( |
std::ostream & |
os | ) |
|
|
static |
std::ostream & CLHEP::HepRandom::saveStaticRandomStates |
( |
std::ostream & |
os | ) |
|
|
static |
void CLHEP::HepRandom::setTheSeed |
( |
long |
seed, |
|
|
int |
lux = 3 |
|
) |
| |
|
static |
void CLHEP::HepRandom::setTheSeeds |
( |
const long * |
seeds, |
|
|
int |
aux = -1 |
|
) |
| |
|
static |
void CLHEP::HepRandom::showEngineStatus |
( |
| ) |
|
|
static |
const long CLHEP::HepRandom::seedTable |
|
staticprotected |
The documentation for this class was generated from the following files: