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

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

Inheritance diagram for CLHEP::RandGauss:
CLHEP::HepRandom CLHEP::RandGaussQ CLHEP::RandGaussZiggurat

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

Protected Member Functions

double normal ()
 

Static Protected Member Functions

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

Protected Attributes

double defaultMean
 
double defaultStdDev
 
std::shared_ptr< HepRandomEnginelocalEngine
 

Static Protected Attributes

static const long seedTable [215][2]
 

Private Attributes

bool set
 
double nextGauss
 

Static Private Attributes

static CLHEP_THREAD_LOCAL bool set_st
 
static CLHEP_THREAD_LOCAL double nextGauss_st
 

Detailed Description

Author

Definition at line 42 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
virtual CLHEP::RandGauss::~RandGauss ( )
virtual

Member Function Documentation

static int CLHEP::HepRandom::createInstance ( )
staticinherited
static std::string CLHEP::RandGauss::distributionName ( )
inlinestatic

Definition at line 100 of file RandGauss.h.

References getFlag(), put(), setFlag(), and febshutoff_auto::val.

100 {return "RandGauss";}
HepRandomEngine& CLHEP::RandGauss::engine ( )
virtual

Reimplemented from CLHEP::HepRandom.

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

double CLHEP::RandGauss::fire ( )
double CLHEP::RandGauss::fire ( double  mean,
double  stdDev 
)
inline
void CLHEP::RandGauss::fireArray ( const int  size,
double *  vect 
)
void CLHEP::RandGauss::fireArray ( const int  size,
double *  vect,
double  mean,
double  stdDev 
)
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::RandGauss::get ( std::istream &  is)
virtual

Reimplemented from CLHEP::HepRandom.

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

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

Definition at line 116 of file RandGauss.h.

116 {return set;}
static bool CLHEP::RandGauss::getFlag ( )
static

Referenced by distributionName().

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
static double CLHEP::RandGauss::getVal ( )
staticprotected

Referenced by setF().

std::string CLHEP::RandGauss::name ( ) const
virtual
double CLHEP::RandGauss::normal ( )
protected

Referenced by setF().

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

Reimplemented from CLHEP::HepRandom.

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

virtual double CLHEP::RandGauss::operator() ( double  mean,
double  stdDev 
)
virtual
std::ostream& CLHEP::RandGauss::put ( std::ostream &  os) const
virtual

Reimplemented from CLHEP::HepRandom.

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

Referenced by distributionName().

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

Referenced by setF().

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

Referenced by setF().

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

Referenced by setF().

static std::istream& CLHEP::HepRandom::restoreStaticRandomStates ( std::istream &  is)
staticinherited
static std::ostream& CLHEP::RandGauss::saveDistState ( std::ostream &  os)
static

Referenced by setF().

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

Referenced by setF().

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

Referenced by setF().

static std::ostream& CLHEP::HepRandom::saveStaticRandomStates ( std::ostream &  os)
staticinherited
void CLHEP::RandGauss::setF ( bool  val)
inline
static void CLHEP::RandGauss::setFlag ( bool  val)
static

Referenced by distributionName().

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 void CLHEP::RandGauss::setVal ( double  nextVal)
staticprotected

Referenced by setF().

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

Member Data Documentation

double CLHEP::RandGauss::defaultMean
protected

Definition at line 152 of file RandGauss.h.

Referenced by CLHEP::RandGaussZiggurat::fire().

double CLHEP::RandGauss::defaultStdDev
protected

Definition at line 153 of file RandGauss.h.

Referenced by CLHEP::RandGaussZiggurat::fire().

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

Definition at line 155 of file RandGauss.h.

Referenced by CLHEP::RandGaussZiggurat::fire().

double CLHEP::RandGauss::nextGauss
private

Definition at line 160 of file RandGauss.h.

CLHEP_THREAD_LOCAL double CLHEP::RandGauss::nextGauss_st
staticprivate

Definition at line 164 of file RandGauss.h.

const long CLHEP::HepRandom::seedTable
staticprotectedinherited

Definition at line 157 of file Random.h.

bool CLHEP::RandGauss::set
private

Definition at line 159 of file RandGauss.h.

CLHEP_THREAD_LOCAL bool CLHEP::RandGauss::set_st
staticprivate

Definition at line 163 of file RandGauss.h.


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