#include <RandExponential.h>
◆ RandExponential() [1/2]
◆ RandExponential() [2/2]
◆ ~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]
◆ fireArray() [1/2]
void CLHEP::RandExponential::fireArray |
( |
const int |
size, |
|
|
double * |
vect |
|
) |
| |
Definition at line 68 of file RandExponential.cc.
69{
70 for( double* v = vect; v != vect+size; ++v )
71 *v =
fire( defaultMean );
72}
◆ fireArray() [2/2]
void CLHEP::RandExponential::fireArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
mean |
|
) |
| |
Definition at line 74 of file RandExponential.cc.
76{
77 for( double* v = vect; v != vect+size; ++v )
79}
◆ get()
std::istream & CLHEP::RandExponential::get |
( |
std::istream & |
is | ) |
|
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 99 of file RandExponential.cc.
99 {
100 std::string inName;
101 is >> inName;
102 if (inName !=
name()) {
103 is.clear(std::ios::badbit | is.rdstate());
104 std::cerr << "Mismatch when expecting to read state of a "
105 <<
name() <<
" distribution\n"
106 << "Name found was " << inName
107 << "\nistream is left in the badbit state\n";
108 return is;
109 }
111 std::vector<unsigned long> t(2);
113 return is;
114 }
115
116 return is;
117}
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]
◆ put()
std::ostream & CLHEP::RandExponential::put |
( |
std::ostream & |
os | ) |
const |
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 81 of file RandExponential.cc.
81 {
82 long pr=os.precision(20);
83 std::vector<unsigned long> t(2);
84 os <<
" " <<
name() <<
"\n";
85 os << "Uvec" << "\n";
87 os << defaultMean << " " << t[0] << " " << t[1] << "\n";
88 os.precision(pr);
89 return os;
90#ifdef REMOVED
91 long pr=os.precision(20);
92 os <<
" " <<
name() <<
"\n";
93 os << defaultMean << "\n";
94 os.precision(pr);
95 return os;
96#endif
97}
static std::vector< unsigned long > dto2longs(double d)
◆ shoot() [1/4]
double CLHEP::RandExponential::shoot |
( |
| ) |
|
|
static |
◆ shoot() [2/4]
◆ shoot() [3/4]
◆ shoot() [4/4]
◆ shootArray() [1/2]
void CLHEP::RandExponential::shootArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
mean = 1.0 |
|
) |
| |
|
static |
Definition at line 54 of file RandExponential.cc.
56{
57 for( double* v = vect; v != vect+size; ++v )
59}
◆ shootArray() [2/2]
Definition at line 61 of file RandExponential.cc.
63{
64 for( double* v = vect; v != vect+size; ++v )
65 *v =
shoot(anEngine, mean);
66}
The documentation for this class was generated from the following files: