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

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

Inheritance diagram for CLHEP::RandGamma:
CLHEP::HepRandom

Public Member Functions

 RandGamma (HepRandomEngine &anEngine, double k=1.0, double lambda=1.0)
 
 RandGamma (HepRandomEngine *anEngine, double k=1.0, double lambda=1.0)
 
virtual ~RandGamma ()
 
double fire ()
 
double fire (double k, double lambda)
 
void fireArray (const int size, double *vect)
 
void fireArray (const int size, double *vect, double k, double lambda)
 
double operator() ()
 
double operator() (double k, double lambda)
 
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 k, double lambda)
 
static void shootArray (const int size, double *vect, double k=1.0, double lambda=1.0)
 
static double shoot (HepRandomEngine *anEngine)
 
static double shoot (HepRandomEngine *anEngine, double k, double lambda)
 
static void shootArray (HepRandomEngine *anEngine, const int size, double *vect, double k=1.0, double lambda=1.0)
 
static std::string distributionName ()
 
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 Protected Attributes

static const long seedTable [215][2]
 

Static Private Member Functions

static double genGamma (HepRandomEngine *anEngine, double k, double lambda)
 

Private Attributes

std::shared_ptr< HepRandomEnginelocalEngine
 
double defaultK
 
double defaultLambda
 

Detailed Description

Author

Definition at line 37 of file RandGamma.h.

Constructor & Destructor Documentation

CLHEP::RandGamma::RandGamma ( HepRandomEngine anEngine,
double  k = 1.0,
double  lambda = 1.0 
)
inline
CLHEP::RandGamma::RandGamma ( HepRandomEngine anEngine,
double  k = 1.0,
double  lambda = 1.0 
)
inline
virtual CLHEP::RandGamma::~RandGamma ( )
virtual

Member Function Documentation

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

Definition at line 99 of file RandGamma.h.

References genGamma().

99 {return "RandGamma";}
HepRandomEngine& CLHEP::RandGamma::engine ( )
virtual

Reimplemented from CLHEP::HepRandom.

double CLHEP::RandGamma::fire ( )
inline
double CLHEP::RandGamma::fire ( double  k,
double  lambda 
)
void CLHEP::RandGamma::fireArray ( const int  size,
double *  vect 
)
void CLHEP::RandGamma::fireArray ( const int  size,
double *  vect,
double  k,
double  lambda 
)
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
static double CLHEP::RandGamma::genGamma ( HepRandomEngine anEngine,
double  k,
double  lambda 
)
staticprivate

Referenced by distributionName().

std::istream& CLHEP::RandGamma::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::RandGamma::name ( ) const
virtual
double CLHEP::RandGamma::operator() ( )
inlinevirtual

Reimplemented from CLHEP::HepRandom.

double CLHEP::RandGamma::operator() ( double  k,
double  lambda 
)
inline
std::ostream& CLHEP::RandGamma::put ( std::ostream &  os) const
virtual

Reimplemented from CLHEP::HepRandom.

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

Definition at line 134 of file Random.h.

134 {return os;}
static void CLHEP::HepRandom::saveEngineStatus ( const char  filename[] = "Config.conf")
staticinherited
static std::ostream& CLHEP::HepRandom::saveFullState ( std::ostream &  os)
staticinherited
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::RandGamma::shoot ( )
inlinestatic
static double CLHEP::RandGamma::shoot ( double  k,
double  lambda 
)
static
static double CLHEP::RandGamma::shoot ( HepRandomEngine anEngine)
inlinestatic
static double CLHEP::RandGamma::shoot ( HepRandomEngine anEngine,
double  k,
double  lambda 
)
static
static void CLHEP::RandGamma::shootArray ( const int  size,
double *  vect,
double  k = 1.0,
double  lambda = 1.0 
)
static
static void CLHEP::RandGamma::shootArray ( HepRandomEngine anEngine,
const int  size,
double *  vect,
double  k = 1.0,
double  lambda = 1.0 
)
static
static void CLHEP::HepRandom::showEngineStatus ( )
staticinherited

Member Data Documentation

double CLHEP::RandGamma::defaultK
private

Definition at line 109 of file RandGamma.h.

double CLHEP::RandGamma::defaultLambda
private

Definition at line 110 of file RandGamma.h.

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

Definition at line 108 of file RandGamma.h.

const long CLHEP::HepRandom::seedTable
staticprotectedinherited

Definition at line 157 of file Random.h.


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