#include <RandExponential.h>
◆ RandExponential() [1/2]
CLHEP::RandExponential::RandExponential |
( |
HepRandomEngine & |
anEngine, |
|
|
double |
mean = 1.0 |
|
) |
| |
|
inline |
◆ RandExponential() [2/2]
CLHEP::RandExponential::RandExponential |
( |
HepRandomEngine * |
anEngine, |
|
|
double |
mean = 1.0 |
|
) |
| |
|
inline |
◆ ~RandExponential()
CLHEP::RandExponential::~RandExponential |
( |
| ) |
|
|
virtual |
◆ createInstance()
int CLHEP::HepRandom::createInstance |
( |
| ) |
|
|
staticinherited |
◆ distributionName()
static std::string CLHEP::RandExponential::distributionName |
( |
| ) |
|
|
inlinestatic |
◆ engine()
◆ fire() [1/2]
double CLHEP::RandExponential::fire |
( |
| ) |
|
|
inline |
◆ fire() [2/2]
double CLHEP::RandExponential::fire |
( |
double |
mean | ) |
|
|
inline |
◆ fireArray() [1/2]
void CLHEP::RandExponential::fireArray |
( |
const int |
size, |
|
|
double * |
vect |
|
) |
| |
◆ fireArray() [2/2]
void CLHEP::RandExponential::fireArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
mean |
|
) |
| |
◆ flat() [1/2]
double CLHEP::HepRandom::flat |
( |
| ) |
|
|
inherited |
◆ flat() [2/2]
◆ flatArray() [1/2]
void CLHEP::HepRandom::flatArray |
( |
const int |
size, |
|
|
double * |
vect |
|
) |
| |
|
inherited |
◆ flatArray() [2/2]
void CLHEP::HepRandom::flatArray |
( |
HepRandomEngine * |
theNewEngine, |
|
|
const int |
size, |
|
|
double * |
vect |
|
) |
| |
|
inlineinherited |
◆ get()
std::istream & CLHEP::RandExponential::get |
( |
std::istream & |
is | ) |
|
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 90 of file RandExponential.cc.
90 {
91 std::string inName;
92 is >> inName;
93 if (inName !=
name()) {
94 is.clear(std::ios::badbit | is.rdstate());
95 std::cerr << "Mismatch when expecting to read state of a "
96 <<
name() <<
" distribution\n"
97 << "Name found was " << inName
98 << "\nistream is left in the badbit state\n";
99 return is;
100 }
102 std::vector<unsigned long> t(2);
104 return is;
105 }
106
107 return is;
108}
static double longs2double(const std::vector< unsigned long > &v)
bool possibleKeywordInput(IS &is, const std::string &key, T &t)
References defaultMean, CLHEP::DoubConv::longs2double(), name(), and CLHEP::possibleKeywordInput().
◆ getTheEngine()
Definition at line 268 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
Referenced by CLHEP::StaticRandomStates::restore(), CLHEP::RandFlat::restoreEngineStatus(), CLHEP::RandGauss::restoreEngineStatus(), CLHEP::RandFlat::saveEngineStatus(), CLHEP::RandGauss::saveEngineStatus(), shoot(), CLHEP::RandExpZiggurat::shoot(), CLHEP::RandFlat::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandGaussZiggurat::shoot(), CLHEP::RandChiSquare::shoot(), CLHEP::RandStudentT::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandGamma::shoot(), CLHEP::RandPoisson::shoot(), CLHEP::RandPoissonQ::shoot(), CLHEP::RandBinomial::shoot(), and CLHEP::RandFlat::shootArray().
◆ getTheGenerator()
HepRandom * CLHEP::HepRandom::getTheGenerator |
( |
| ) |
|
|
staticinherited |
◆ getTheSeed()
long CLHEP::HepRandom::getTheSeed |
( |
| ) |
|
|
staticinherited |
◆ getTheSeeds()
const long * CLHEP::HepRandom::getTheSeeds |
( |
| ) |
|
|
staticinherited |
◆ getTheTableSeeds()
void CLHEP::HepRandom::getTheTableSeeds |
( |
long * |
seeds, |
|
|
int |
index |
|
) |
| |
|
staticinherited |
◆ name()
std::string CLHEP::RandExponential::name |
( |
| ) |
const |
|
virtual |
◆ operator()() [1/2]
double CLHEP::RandExponential::operator() |
( |
| ) |
|
|
virtual |
◆ operator()() [2/2]
double CLHEP::RandExponential::operator() |
( |
double |
mean | ) |
|
◆ put()
std::ostream & CLHEP::RandExponential::put |
( |
std::ostream & |
os | ) |
const |
|
virtual |
◆ restoreDistState()
static std::istream & CLHEP::HepRandom::restoreDistState |
( |
std::istream & |
is | ) |
|
|
inlinestaticinherited |
◆ restoreEngineStatus()
void CLHEP::HepRandom::restoreEngineStatus |
( |
const char |
filename[] = "Config.conf" | ) |
|
|
staticinherited |
◆ restoreFullState()
std::istream & CLHEP::HepRandom::restoreFullState |
( |
std::istream & |
is | ) |
|
|
staticinherited |
◆ restoreStaticRandomStates()
std::istream & CLHEP::HepRandom::restoreStaticRandomStates |
( |
std::istream & |
is | ) |
|
|
staticinherited |
◆ saveDistState()
static std::ostream & CLHEP::HepRandom::saveDistState |
( |
std::ostream & |
os | ) |
|
|
inlinestaticinherited |
◆ saveEngineStatus()
void CLHEP::HepRandom::saveEngineStatus |
( |
const char |
filename[] = "Config.conf" | ) |
|
|
staticinherited |
◆ saveFullState()
std::ostream & CLHEP::HepRandom::saveFullState |
( |
std::ostream & |
os | ) |
|
|
staticinherited |
◆ saveStaticRandomStates()
std::ostream & CLHEP::HepRandom::saveStaticRandomStates |
( |
std::ostream & |
os | ) |
|
|
staticinherited |
◆ setTheEngine()
◆ setTheSeed()
void CLHEP::HepRandom::setTheSeed |
( |
long |
seed, |
|
|
int |
lxr = 3 |
|
) |
| |
|
staticinherited |
◆ setTheSeeds()
void CLHEP::HepRandom::setTheSeeds |
( |
const long * |
seeds, |
|
|
int |
aux = -1 |
|
) |
| |
|
staticinherited |
◆ shoot() [1/4]
double CLHEP::RandExponential::shoot |
( |
| ) |
|
|
static |
◆ shoot() [2/4]
double CLHEP::RandExponential::shoot |
( |
double |
mean | ) |
|
|
static |
◆ shoot() [3/4]
◆ shoot() [4/4]
static double CLHEP::RandExponential::shoot |
( |
HepRandomEngine * |
anEngine, |
|
|
double |
mean |
|
) |
| |
|
inlinestatic |
◆ shootArray() [1/2]
void CLHEP::RandExponential::shootArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
mean = 1.0 |
|
) |
| |
|
static |
◆ shootArray() [2/2]
void CLHEP::RandExponential::shootArray |
( |
HepRandomEngine * |
anEngine, |
|
|
const int |
size, |
|
|
double * |
vect, |
|
|
double |
mean = 1.0 |
|
) |
| |
|
static |
◆ showEngineStatus()
void CLHEP::HepRandom::showEngineStatus |
( |
| ) |
|
|
staticinherited |
◆ defaultMean
double CLHEP::RandExponential::defaultMean |
|
private |
◆ localEngine
◆ seedTable
const long CLHEP::HepRandom::seedTable |
|
staticprotectedinherited |
The documentation for this class was generated from the following files: