22#include "CLHEP/Random/defs.h"
23#include "CLHEP/Random/RandExponential.h"
24#include "CLHEP/Random/DoubConv.h"
39 return fire( defaultMean );
57 for(
double* v = vect; v != vect+size; ++v )
62 double* vect,
double mean )
64 for(
double* v = vect; v != vect+size; ++v )
65 *v =
shoot(anEngine, mean);
70 for(
double* v = vect; v != vect+size; ++v )
71 *v =
fire( defaultMean );
77 for(
double* v = vect; v != vect+size; ++v )
82 long pr=os.precision(20);
83 std::vector<unsigned long> t(2);
84 os <<
" " <<
name() <<
"\n";
87 os << defaultMean <<
" " << t[0] <<
" " << t[1] <<
"\n";
91 long pr=os.precision(20);
92 os <<
" " <<
name() <<
"\n";
93 os << defaultMean <<
"\n";
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";
111 std::vector<unsigned long> t(2);
static double longs2double(const std::vector< unsigned long > &v)
static std::vector< unsigned long > dto2longs(double d)
static HepRandomEngine * getTheEngine()
std::ostream & put(std::ostream &os) const
static void shootArray(const int size, double *vect, double mean=1.0)
std::istream & get(std::istream &is)
void fireArray(const int size, double *vect)
virtual ~RandExponential()
HepRandomEngine & engine()
bool possibleKeywordInput(IS &is, const std::string &key, T &t)