CLHEP 2.4.7.1
C++ Class Library for High Energy Physics
CLHEP::RandExpZiggurat Class Reference

#include <CLHEP/Random/RandExpZiggurat.h>

Inheritance diagram for CLHEP::RandExpZiggurat:
CLHEP::HepRandom

Public Member Functions

 RandExpZiggurat (HepRandomEngine &anEngine, double mean=1.0)
 RandExpZiggurat (HepRandomEngine *anEngine, double mean=1.0)
virtual ~RandExpZiggurat ()
float fire ()
float fire (float mean)
void fireArray (const int size, float *vect)
void fireArray (const int size, double *vect)
void fireArray (const int size, float *vect, float mean)
void fireArray (const int size, double *vect, double mean)
virtual double operator() ()
float operator() (float mean)
std::ostream & put (std::ostream &os) const
std::istream & get (std::istream &is)
std::string name () const
HepRandomEngineengine ()
Public Member Functions inherited from CLHEP::HepRandom
 HepRandom ()
 HepRandom (long seed)
 HepRandom (HepRandomEngine &algorithm)
 HepRandom (HepRandomEngine *algorithm)
virtual ~HepRandom ()
double flat ()
void flatArray (const int size, double *vect)
double flat (HepRandomEngine *theNewEngine)
void flatArray (HepRandomEngine *theNewEngine, const int size, double *vect)

Static Public Member Functions

static float shoot ()
static float shoot (float mean)
static void shootArray (const int size, float *vect, float mean=1.0)
static void shootArray (const int size, double *vect, double mean=1.0)
static float shoot (HepRandomEngine *anEngine)
static float shoot (HepRandomEngine *anEngine, float mean)
static void shootArray (HepRandomEngine *anEngine, const int size, float *vect, float mean=1.0)
static void shootArray (HepRandomEngine *anEngine, const int size, double *vect, double mean=1.0)
static std::string distributionName ()
static bool ziggurat_init ()
Static Public Member Functions inherited from CLHEP::HepRandom
static void setTheSeed (long seed, int lxr=3)
static long getTheSeed ()
static void setTheSeeds (const long *seeds, int aux=-1)
static const long * getTheSeeds ()
static void getTheTableSeeds (long *seeds, int index)
static HepRandomgetTheGenerator ()
static void setTheEngine (HepRandomEngine *theNewEngine)
static HepRandomEnginegetTheEngine ()
static void saveEngineStatus (const char filename[]="Config.conf")
static void restoreEngineStatus (const char filename[]="Config.conf")
static std::ostream & saveFullState (std::ostream &os)
static std::istream & restoreFullState (std::istream &is)
static std::ostream & saveDistState (std::ostream &os)
static std::istream & restoreDistState (std::istream &is)
static std::ostream & saveStaticRandomStates (std::ostream &os)
static std::istream & restoreStaticRandomStates (std::istream &is)
static void showEngineStatus ()
static int createInstance ()
static std::string distributionName ()

Static Protected Member Functions

static unsigned long ziggurat_SHR3 (HepRandomEngine *anEngine)
static float ziggurat_UNI (HepRandomEngine *anEngine)
static float ziggurat_REXP (HepRandomEngine *anEngine)
static float ziggurat_efix (unsigned long jz, HepRandomEngine *anEngine)

Static Protected Attributes

static CLHEP_THREAD_LOCAL unsigned long kn [128]
static CLHEP_THREAD_LOCAL unsigned long ke [256]
static CLHEP_THREAD_LOCAL float wn [128]
static CLHEP_THREAD_LOCAL float fn [128]
static CLHEP_THREAD_LOCAL float we [256]
static CLHEP_THREAD_LOCAL float fe [256]
static CLHEP_THREAD_LOCAL bool ziggurat_is_init
Static Protected Attributes inherited from CLHEP::HepRandom
static const long seedTable [215][2]

Detailed Description

Author
ATLAS

Definition at line 51 of file RandExpZiggurat.h.

Constructor & Destructor Documentation

◆ RandExpZiggurat() [1/2]

CLHEP::RandExpZiggurat::RandExpZiggurat ( HepRandomEngine & anEngine,
double mean = 1.0 )
inline

Definition at line 178 of file RandExpZiggurat.h.

Referenced by ziggurat_efix().

◆ RandExpZiggurat() [2/2]

CLHEP::RandExpZiggurat::RandExpZiggurat ( HepRandomEngine * anEngine,
double mean = 1.0 )
inline

Definition at line 182 of file RandExpZiggurat.h.

◆ ~RandExpZiggurat()

virtual CLHEP::RandExpZiggurat::~RandExpZiggurat ( )
virtual

Member Function Documentation

◆ distributionName()

std::string CLHEP::RandExpZiggurat::distributionName ( )
inlinestatic

Definition at line 124 of file RandExpZiggurat.h.

◆ engine()

HepRandomEngine & CLHEP::RandExpZiggurat::engine ( )
virtual

Reimplemented from CLHEP::HepRandom.

◆ fire() [1/2]

float CLHEP::RandExpZiggurat::fire ( )
inline

Definition at line 100 of file RandExpZiggurat.h.

References fire().

Referenced by fire(), and operator()().

◆ fire() [2/2]

float CLHEP::RandExpZiggurat::fire ( float mean)
inline

Definition at line 101 of file RandExpZiggurat.h.

References ziggurat_REXP().

◆ fireArray() [1/4]

void CLHEP::RandExpZiggurat::fireArray ( const int size,
double * vect )

◆ fireArray() [2/4]

void CLHEP::RandExpZiggurat::fireArray ( const int size,
double * vect,
double mean )

◆ fireArray() [3/4]

void CLHEP::RandExpZiggurat::fireArray ( const int size,
float * vect )

◆ fireArray() [4/4]

void CLHEP::RandExpZiggurat::fireArray ( const int size,
float * vect,
float mean )

◆ get()

std::istream & CLHEP::RandExpZiggurat::get ( std::istream & is)
virtual

Reimplemented from CLHEP::HepRandom.

◆ name()

std::string CLHEP::RandExpZiggurat::name ( ) const
virtual

Reimplemented from CLHEP::HepRandom.

◆ operator()() [1/2]

virtual double CLHEP::RandExpZiggurat::operator() ( )
virtual

Reimplemented from CLHEP::HepRandom.

◆ operator()() [2/2]

float CLHEP::RandExpZiggurat::operator() ( float mean)
inline

Definition at line 114 of file RandExpZiggurat.h.

References fire().

◆ put()

std::ostream & CLHEP::RandExpZiggurat::put ( std::ostream & os) const
virtual

Reimplemented from CLHEP::HepRandom.

◆ shoot() [1/4]

float CLHEP::RandExpZiggurat::shoot ( )
inlinestatic

Definition at line 71 of file RandExpZiggurat.h.

References CLHEP::HepRandom::getTheEngine(), and shoot().

Referenced by shoot().

◆ shoot() [2/4]

float CLHEP::RandExpZiggurat::shoot ( float mean)
inlinestatic

Definition at line 72 of file RandExpZiggurat.h.

References CLHEP::HepRandom::getTheEngine(), and shoot().

Referenced by shoot().

◆ shoot() [3/4]

float CLHEP::RandExpZiggurat::shoot ( HepRandomEngine * anEngine)
inlinestatic

Definition at line 85 of file RandExpZiggurat.h.

References ziggurat_REXP().

◆ shoot() [4/4]

float CLHEP::RandExpZiggurat::shoot ( HepRandomEngine * anEngine,
float mean )
inlinestatic

Definition at line 86 of file RandExpZiggurat.h.

References shoot().

Referenced by shoot().

◆ shootArray() [1/4]

void CLHEP::RandExpZiggurat::shootArray ( const int size,
double * vect,
double mean = 1.0 )
static

◆ shootArray() [2/4]

void CLHEP::RandExpZiggurat::shootArray ( const int size,
float * vect,
float mean = 1.0 )
static

◆ shootArray() [3/4]

void CLHEP::RandExpZiggurat::shootArray ( HepRandomEngine * anEngine,
const int size,
double * vect,
double mean = 1.0 )
static

◆ shootArray() [4/4]

void CLHEP::RandExpZiggurat::shootArray ( HepRandomEngine * anEngine,
const int size,
float * vect,
float mean = 1.0 )
static

◆ ziggurat_efix()

float CLHEP::RandExpZiggurat::ziggurat_efix ( unsigned long jz,
HepRandomEngine * anEngine )
staticprotected

References RandExpZiggurat().

Referenced by ziggurat_REXP().

◆ ziggurat_init()

bool CLHEP::RandExpZiggurat::ziggurat_init ( )
static

Referenced by ziggurat_REXP().

◆ ziggurat_REXP()

float CLHEP::RandExpZiggurat::ziggurat_REXP ( HepRandomEngine * anEngine)
inlinestaticprotected

Definition at line 152 of file RandExpZiggurat.h.

References ke, we, ziggurat_efix(), ziggurat_init(), ziggurat_is_init, and ziggurat_SHR3().

Referenced by fire(), and shoot().

◆ ziggurat_SHR3()

unsigned long CLHEP::RandExpZiggurat::ziggurat_SHR3 ( HepRandomEngine * anEngine)
inlinestaticprotected

Definition at line 150 of file RandExpZiggurat.h.

Referenced by ziggurat_REXP().

◆ ziggurat_UNI()

float CLHEP::RandExpZiggurat::ziggurat_UNI ( HepRandomEngine * anEngine)
inlinestaticprotected

Definition at line 151 of file RandExpZiggurat.h.

References CLHEP::HepRandomEngine::flat().

Member Data Documentation

◆ fe

CLHEP_THREAD_LOCAL float CLHEP::RandExpZiggurat::fe[256]
staticprotected

Definition at line 146 of file RandExpZiggurat.h.

◆ fn

CLHEP_THREAD_LOCAL float CLHEP::RandExpZiggurat::fn[128]
staticprotected

Definition at line 146 of file RandExpZiggurat.h.

◆ ke

CLHEP_THREAD_LOCAL unsigned long CLHEP::RandExpZiggurat::ke[256]
staticprotected

Definition at line 145 of file RandExpZiggurat.h.

Referenced by ziggurat_REXP().

◆ kn

CLHEP_THREAD_LOCAL unsigned long CLHEP::RandExpZiggurat::kn[128]
staticprotected

Definition at line 145 of file RandExpZiggurat.h.

◆ we

CLHEP_THREAD_LOCAL float CLHEP::RandExpZiggurat::we[256]
staticprotected

Definition at line 146 of file RandExpZiggurat.h.

Referenced by ziggurat_REXP().

◆ wn

CLHEP_THREAD_LOCAL float CLHEP::RandExpZiggurat::wn[128]
staticprotected

Definition at line 146 of file RandExpZiggurat.h.

◆ ziggurat_is_init

CLHEP_THREAD_LOCAL bool CLHEP::RandExpZiggurat::ziggurat_is_init
staticprotected

Definition at line 148 of file RandExpZiggurat.h.

Referenced by ziggurat_REXP().


The documentation for this class was generated from the following file: