Public Member Functions | Static Public Member Functions | Static Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
CLHEP::RandFlat Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/geant4/v4_10_4_p02ba/source/geant4.10.04.p02/source/externals/clhep/include/CLHEP/Random/RandFlat.h"

Inheritance diagram for CLHEP::RandFlat:
CLHEP::HepRandom CLHEP::RandBit

Public Member Functions

 RandFlat (HepRandomEngine &anEngine)
 
 RandFlat (HepRandomEngine &anEngine, double width)
 
 RandFlat (HepRandomEngine &anEngine, double a, double b)
 
 RandFlat (HepRandomEngine *anEngine)
 
 RandFlat (HepRandomEngine *anEngine, double width)
 
 RandFlat (HepRandomEngine *anEngine, double a, double b)
 
virtual ~RandFlat ()
 
double fire ()
 
double fire (double width)
 
double fire (double a, double b)
 
long fireInt (long n)
 
long fireInt (long a1, long n)
 
int fireBit ()
 
void fireArray (const int size, double *vect)
 
void fireArray (const int size, double *vect, double lx, double dx)
 
double operator() ()
 
double operator() (double width)
 
double operator() (double a, double b)
 
std::ostream & put (std::ostream &os) const
 
std::istream & get (std::istream &is)
 
std::string name () const
 
HepRandomEngineengine ()
 
double flat ()
 
double flat (HepRandomEngine *theNewEngine)
 
void flatArray (const int size, double *vect)
 
void flatArray (HepRandomEngine *theNewEngine, const int size, double *vect)
 

Static Public Member Functions

static double shoot ()
 
static double shoot (double width)
 
static double shoot (double a, double b)
 
static long shootInt (long n)
 
static long shootInt (long a1, long n)
 
static int shootBit ()
 
static void shootArray (const int size, double *vect)
 
static void shootArray (const int size, double *vect, double lx, double dx)
 
static double shoot (HepRandomEngine *anEngine)
 
static double shoot (HepRandomEngine *anEngine, double width)
 
static double shoot (HepRandomEngine *anEngine, double a, double b)
 
static long shootInt (HepRandomEngine *anEngine, long n)
 
static long shootInt (HepRandomEngine *anEngine, long a1, long n)
 
static int shootBit (HepRandomEngine *)
 
static void shootArray (HepRandomEngine *anEngine, const int size, double *vect)
 
static void shootArray (HepRandomEngine *anEngine, const int size, double *vect, double lx, double dx)
 
static std::string distributionName ()
 
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 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 std::ostream & saveStaticRandomStates (std::ostream &os)
 
static std::istream & restoreStaticRandomStates (std::istream &is)
 
static void showEngineStatus ()
 
static int createInstance ()
 

Static Protected Attributes

static const long seedTable [215][2]
 

Private Member Functions

void fireBits ()
 

Static Private Member Functions

static void shootBits ()
 
static void shootBits (HepRandomEngine *)
 

Private Attributes

unsigned long randomInt
 
unsigned long firstUnusedBit
 
std::shared_ptr< HepRandomEnginelocalEngine
 
double defaultWidth
 
double defaultA
 
double defaultB
 

Static Private Attributes

static const unsigned long MSB
 
static const int MSBBits
 
static CLHEP_THREAD_LOCAL unsigned long staticRandomInt
 
static CLHEP_THREAD_LOCAL unsigned long staticFirstUnusedBit
 

Detailed Description

Author
Gabri.nosp@m.ele..nosp@m.Cosmo.nosp@m.@cer.nosp@m.n.ch

Definition at line 42 of file RandFlat.h.

Constructor & Destructor Documentation

CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine)
inline

Referenced by distributionName().

CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine,
double  width 
)
inline
CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine,
double  a,
double  b 
)
inline
CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine)
inline
CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine,
double  width 
)
inline
CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine,
double  a,
double  b 
)
inline
virtual CLHEP::RandFlat::~RandFlat ( )
virtual

Member Function Documentation

static int CLHEP::HepRandom::createInstance ( )
staticinherited
static std::string CLHEP::RandFlat::distributionName ( )
inlinestatic
HepRandomEngine& CLHEP::RandFlat::engine ( )
virtual

Reimplemented from CLHEP::HepRandom.

double CLHEP::RandFlat::fire ( )
inline
double CLHEP::RandFlat::fire ( double  width)
inline
double CLHEP::RandFlat::fire ( double  a,
double  b 
)
inline
void CLHEP::RandFlat::fireArray ( const int  size,
double *  vect 
)
void CLHEP::RandFlat::fireArray ( const int  size,
double *  vect,
double  lx,
double  dx 
)
int CLHEP::RandFlat::fireBit ( )
inline
void CLHEP::RandFlat::fireBits ( )
inlineprivate

Referenced by distributionName().

long CLHEP::RandFlat::fireInt ( long  n)
inline
long CLHEP::RandFlat::fireInt ( long  a1,
long  n 
)
inline
double CLHEP::HepRandom::flat ( )
inherited
double CLHEP::HepRandom::flat ( HepRandomEngine theNewEngine)
inlineinherited
void CLHEP::HepRandom::flatArray ( const int  size,
double *  vect 
)
inherited
void CLHEP::HepRandom::flatArray ( HepRandomEngine theNewEngine,
const int  size,
double *  vect 
)
inlineinherited
std::istream& CLHEP::RandFlat::get ( std::istream &  is)
virtual

Reimplemented from CLHEP::HepRandom.

static HepRandomEngine* CLHEP::HepRandom::getTheEngine ( )
staticinherited
static HepRandom* CLHEP::HepRandom::getTheGenerator ( )
staticinherited
static long CLHEP::HepRandom::getTheSeed ( )
staticinherited
static const long* CLHEP::HepRandom::getTheSeeds ( )
staticinherited
static void CLHEP::HepRandom::getTheTableSeeds ( long *  seeds,
int  index 
)
staticinherited
std::string CLHEP::RandFlat::name ( ) const
virtual
double CLHEP::RandFlat::operator() ( )
virtual

Reimplemented from CLHEP::HepRandom.

double CLHEP::RandFlat::operator() ( double  width)
double CLHEP::RandFlat::operator() ( double  a,
double  b 
)
std::ostream& CLHEP::RandFlat::put ( std::ostream &  os) const
virtual

Reimplemented from CLHEP::HepRandom.

static std::istream& CLHEP::RandFlat::restoreDistState ( std::istream &  is)
static
static void CLHEP::RandFlat::restoreEngineStatus ( const char  filename[] = "Config.conf")
static

Referenced by distributionName().

static std::istream& CLHEP::RandFlat::restoreFullState ( std::istream &  is)
static
static std::istream& CLHEP::HepRandom::restoreStaticRandomStates ( std::istream &  is)
staticinherited
static std::ostream& CLHEP::RandFlat::saveDistState ( std::ostream &  os)
static
static void CLHEP::RandFlat::saveEngineStatus ( const char  filename[] = "Config.conf")
static

Referenced by distributionName().

static std::ostream& CLHEP::RandFlat::saveFullState ( std::ostream &  os)
static
static std::ostream& CLHEP::HepRandom::saveStaticRandomStates ( std::ostream &  os)
staticinherited
static void CLHEP::HepRandom::setTheEngine ( HepRandomEngine theNewEngine)
staticinherited
static void CLHEP::HepRandom::setTheSeed ( long  seed,
int  lux = 3 
)
staticinherited
static void CLHEP::HepRandom::setTheSeeds ( const long *  seeds,
int  aux = -1 
)
staticinherited
static double CLHEP::RandFlat::shoot ( )
static
static double CLHEP::RandFlat::shoot ( double  width)
inlinestatic
static double CLHEP::RandFlat::shoot ( double  a,
double  b 
)
inlinestatic
static double CLHEP::RandFlat::shoot ( HepRandomEngine anEngine)
inlinestatic
static double CLHEP::RandFlat::shoot ( HepRandomEngine anEngine,
double  width 
)
inlinestatic
static double CLHEP::RandFlat::shoot ( HepRandomEngine anEngine,
double  a,
double  b 
)
inlinestatic
static void CLHEP::RandFlat::shootArray ( const int  size,
double *  vect 
)
static
static void CLHEP::RandFlat::shootArray ( const int  size,
double *  vect,
double  lx,
double  dx 
)
static
static void CLHEP::RandFlat::shootArray ( HepRandomEngine anEngine,
const int  size,
double *  vect 
)
inlinestatic
static void CLHEP::RandFlat::shootArray ( HepRandomEngine anEngine,
const int  size,
double *  vect,
double  lx,
double  dx 
)
static
static int CLHEP::RandFlat::shootBit ( )
inlinestatic
static int CLHEP::RandFlat::shootBit ( HepRandomEngine )
inlinestatic
static void CLHEP::RandFlat::shootBits ( )
inlinestaticprivate

Referenced by distributionName().

static void CLHEP::RandFlat::shootBits ( HepRandomEngine )
inlinestaticprivate
static long CLHEP::RandFlat::shootInt ( long  n)
inlinestatic
static long CLHEP::RandFlat::shootInt ( long  a1,
long  n 
)
inlinestatic
static long CLHEP::RandFlat::shootInt ( HepRandomEngine anEngine,
long  n 
)
inlinestatic
static long CLHEP::RandFlat::shootInt ( HepRandomEngine anEngine,
long  a1,
long  n 
)
inlinestatic
static void CLHEP::HepRandom::showEngineStatus ( )
staticinherited

Member Data Documentation

double CLHEP::RandFlat::defaultA
private

Definition at line 202 of file RandFlat.h.

double CLHEP::RandFlat::defaultB
private

Definition at line 203 of file RandFlat.h.

double CLHEP::RandFlat::defaultWidth
private

Definition at line 201 of file RandFlat.h.

unsigned long CLHEP::RandFlat::firstUnusedBit
private

Definition at line 196 of file RandFlat.h.

std::shared_ptr<HepRandomEngine> CLHEP::RandFlat::localEngine
private

Definition at line 200 of file RandFlat.h.

const unsigned long CLHEP::RandFlat::MSB
staticprivate

Definition at line 191 of file RandFlat.h.

const int CLHEP::RandFlat::MSBBits
staticprivate

Definition at line 192 of file RandFlat.h.

unsigned long CLHEP::RandFlat::randomInt
private

Definition at line 195 of file RandFlat.h.

const long CLHEP::HepRandom::seedTable
staticprotectedinherited

Definition at line 157 of file Random.h.

CLHEP_THREAD_LOCAL unsigned long CLHEP::RandFlat::staticFirstUnusedBit
staticprivate

Definition at line 198 of file RandFlat.h.

CLHEP_THREAD_LOCAL unsigned long CLHEP::RandFlat::staticRandomInt
staticprivate

Definition at line 197 of file RandFlat.h.


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