#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 66 of file RandExponential.cc.
67{
68 for( double* v = vect; v != vect+size; ++v )
69 *v =
fire( defaultMean );
70}
◆ fireArray() [2/2]
void CLHEP::RandExponential::fireArray |
( |
const int | size, |
|
|
double * | vect, |
|
|
double | mean ) |
Definition at line 72 of file RandExponential.cc.
74{
75 for( double* v = vect; v != vect+size; ++v )
77}
◆ 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)
◆ 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 79 of file RandExponential.cc.
79 {
80 long pr=os.precision(20);
81 std::vector<unsigned long> t(2);
82 os <<
" " <<
name() <<
"\n";
83 os << "Uvec" << "\n";
85 os << defaultMean << " " << t[0] << " " << t[1] << "\n";
86 os.precision(pr);
87 return os;
88}
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 52 of file RandExponential.cc.
54{
55 for( double* v = vect; v != vect+size; ++v )
57}
◆ shootArray() [2/2]
void CLHEP::RandExponential::shootArray |
( |
HepRandomEngine * | anEngine, |
|
|
const int | size, |
|
|
double * | vect, |
|
|
double | mean = 1.0 ) |
|
static |
Definition at line 59 of file RandExponential.cc.
61{
62 for( double* v = vect; v != vect+size; ++v )
63 *v =
shoot(anEngine, mean);
64}
The documentation for this class was generated from the following files: