34 return fire( defaultMean );
52 for(
double*
v = vect;
v != vect+size; ++
v )
57 double* vect,
double mean )
59 for(
double*
v = vect;
v != vect+size; ++
v )
60 *
v =
shoot(anEngine, mean);
65 for(
double*
v = vect;
v != vect+size; ++
v )
66 *
v =
fire( defaultMean );
72 for(
double*
v = vect;
v != vect+size; ++
v )
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";
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);
HepRandomEngine & engine()
static HepRandomEngine * getTheEngine()
static void shootArray(const int size, double *vect, double mean=1.0)
bool possibleKeywordInput(IS &is, const std::string &key, T &t)
std::istream & get(std::istream &is)
static std::vector< unsigned long > dto2longs(double d)
void fireArray(const int size, double *vect)
std::ostream & put(std::ostream &os) const
virtual ~RandExponential()
static double longs2double(const std::vector< unsigned long > &v)