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

#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 ()
 
- 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 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 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 ()
 

Additional Inherited Members

- Static Protected Attributes inherited from CLHEP::HepRandom
static const long seedTable [215][2]
 

Detailed Description

Constructor & Destructor Documentation

◆ RandFlat() [1/6]

◆ RandFlat() [2/6]

CLHEP::RandFlat::RandFlat ( HepRandomEngine & anEngine,
double width )
inline

Definition at line 28 of file RandFlat.icc.

References CLHEP::HepRandom::HepRandom().

◆ RandFlat() [3/6]

CLHEP::RandFlat::RandFlat ( HepRandomEngine & anEngine,
double a,
double b )
inline

Definition at line 32 of file RandFlat.icc.

References CLHEP::HepRandom::HepRandom().

◆ RandFlat() [4/6]

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

Definition at line 37 of file RandFlat.icc.

References CLHEP::HepRandom::HepRandom().

◆ RandFlat() [5/6]

CLHEP::RandFlat::RandFlat ( HepRandomEngine * anEngine,
double width )
inline

Definition at line 41 of file RandFlat.icc.

References CLHEP::HepRandom::HepRandom().

◆ RandFlat() [6/6]

CLHEP::RandFlat::RandFlat ( HepRandomEngine * anEngine,
double a,
double b )
inline

Definition at line 45 of file RandFlat.icc.

References CLHEP::HepRandom::HepRandom().

◆ ~RandFlat()

virtual CLHEP::RandFlat::~RandFlat ( )
virtual

Member Function Documentation

◆ distributionName()

static std::string CLHEP::RandFlat::distributionName ( )
inlinestatic

Definition at line 138 of file RandFlat.h.

◆ engine()

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

Reimplemented from CLHEP::HepRandom.

Referenced by CLHEP::RandBit::shootBit(), and shootBit().

◆ fire() [1/3]

double CLHEP::RandFlat::fire ( )
inline

Definition at line 128 of file RandFlat.icc.

Referenced by CLHEP::RandBit::fireBit().

◆ fire() [2/3]

double CLHEP::RandFlat::fire ( double a,
double b )
inline

Definition at line 132 of file RandFlat.icc.

◆ fire() [3/3]

double CLHEP::RandFlat::fire ( double width)
inline

Definition at line 136 of file RandFlat.icc.

◆ fireArray() [1/2]

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

◆ fireArray() [2/2]

void CLHEP::RandFlat::fireArray ( const int size,
double * vect,
double lx,
double dx )

◆ fireBit()

int CLHEP::RandFlat::fireBit ( )
inline

Definition at line 154 of file RandFlat.icc.

◆ fireInt() [1/2]

long CLHEP::RandFlat::fireInt ( long a1,
long n )
inline

Definition at line 144 of file RandFlat.icc.

◆ fireInt() [2/2]

long CLHEP::RandFlat::fireInt ( long n)
inline

Definition at line 140 of file RandFlat.icc.

◆ get()

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

Reimplemented from CLHEP::HepRandom.

◆ name()

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

Reimplemented from CLHEP::HepRandom.

◆ operator()() [1/3]

double CLHEP::RandFlat::operator() ( )
virtual

Reimplemented from CLHEP::HepRandom.

◆ operator()() [2/3]

double CLHEP::RandFlat::operator() ( double a,
double b )

◆ operator()() [3/3]

double CLHEP::RandFlat::operator() ( double width)

◆ put()

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

Reimplemented from CLHEP::HepRandom.

◆ restoreDistState()

static std::istream & CLHEP::RandFlat::restoreDistState ( std::istream & is)
static

◆ restoreEngineStatus()

static void CLHEP::RandFlat::restoreEngineStatus ( const char filename[] = "Config.conf")
static

◆ restoreFullState()

static std::istream & CLHEP::RandFlat::restoreFullState ( std::istream & is)
static

◆ saveDistState()

static std::ostream & CLHEP::RandFlat::saveDistState ( std::ostream & os)
static

◆ saveEngineStatus()

static void CLHEP::RandFlat::saveEngineStatus ( const char filename[] = "Config.conf")
static

◆ saveFullState()

static std::ostream & CLHEP::RandFlat::saveFullState ( std::ostream & os)
static

◆ shoot() [1/6]

static double CLHEP::RandFlat::shoot ( )
static

◆ shoot() [2/6]

double CLHEP::RandFlat::shoot ( double a,
double b )
inlinestatic

Definition at line 50 of file RandFlat.icc.

References shoot().

◆ shoot() [3/6]

double CLHEP::RandFlat::shoot ( double width)
inlinestatic

Definition at line 54 of file RandFlat.icc.

References shoot().

◆ shoot() [4/6]

double CLHEP::RandFlat::shoot ( HepRandomEngine * anEngine)
inlinestatic

Definition at line 82 of file RandFlat.icc.

References CLHEP::HepRandomEngine::flat().

◆ shoot() [5/6]

double CLHEP::RandFlat::shoot ( HepRandomEngine * anEngine,
double a,
double b )
inlinestatic

Definition at line 87 of file RandFlat.icc.

References CLHEP::HepRandomEngine::flat().

◆ shoot() [6/6]

double CLHEP::RandFlat::shoot ( HepRandomEngine * anEngine,
double width )
inlinestatic

Definition at line 92 of file RandFlat.icc.

References CLHEP::HepRandomEngine::flat().

◆ shootArray() [1/4]

static void CLHEP::RandFlat::shootArray ( const int size,
double * vect )
static

◆ shootArray() [2/4]

static void CLHEP::RandFlat::shootArray ( const int size,
double * vect,
double lx,
double dx )
static

◆ shootArray() [3/4]

void CLHEP::RandFlat::shootArray ( HepRandomEngine * anEngine,
const int size,
double * vect )
inlinestatic

Definition at line 107 of file RandFlat.icc.

References CLHEP::HepRandomEngine::flatArray().

◆ shootArray() [4/4]

static void CLHEP::RandFlat::shootArray ( HepRandomEngine * anEngine,
const int size,
double * vect,
double lx,
double dx )
static

◆ shootBit() [1/2]

int CLHEP::RandFlat::shootBit ( )
inlinestatic

Definition at line 72 of file RandFlat.icc.

◆ shootBit() [2/2]

int CLHEP::RandFlat::shootBit ( HepRandomEngine * engine)
inlinestatic

Definition at line 118 of file RandFlat.icc.

References engine().

◆ shootInt() [1/4]

long CLHEP::RandFlat::shootInt ( HepRandomEngine * anEngine,
long a1,
long n )
inlinestatic

Definition at line 102 of file RandFlat.icc.

References CLHEP::HepRandomEngine::flat().

◆ shootInt() [2/4]

long CLHEP::RandFlat::shootInt ( HepRandomEngine * anEngine,
long n )
inlinestatic

Definition at line 97 of file RandFlat.icc.

References CLHEP::HepRandomEngine::flat().

◆ shootInt() [3/4]

long CLHEP::RandFlat::shootInt ( long a1,
long n )
inlinestatic

Definition at line 62 of file RandFlat.icc.

References shoot().

◆ shootInt() [4/4]

long CLHEP::RandFlat::shootInt ( long n)
inlinestatic

Definition at line 58 of file RandFlat.icc.

References shoot().


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