16#include "CLHEP/Random/defs.h"
17#include "CLHEP/Random/RandGaussT.h"
38 double mean,
double stdDev )
40 for(
double* v = vect; v != vect + size; ++v )
41 *v =
shoot(mean,stdDev);
45 const int size,
double* vect,
46 double mean,
double stdDev )
48 for(
double* v = vect; v != vect + size; ++v )
49 *v =
shoot(anEngine,mean,stdDev);
54 for(
double* v = vect; v != vect + size; ++v )
59 double mean,
double stdDev )
61 for(
double* v = vect; v != vect + size; ++v )
62 *v =
fire( mean, stdDev );
66 long pr=os.precision(20);
67 os <<
" " <<
name() <<
"\n";
76 if (inName !=
name()) {
77 is.clear(std::ios::badbit | is.rdstate());
78 std::cerr <<
"Mismatch when expecting to read state of a "
79 <<
name() <<
" distribution\n"
80 <<
"Name found was " << inName
81 <<
"\nistream is left in the badbit state\n";
static double flatToGaussian(double r)
HepRandomEngine & engine()
static void shootArray(const int size, double *vect, double mean=0.0, double stdDev=1.0)
std::ostream & put(std::ostream &os) const
void fireArray(const int size, double *vect)
std::istream & get(std::istream &is)
virtual double operator()()
std::istream & get(std::istream &is)
std::ostream & put(std::ostream &os) const
HepRandomEngine & engine()
std::shared_ptr< HepRandomEngine > localEngine