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

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

Inheritance diagram for CLHEP::RandGeneral:
CLHEP::HepRandom

Public Member Functions

 RandGeneral (const double *aProbFunc, int theProbSize, int IntType=0)
 
 RandGeneral (HepRandomEngine &anEngine, const double *aProbFunc, int theProbSize, int IntType=0)
 
 RandGeneral (HepRandomEngine *anEngine, const double *aProbFunc, int theProbSize, int IntType=0)
 
virtual ~RandGeneral ()
 
double shoot ()
 
void shootArray (const int size, double *vect)
 
double shoot (HepRandomEngine *anEngine)
 
void shootArray (HepRandomEngine *anEngine, const int size, double *vect)
 
double fire ()
 
void fireArray (const int size, double *vect)
 
double operator() ()
 
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 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]
 

Private Member Functions

void prepareTable (const double *aProbFunc)
 
void useFlatDistribution ()
 
double mapRandom (double rand) const
 

Private Attributes

std::shared_ptr< HepRandomEnginelocalEngine
 
std::vector< double > theIntegralPdf
 
int nBins
 
double oneOverNbins
 
int InterpolationType
 

Detailed Description

Author

Definition at line 39 of file RandGeneral.h.

Constructor & Destructor Documentation

CLHEP::RandGeneral::RandGeneral ( const double *  aProbFunc,
int  theProbSize,
int  IntType = 0 
)
CLHEP::RandGeneral::RandGeneral ( HepRandomEngine anEngine,
const double *  aProbFunc,
int  theProbSize,
int  IntType = 0 
)
CLHEP::RandGeneral::RandGeneral ( HepRandomEngine anEngine,
const double *  aProbFunc,
int  theProbSize,
int  IntType = 0 
)
virtual CLHEP::RandGeneral::~RandGeneral ( )
virtual

Member Function Documentation

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

Definition at line 125 of file RandGeneral.h.

125 {return "RandGeneral";}
HepRandomEngine& CLHEP::RandGeneral::engine ( )
virtual

Reimplemented from CLHEP::HepRandom.

double CLHEP::RandGeneral::fire ( )
void CLHEP::RandGeneral::fireArray ( const int  size,
double *  vect 
)
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::RandGeneral::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
double CLHEP::RandGeneral::mapRandom ( double  rand) const
private
std::string CLHEP::RandGeneral::name ( ) const
virtual
double CLHEP::RandGeneral::operator() ( )
virtual

Reimplemented from CLHEP::HepRandom.

void CLHEP::RandGeneral::prepareTable ( const double *  aProbFunc)
private
std::ostream& CLHEP::RandGeneral::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
double CLHEP::RandGeneral::shoot ( )
inline
double CLHEP::RandGeneral::shoot ( HepRandomEngine anEngine)
void CLHEP::RandGeneral::shootArray ( const int  size,
double *  vect 
)
inline
void CLHEP::RandGeneral::shootArray ( HepRandomEngine anEngine,
const int  size,
double *  vect 
)
static void CLHEP::HepRandom::showEngineStatus ( )
staticinherited
void CLHEP::RandGeneral::useFlatDistribution ( )
private

Member Data Documentation

int CLHEP::RandGeneral::InterpolationType
private

Definition at line 135 of file RandGeneral.h.

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

Definition at line 131 of file RandGeneral.h.

int CLHEP::RandGeneral::nBins
private

Definition at line 133 of file RandGeneral.h.

double CLHEP::RandGeneral::oneOverNbins
private

Definition at line 134 of file RandGeneral.h.

const long CLHEP::HepRandom::seedTable
staticprotectedinherited

Definition at line 157 of file Random.h.

std::vector<double> CLHEP::RandGeneral::theIntegralPdf
private

Definition at line 132 of file RandGeneral.h.


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