23#ifndef RandExpZiggurat_h
24#define RandExpZiggurat_h 1
64 static void shootArray (
const int size,
float* vect,
float mean=1.0 );
65 static void shootArray (
const int size,
double* vect,
double mean=1.0 );
85 inline float fire() {
return fire(
float(defaultMean));}
93 void fireArray (
const int size,
float* vect );
94 void fireArray (
const int size,
double* vect );
95 void fireArray (
const int size,
float* vect,
float mean );
96 void fireArray (
const int size,
double* vect,
double mean );
103 std::ostream &
put ( std::ostream & os )
const;
104 std::istream &
get ( std::istream & is );
106 std::string
name()
const;
140 unsigned long iz=jz&255;
150 std::shared_ptr<HepRandomEngine> localEngine;
static HepRandomEngine * getTheEngine()
static CLHEP_THREAD_LOCAL float fn[128]
static float shoot(float mean)
static float ziggurat_REXP(HepRandomEngine *anEngine)
static bool ziggurat_init()
static unsigned long ziggurat_SHR3(HepRandomEngine *anEngine)
static CLHEP_THREAD_LOCAL unsigned long ke[256]
static void shootArray(const int size, float *vect, float mean=1.0)
static CLHEP_THREAD_LOCAL float fe[256]
HepRandomEngine & engine()
static float ziggurat_efix(unsigned long jz, HepRandomEngine *anEngine)
virtual ~RandExpZiggurat()
float operator()(float mean)
std::istream & get(std::istream &is)
static float shoot(HepRandomEngine *anEngine)
static CLHEP_THREAD_LOCAL float wn[128]
RandExpZiggurat(HepRandomEngine &anEngine, double mean=1.0)
virtual double operator()()
static float shoot(HepRandomEngine *anEngine, float mean)
static CLHEP_THREAD_LOCAL float we[256]
static CLHEP_THREAD_LOCAL unsigned long kn[128]
static std::string distributionName()
void fireArray(const int size, float *vect)
static float ziggurat_UNI(HepRandomEngine *anEngine)
static CLHEP_THREAD_LOCAL bool ziggurat_is_init
std::ostream & put(std::ostream &os) const
#define CLHEP_THREAD_LOCAL