Geant4  10.01.p03
G4MTRandGeneral Class Reference

#include <G4MTRandGeneral.hh>

+ Inheritance diagram for G4MTRandGeneral:
+ Collaboration diagram for G4MTRandGeneral:

Public Member Functions

 G4MTRandGeneral (const G4double *aProbFunc, G4int theProbSize, G4int IntType=0)
 
 G4MTRandGeneral (CLHEP::HepRandomEngine &anEngine, const G4double *aProbFunc, G4int theProbSize, G4int IntType=0)
 
 G4MTRandGeneral (CLHEP::HepRandomEngine *anEngine, const G4double *aProbFunc, G4int theProbSize, G4int IntType=0)
 
virtual ~G4MTRandGeneral ()
 
G4double shoot ()
 
void shootArray (const G4int size, G4double *vect)
 
G4double shoot (CLHEP::HepRandomEngine *anEngine)
 
void shootArray (CLHEP::HepRandomEngine *anEngine, const G4int size, G4double *vect)
 
G4double fire ()
 
void fireArray (const G4int size, G4double *vect)
 
G4double operator() ()
 
- Public Member Functions inherited from G4MTHepRandom
 G4MTHepRandom ()
 
 G4MTHepRandom (G4long seed)
 
 G4MTHepRandom (CLHEP::HepRandomEngine &algorithm)
 
 G4MTHepRandom (CLHEP::HepRandomEngine *algorithm)
 
virtual ~G4MTHepRandom ()
 
G4double flat ()
 
void flatArray (const G4int size, G4double *vect)
 
G4double flat (CLHEP::HepRandomEngine *theNewEngine)
 
void flatArray (CLHEP::HepRandomEngine *theNewEngine, const G4int size, G4double *vect)
 
virtual std::ostream & put (std::ostream &os) const
 
virtual std::istream & get (std::istream &is)
 

Private Member Functions

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

Private Attributes

CLHEP::HepRandomEngine * localEngine
 
G4bool deleteEngine
 
std::vector< G4doubletheIntegralPdf
 
G4int nBins
 
G4double oneOverNbins
 
G4int InterpolationType
 

Additional Inherited Members

- Static Public Member Functions inherited from G4MTHepRandom
static void setTheSeed (G4long seed, G4int lux=3)
 
static G4long getTheSeed ()
 
static void setTheSeeds (const G4long *seeds, G4int aux=-1)
 
static const G4longgetTheSeeds ()
 
static void getTheTableSeeds (G4long *seeds, G4int index)
 
static G4MTHepRandomgetTheGenerator ()
 
static void setTheEngine (CLHEP::HepRandomEngine *theNewEngine)
 
static CLHEP::HepRandomEngine * getTheEngine ()
 
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 G4int createInstance ()
 
static G4int createInstanceOnce ()
 

Detailed Description

Definition at line 42 of file G4MTRandGeneral.hh.

Constructor & Destructor Documentation

G4MTRandGeneral::G4MTRandGeneral ( const G4double aProbFunc,
G4int  theProbSize,
G4int  IntType = 0 
)
G4MTRandGeneral::G4MTRandGeneral ( CLHEP::HepRandomEngine &  anEngine,
const G4double aProbFunc,
G4int  theProbSize,
G4int  IntType = 0 
)
G4MTRandGeneral::G4MTRandGeneral ( CLHEP::HepRandomEngine *  anEngine,
const G4double aProbFunc,
G4int  theProbSize,
G4int  IntType = 0 
)
virtual G4MTRandGeneral::~G4MTRandGeneral ( )
virtual

Member Function Documentation

G4double G4MTRandGeneral::fire ( )
void G4MTRandGeneral::fireArray ( const G4int  size,
G4double vect 
)
G4double G4MTRandGeneral::mapRandom ( G4double  rand) const
private
G4double G4MTRandGeneral::operator() ( )
virtual

Reimplemented from G4MTHepRandom.

void G4MTRandGeneral::prepareTable ( const G4double aProbFunc)
private
G4double G4MTRandGeneral::shoot ( )
inline
G4double G4MTRandGeneral::shoot ( CLHEP::HepRandomEngine *  anEngine)
void G4MTRandGeneral::shootArray ( const G4int  size,
G4double vect 
)
inline
void G4MTRandGeneral::shootArray ( CLHEP::HepRandomEngine *  anEngine,
const G4int  size,
G4double vect 
)
void G4MTRandGeneral::useFlatDistribution ( )
private

Member Data Documentation

G4bool G4MTRandGeneral::deleteEngine
private

Definition at line 112 of file G4MTRandGeneral.hh.

G4int G4MTRandGeneral::InterpolationType
private

Definition at line 116 of file G4MTRandGeneral.hh.

CLHEP::HepRandomEngine* G4MTRandGeneral::localEngine
private

Definition at line 111 of file G4MTRandGeneral.hh.

G4int G4MTRandGeneral::nBins
private

Definition at line 114 of file G4MTRandGeneral.hh.

G4double G4MTRandGeneral::oneOverNbins
private

Definition at line 115 of file G4MTRandGeneral.hh.

std::vector<G4double> G4MTRandGeneral::theIntegralPdf
private

Definition at line 113 of file G4MTRandGeneral.hh.


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