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(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 float shoot(HepRandomEngine *anEngine, float mean)
static CLHEP_THREAD_LOCAL float we[256]
static float ziggurat_REXP(HepRandomEngine *anEngine)
static unsigned long ziggurat_SHR3(HepRandomEngine *anEngine)
float operator()(float mean)
virtual double operator()()
virtual ~RandExpZiggurat()
static float shoot(float mean)
static float ziggurat_UNI(HepRandomEngine *anEngine)
static HepRandomEngine * getTheEngine()
static CLHEP_THREAD_LOCAL unsigned long ke[256]
static float ziggurat_efix(unsigned long jz, HepRandomEngine *anEngine)
#define CLHEP_THREAD_LOCAL
static void shootArray(const int size, float *vect, float mean=1.0)
static CLHEP_THREAD_LOCAL unsigned long kn[128]
static CLHEP_THREAD_LOCAL float fn[128]
RandExpZiggurat(HepRandomEngine &anEngine, double mean=1.0)
static CLHEP_THREAD_LOCAL bool ziggurat_is_init
void fireArray(const int size, float *vect)
std::ostream & put(std::ostream &os) const
static float shoot(HepRandomEngine *anEngine)
HepRandomEngine & engine()
static bool ziggurat_init()
static CLHEP_THREAD_LOCAL float fe[256]
static std::string distributionName()
static CLHEP_THREAD_LOCAL float wn[128]