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 )
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);
bool possibleKeywordInput(IS &is, const std::string &key, T &t)
static HepRandomEngine * getTheEngine()
static void shootArray(const int size, double *vect, double mean=1.0)
std::istream & get(std::istream &is)
static double longs2double(const std::vector< unsigned long > &v)
HepRandomEngine & engine()
std::ostream & put(std::ostream &os) const
static std::vector< unsigned long > dto2longs(double d)
void fireArray(const int size, double *vect)
std::shared_ptr< HepRandomEngine > localEngine
virtual ~RandExponential()