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