CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

CLHEP::RandGauss Class Reference

#include <RandGauss.h>

Inheritance diagram for CLHEP::RandGauss:

CLHEP::HepRandom CLHEP::RandGaussQ CLHEP::RandGaussT List of all members.

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)

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)

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

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]

CLHEP::RandGauss::~RandGauss (  )  [virtual]

Definition at line 50 of file RandGauss.cc.


Member Function Documentation

static std::string CLHEP::RandGauss::distributionName (  )  [inline, static]

Reimplemented from CLHEP::HepRandom.

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

Definition at line 100 of file RandGauss.h.

Referenced by restoreDistState(), and saveDistState().

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

Reimplemented from CLHEP::HepRandom.

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

Definition at line 44 of file RandGauss.cc.

References localEngine.

Referenced by CLHEP::RandGaussT::engine(), and CLHEP::RandGaussQ::engine().

double CLHEP::RandGauss::fire ( double  mean,
double  stdDev 
) [inline]

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

double CLHEP::RandGauss::fire (  ) 

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

Referenced by dist_layout(), fireArray(), main(), operator()(), and testRandGauss().

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

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

Definition at line 163 of file RandGauss.cc.

References fire().

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

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

Definition at line 157 of file RandGauss.cc.

References defaultMean, defaultStdDev, and fire().

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

Reimplemented from CLHEP::HepRandom.

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

Definition at line 262 of file RandGauss.cc.

References defaultMean, defaultStdDev, CLHEP::DoubConv::longs2double(), name(), and CLHEP::possibleKeywordInput().

Referenced by CLHEP::RandGaussT::get().

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

Definition at line 116 of file RandGauss.h.

static bool CLHEP::RandGauss::getFlag (  )  [inline, static]

Definition at line 112 of file RandGauss.h.

Referenced by saveDistState(), saveEngineStatus(), and shoot().

static double CLHEP::RandGauss::getVal (  )  [inline, static, protected]

Definition at line 146 of file RandGauss.h.

Referenced by saveDistState(), saveEngineStatus(), and shoot().

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

Reimplemented from CLHEP::HepRandom.

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

Definition at line 43 of file RandGauss.cc.

Referenced by get(), and put().

double CLHEP::RandGauss::normal (  )  [protected]

Definition at line 131 of file RandGauss.cc.

References localEngine.

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

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

Definition at line 57 of file RandGauss.cc.

References fire().

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

Reimplemented from CLHEP::HepRandom.

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

Definition at line 53 of file RandGauss.cc.

References defaultMean, defaultStdDev, and fire().

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

Reimplemented from CLHEP::HepRandom.

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

Definition at line 237 of file RandGauss.cc.

References defaultMean, defaultStdDev, CLHEP::DoubConv::dto2longs(), and name().

Referenced by CLHEP::RandGaussT::put().

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

Reimplemented from CLHEP::HepRandom.

Definition at line 338 of file RandGauss.cc.

References distributionName(), CLHEP::DoubConv::longs2double(), CLHEP::possibleKeywordInput(), and setFlag().

Referenced by CLHEP::StaticRandomStates::restore(), and restoreFullState().

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

Reimplemented from CLHEP::HepRandom.

Definition at line 190 of file RandGauss.cc.

References CLHEP::HepRandom::getTheEngine(), CLHEP::DoubConv::longs2double(), CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::restoreStatus(), and setFlag().

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

Reimplemented from CLHEP::HepRandom.

Definition at line 388 of file RandGauss.cc.

References restoreDistState(), and CLHEP::HepRandom::restoreFullState().

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

Reimplemented from CLHEP::HepRandom.

Definition at line 323 of file RandGauss.cc.

References distributionName(), CLHEP::DoubConv::dto2longs(), getFlag(), and getVal().

Referenced by saveFullState().

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

Reimplemented from CLHEP::HepRandom.

Definition at line 170 of file RandGauss.cc.

References CLHEP::DoubConv::dto2longs(), getFlag(), CLHEP::HepRandom::getTheEngine(), getVal(), and CLHEP::HepRandomEngine::saveStatus().

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

Reimplemented from CLHEP::HepRandom.

Definition at line 382 of file RandGauss.cc.

References saveDistState(), and CLHEP::HepRandom::saveFullState().

Referenced by CLHEP::StaticRandomStates::save().

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

Definition at line 118 of file RandGauss.h.

static void CLHEP::RandGauss::setFlag ( bool  val  )  [inline, static]

Definition at line 114 of file RandGauss.h.

Referenced by restoreDistState(), restoreEngineStatus(), and shoot().

static void CLHEP::RandGauss::setVal ( double  nextVal  )  [inline, static, protected]

Definition at line 148 of file RandGauss.h.

Referenced by shoot().

static double CLHEP::RandGauss::shoot ( HepRandomEngine anEngine,
double  mean,
double  stdDev 
) [inline, static]

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

double CLHEP::RandGauss::shoot ( HepRandomEngine anEngine  )  [static]

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

Definition at line 97 of file RandGauss.cc.

References CLHEP::HepRandomEngine::flat(), getFlag(), getVal(), setFlag(), and setVal().

static double CLHEP::RandGauss::shoot ( double  mean,
double  stdDev 
) [inline, static]

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

double CLHEP::RandGauss::shoot (  )  [static]

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

Definition at line 61 of file RandGauss.cc.

References CLHEP::HepRandomEngine::flat(), getFlag(), CLHEP::HepRandom::getTheEngine(), getVal(), setFlag(), and setVal().

Referenced by shootArray().

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

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

Definition at line 123 of file RandGauss.cc.

References shoot().

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

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

Definition at line 90 of file RandGauss.cc.

References shoot().


Member Data Documentation

double CLHEP::RandGauss::defaultMean [protected]

Definition at line 152 of file RandGauss.h.

Referenced by CLHEP::RandGaussT::fireArray(), CLHEP::RandGaussQ::fireArray(), fireArray(), get(), CLHEP::RandGaussT::operator()(), CLHEP::RandGaussQ::operator()(), operator()(), and put().

double CLHEP::RandGauss::defaultStdDev [protected]

Definition at line 153 of file RandGauss.h.

Referenced by CLHEP::RandGaussT::fireArray(), CLHEP::RandGaussQ::fireArray(), fireArray(), get(), CLHEP::RandGaussT::operator()(), CLHEP::RandGaussQ::operator()(), operator()(), and put().

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

Definition at line 155 of file RandGauss.h.

Referenced by engine(), normal(), CLHEP::RandGaussT::operator()(), and CLHEP::RandGaussQ::operator()().


The documentation for this class was generated from the following files:
Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7