Geant4_10
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
CLHEP::RandGauss Class Reference

#include <RandGauss.h>

Inheritance diagram for CLHEP::RandGauss:
Inheritance graph
[legend]
Collaboration diagram for CLHEP::RandGauss:
Collaboration graph
[legend]

Public Member Functions

 RandGauss (HepRandomEngine &anEngine, double mean=0.0, double stdDev=1.0)
 
 RandGauss (HepRandomEngine *anEngine, double mean=0.0, double stdDev=1.0)
 
virtual ~RandGauss ()
 
double fire ()
 
double fire (double mean, double stdDev)
 
void fireArray (const int size, double *vect)
 
void fireArray (const int size, double *vect, double mean, double stdDev)
 
virtual double operator() ()
 
virtual double operator() (double mean, double stdDev)
 
std::string name () const
 
HepRandomEngineengine ()
 
std::ostream & put (std::ostream &os) const
 
std::istream & get (std::istream &is)
 
bool getF () const
 
void setF (bool val)
 
- 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 mean, double stdDev)
 
static void shootArray (const int size, double *vect, double mean=0.0, double stdDev=1.0)
 
static double shoot (HepRandomEngine *anEngine)
 
static double shoot (HepRandomEngine *anEngine, double mean, double stdDev)
 
static void shootArray (HepRandomEngine *anEngine, const int size, double *vect, double mean=0.0, double stdDev=1.0)
 
static std::string distributionName ()
 
static bool getFlag ()
 
static void setFlag (bool val)
 
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 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 ()
 

Protected Member Functions

double normal ()
 

Static Protected Member Functions

static double getVal ()
 
static void setVal (double nextVal)
 

Protected Attributes

double defaultMean
 
double defaultStdDev
 
shared_ptr< HepRandomEnginelocalEngine
 

Additional Inherited Members

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

Detailed Description

Author

Definition at line 41 of file RandGauss.h.

Constructor & Destructor Documentation

CLHEP::RandGauss::RandGauss ( HepRandomEngine anEngine,
double  mean = 0.0,
double  stdDev = 1.0 
)
inline
CLHEP::RandGauss::RandGauss ( HepRandomEngine anEngine,
double  mean = 0.0,
double  stdDev = 1.0 
)
inline
CLHEP::RandGauss::~RandGauss ( )
virtual

Definition at line 49 of file RandGauss.cc.

Member Function Documentation

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

Definition at line 99 of file RandGauss.h.

Here is the caller graph for this function:

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

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.

Definition at line 43 of file RandGauss.cc.

Here is the caller graph for this function:

double CLHEP::RandGauss::fire ( )

Here is the caller graph for this function:

double CLHEP::RandGauss::fire ( double  mean,
double  stdDev 
)
inline
void CLHEP::RandGauss::fireArray ( const int  size,
double *  vect 
)

Definition at line 156 of file RandGauss.cc.

Here is the call graph for this function:

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

Definition at line 162 of file RandGauss.cc.

Here is the call graph for this function:

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

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.

Definition at line 255 of file RandGauss.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CLHEP::RandGauss::getF ( ) const
inline

Definition at line 115 of file RandGauss.h.

static bool CLHEP::RandGauss::getFlag ( )
inlinestatic

Definition at line 111 of file RandGauss.h.

Here is the caller graph for this function:

static double CLHEP::RandGauss::getVal ( )
inlinestaticprotected

Definition at line 145 of file RandGauss.h.

Here is the caller graph for this function:

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

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.

Definition at line 42 of file RandGauss.cc.

Here is the caller graph for this function:

double CLHEP::RandGauss::normal ( )
protected

Definition at line 130 of file RandGauss.cc.

double CLHEP::RandGauss::operator() ( )
virtual

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.

Definition at line 52 of file RandGauss.cc.

Here is the call graph for this function:

double CLHEP::RandGauss::operator() ( double  mean,
double  stdDev 
)
virtual

Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.

Definition at line 56 of file RandGauss.cc.

Here is the call graph for this function:

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

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.

Definition at line 236 of file RandGauss.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 324 of file RandGauss.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 189 of file RandGauss.cc.

Here is the call graph for this function:

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

Definition at line 374 of file RandGauss.cc.

Here is the call graph for this function:

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

Definition at line 309 of file RandGauss.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 169 of file RandGauss.cc.

Here is the call graph for this function:

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

Definition at line 368 of file RandGauss.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void CLHEP::RandGauss::setF ( bool  val)
inline

Definition at line 117 of file RandGauss.h.

static void CLHEP::RandGauss::setFlag ( bool  val)
inlinestatic

Definition at line 113 of file RandGauss.h.

Here is the caller graph for this function:

static void CLHEP::RandGauss::setVal ( double  nextVal)
inlinestaticprotected

Definition at line 147 of file RandGauss.h.

Here is the caller graph for this function:

double CLHEP::RandGauss::shoot ( )
static

Definition at line 60 of file RandGauss.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

static double CLHEP::RandGauss::shoot ( double  mean,
double  stdDev 
)
inlinestatic
double CLHEP::RandGauss::shoot ( HepRandomEngine anEngine)
static

Definition at line 96 of file RandGauss.cc.

Here is the call graph for this function:

static double CLHEP::RandGauss::shoot ( HepRandomEngine anEngine,
double  mean,
double  stdDev 
)
inlinestatic
void CLHEP::RandGauss::shootArray ( const int  size,
double *  vect,
double  mean = 0.0,
double  stdDev = 1.0 
)
static

Definition at line 89 of file RandGauss.cc.

Here is the call graph for this function:

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

Definition at line 122 of file RandGauss.cc.

Here is the call graph for this function:

Member Data Documentation

double CLHEP::RandGauss::defaultMean
protected

Definition at line 151 of file RandGauss.h.

double CLHEP::RandGauss::defaultStdDev
protected

Definition at line 152 of file RandGauss.h.

shared_ptr<HepRandomEngine> CLHEP::RandGauss::localEngine
protected

Definition at line 154 of file RandGauss.h.


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