#include <RandExponential.h>
CLHEP::RandExponential::RandExponential |
( |
HepRandomEngine & |
anEngine, |
|
|
double |
mean = 1.0 |
|
) |
| |
|
inline |
CLHEP::RandExponential::RandExponential |
( |
HepRandomEngine * |
anEngine, |
|
|
double |
mean = 1.0 |
|
) |
| |
|
inline |
CLHEP::RandExponential::~RandExponential |
( |
| ) |
|
|
virtual |
static std::string CLHEP::RandExponential::distributionName |
( |
| ) |
|
|
inlinestatic |
double CLHEP::RandExponential::fire |
( |
| ) |
|
|
inline |
double CLHEP::RandExponential::fire |
( |
double |
mean | ) |
|
|
inline |
void CLHEP::RandExponential::fireArray |
( |
const int |
size, |
|
|
double * |
vect |
|
) |
| |
Definition at line 63 of file RandExponential.cc.
65 for(
double* v = vect; v != vect+size; ++v )
66 *v =
fire( defaultMean );
void CLHEP::RandExponential::fireArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
mean |
|
) |
| |
std::istream & CLHEP::RandExponential::get |
( |
std::istream & |
is | ) |
|
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 87 of file RandExponential.cc.
90 if (inName !=
name()) {
91 is.clear(std::ios::badbit | is.rdstate());
92 std::cerr <<
"Mismatch when expecting to read state of a "
93 <<
name() <<
" distribution\n"
94 <<
"Name found was " << inName
95 <<
"\nistream is left in the badbit state\n";
99 std::vector<unsigned long> t(2);
bool possibleKeywordInput(IS &is, const std::string &key, T &t)
static double longs2double(const std::vector< unsigned long > &v)
std::string CLHEP::RandExponential::name |
( |
| ) |
const |
|
virtual |
double CLHEP::RandExponential::operator() |
( |
| ) |
|
|
virtual |
double CLHEP::RandExponential::operator() |
( |
double |
mean | ) |
|
std::ostream & CLHEP::RandExponential::put |
( |
std::ostream & |
os | ) |
const |
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 76 of file RandExponential.cc.
77 int pr=os.precision(20);
78 std::vector<unsigned long> t(2);
79 os <<
" " <<
name() <<
"\n";
82 os << defaultMean <<
" " << t[0] <<
" " << t[1] <<
"\n";
static std::vector< unsigned long > dto2longs(double d)
double CLHEP::RandExponential::shoot |
( |
| ) |
|
|
static |
double CLHEP::RandExponential::shoot |
( |
double |
mean | ) |
|
|
static |
static double CLHEP::RandExponential::shoot |
( |
HepRandomEngine * |
anEngine, |
|
|
double |
mean |
|
) |
| |
|
inlinestatic |
void CLHEP::RandExponential::shootArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
mean = 1.0 |
|
) |
| |
|
static |
void CLHEP::RandExponential::shootArray |
( |
HepRandomEngine * |
anEngine, |
|
|
const int |
size, |
|
|
double * |
vect, |
|
|
double |
mean = 1.0 |
|
) |
| |
|
static |
Definition at line 56 of file RandExponential.cc.
59 for(
double* v = vect; v != vect+size; ++v )
60 *v =
shoot(anEngine, mean);
The documentation for this class was generated from the following files: