#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 |
◆ 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 |
|
) |
| |
Definition at line 63 of file RandExponential.cc.
64{
65 for( double* v = vect; v != vect+size; ++v )
66 *v =
fire( defaultMean );
67}
◆ fireArray() [2/2]
void CLHEP::RandExponential::fireArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
mean |
|
) |
| |
Definition at line 69 of file RandExponential.cc.
71{
72 for( double* v = vect; v != vect+size; ++v )
74}
◆ get()
std::istream & CLHEP::RandExponential::get |
( |
std::istream & |
is | ) |
|
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 87 of file RandExponential.cc.
87 {
88 std::string inName;
89 is >> inName;
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";
96 return is;
97 }
99 std::vector<unsigned long> t(2);
101 return is;
102 }
103
104 return is;
105}
static double longs2double(const std::vector< unsigned long > &v)
bool possibleKeywordInput(IS &is, const std::string &key, T &t)
◆ 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 |
Reimplemented from CLHEP::HepRandom.
Definition at line 76 of file RandExponential.cc.
76 {
77 int pr=os.precision(20);
78 std::vector<unsigned long> t(2);
79 os <<
" " <<
name() <<
"\n";
80 os << "Uvec" << "\n";
82 os << defaultMean << " " << t[0] << " " << t[1] << "\n";
83 os.precision(pr);
84 return os;
85}
static std::vector< unsigned long > dto2longs(double d)
◆ 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 |
Definition at line 49 of file RandExponential.cc.
51{
52 for( double* v = vect; v != vect+size; ++v )
54}
◆ shootArray() [2/2]
void CLHEP::RandExponential::shootArray |
( |
HepRandomEngine * |
anEngine, |
|
|
const int |
size, |
|
|
double * |
vect, |
|
|
double |
mean = 1.0 |
|
) |
| |
|
static |
Definition at line 56 of file RandExponential.cc.
58{
59 for( double* v = vect; v != vect+size; ++v )
60 *v =
shoot(anEngine, mean);
61}
The documentation for this class was generated from the following files: