Geant4  10.07
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RandExpZiggurat Class Reference
Inheritance diagram for RandExpZiggurat:
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 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 HepRandom
static void setTheSeed (long seed, int lux=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 HepRandom
static const long seedTable [215][2]
 

Private Member Functions

 RandExpZiggurat (const RandExpZiggurat &d)
 

Private Attributes

std::shared_ptr< HepRandomEnginelocalEngine
 
double defaultMean
 

Detailed Description

Author
ATLAS

Constructor & Destructor Documentation

RandExpZiggurat ( HepRandomEngine anEngine,
double  mean = 1.0 
)
RandExpZiggurat ( HepRandomEngine anEngine,
double  mean = 1.0 
)
virtual ~RandExpZiggurat ( )
virtual

Member Function Documentation

static float shoot ( )
static
static float shoot ( float  mean)
static
static void shootArray ( const int  size,
float *  vect,
float  mean = 1.0 
)
static
static void shootArray ( const int  size,
double *  vect,
double  mean = 1.0 
)
static
static float shoot ( HepRandomEngine anEngine)
static
static float shoot ( HepRandomEngine anEngine,
float  mean 
)
static
static void shootArray ( HepRandomEngine anEngine,
const int  size,
float *  vect,
float  mean = 1.0 
)
static
static void shootArray ( HepRandomEngine anEngine,
const int  size,
double *  vect,
double  mean = 1.0 
)
static
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() ( )
virtual

Reimplemented from HepRandom.

float operator() ( float  mean)
std::ostream& put ( std::ostream &  os) const
virtual

Reimplemented from HepRandom.

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

Reimplemented from HepRandom.

std::string name ( ) const
virtual

Reimplemented from HepRandom.

HepRandomEngine& engine ( )
virtual

Reimplemented from HepRandom.

static std::string distributionName ( )
static
static bool ziggurat_init ( )
static
static unsigned long ziggurat_SHR3 ( HepRandomEngine anEngine)
staticprotected
static float ziggurat_UNI ( HepRandomEngine anEngine)
staticprotected
static float ziggurat_efix ( unsigned long  jz,
HepRandomEngine anEngine 
)
staticprotected

Member Data Documentation

CLHEP_THREAD_LOCAL unsigned long kn[128]
staticprotected
CLHEP_THREAD_LOCAL unsigned long ke[256]
staticprotected
CLHEP_THREAD_LOCAL float wn[128]
staticprotected
CLHEP_THREAD_LOCAL float fn[128]
staticprotected
CLHEP_THREAD_LOCAL float we[256]
staticprotected
CLHEP_THREAD_LOCAL float fe[256]
staticprotected
CLHEP_THREAD_LOCAL bool ziggurat_is_init
staticprotected
std::shared_ptr<HepRandomEngine> localEngine
private

Referenced by RandExpZiggurat::fire().

double defaultMean
private

Referenced by RandExpZiggurat::fire().