23 #ifndef RandExpZiggurat_h 24 #define RandExpZiggurat_h 1 26 #include "CLHEP/Random/defs.h" 27 #include "CLHEP/Random/Random.h" 63 static void shootArray (
const int size,
float* vect,
float mean=1.0 );
64 static void shootArray (
const int size,
double* vect,
double mean=1.0 );
84 inline float fire() {
return fire(defaultMean);};
92 void fireArray (
const int size,
float* vect );
93 void fireArray (
const int size,
double* vect );
94 void fireArray (
const int size,
float* vect,
float mean );
95 void fireArray (
const int size,
double* vect,
double mean );
102 std::ostream &
put ( std::ostream & os )
const;
103 std::istream &
get ( std::istream & is );
105 std::string
name()
const;
129 static unsigned long kn[128],
ke[256];
138 unsigned long iz=jz&255;
155 #ifdef ENABLE_BACKWARDS_COMPATIBILITY 157 using namespace CLHEP;
static unsigned long ke[256]
static unsigned long ziggurat_SHR3(HepRandomEngine *anEngine)
static std::string distributionName()
static HepRandomEngine * getTheEngine()
static void shootArray(const int size, float *vect, float mean=1.0)
float operator()(float mean)
static float ziggurat_UNI(HepRandomEngine *anEngine)
virtual double operator()()
void fireArray(const int size, float *vect)
static float shoot(float mean)
RandExpZiggurat(HepRandomEngine &anEngine, double mean=1.0)
static bool ziggurat_is_init
static unsigned long kn[128]
HepRandomEngine & engine()
static bool ziggurat_init()
std::ostream & put(std::ostream &os) const
static float ziggurat_efix(unsigned long jz, HepRandomEngine *anEngine)
static float shoot(HepRandomEngine *anEngine)
static float shoot(HepRandomEngine *anEngine, float mean)
static float ziggurat_REXP(HepRandomEngine *anEngine)
virtual ~RandExpZiggurat()