55 for(
double* v = vect; v != vect+size; ++v )
60 double* vect,
double mean )
62 for(
double* v = vect; v != vect+size; ++v )
63 *v =
shoot(anEngine, mean);
68 for(
double* v = vect; v != vect+size; ++v )
75 for(
double* v = vect; v != vect+size; ++v )
80 int pr=os.precision(20);
81 std::vector<unsigned long> t(2);
82 os <<
" " <<
name() <<
"\n";
85 os <<
defaultMean <<
" " << t[0] <<
" " << t[1] <<
"\n";
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";
102 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
std::shared_ptr< HepRandomEngine > localEngine
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)