Geant4  10.02.p03
G4MTRandGauss Class Reference

#include <G4MTRandGauss.hh>

Inheritance diagram for G4MTRandGauss:
Collaboration diagram for G4MTRandGauss:

Public Member Functions

 G4MTRandGauss (CLHEP::HepRandomEngine &anEngine, G4double mean=0.0, G4double stdDev=1.0)
 
 G4MTRandGauss (CLHEP::HepRandomEngine *anEngine, G4double mean=0.0, G4double stdDev=1.0)
 
virtual ~G4MTRandGauss ()
 
G4double fire ()
 
G4double fire (G4double mean, G4double stdDev)
 
void fireArray (const G4int size, G4double *vect)
 
void fireArray (const G4int size, G4double *vect, G4double mean, G4double stdDev)
 
virtual G4double operator() ()
 
virtual G4double operator() (G4double mean, G4double stdDev)
 
G4bool getF () const
 
void setF (G4bool val)
 
G4double normal ()
 
- 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)
 

Static Public Member Functions

static G4double shoot ()
 
static G4double shoot (G4double mean, G4double stdDev)
 
static void shootArray (const G4int size, G4double *vect, G4double mean=0.0, G4double stdDev=1.0)
 
static G4double shoot (CLHEP::HepRandomEngine *anEngine)
 
static G4double shoot (CLHEP::HepRandomEngine *anEngine, G4double mean, G4double stdDev)
 
static void shootArray (CLHEP::HepRandomEngine *anEngine, const G4int size, G4double *vect, G4double mean=0.0, G4double stdDev=1.0)
 
static G4bool getFlag ()
 
static void setFlag (G4bool val)
 
static G4double getVal ()
 
static void setVal (G4double nextVal)
 
- 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::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 G4int createInstance ()
 
static G4int createInstanceOnce ()
 

Public Attributes

G4double defaultMean
 
G4double defaultStdDev
 
CLHEP::HepRandomEnginelocalEngine
 

Private Attributes

G4bool deleteEngine
 
G4bool set
 
G4double nextGauss
 

Static Private Attributes

static G4ThreadLocal G4bool set_st
 
static G4ThreadLocal G4double nextGauss_st
 

Detailed Description

Definition at line 40 of file G4MTRandGauss.hh.

Constructor & Destructor Documentation

◆ G4MTRandGauss() [1/2]

G4MTRandGauss::G4MTRandGauss ( CLHEP::HepRandomEngine anEngine,
G4double  mean = 0.0,
G4double  stdDev = 1.0 
)
inline

◆ G4MTRandGauss() [2/2]

G4MTRandGauss::G4MTRandGauss ( CLHEP::HepRandomEngine anEngine,
G4double  mean = 0.0,
G4double  stdDev = 1.0 
)
inline

◆ ~G4MTRandGauss()

virtual G4MTRandGauss::~G4MTRandGauss ( )
virtual

Member Function Documentation

◆ fire() [1/2]

G4double G4MTRandGauss::fire ( )

◆ fire() [2/2]

G4double G4MTRandGauss::fire ( G4double  mean,
G4double  stdDev 
)
inline

◆ fireArray() [1/2]

void G4MTRandGauss::fireArray ( const G4int  size,
G4double vect 
)

◆ fireArray() [2/2]

void G4MTRandGauss::fireArray ( const G4int  size,
G4double vect,
G4double  mean,
G4double  stdDev 
)

◆ getF()

G4bool G4MTRandGauss::getF ( ) const
inline

Definition at line 102 of file G4MTRandGauss.hh.

102 {return set;}

◆ getFlag()

static G4bool G4MTRandGauss::getFlag ( )
inlinestatic

Definition at line 98 of file G4MTRandGauss.hh.

98 {return set_st;}
static G4ThreadLocal G4bool set_st

◆ getVal()

static G4double G4MTRandGauss::getVal ( )
inlinestatic

Definition at line 111 of file G4MTRandGauss.hh.

111 {return nextGauss_st;}
static G4ThreadLocal G4double nextGauss_st

◆ normal()

G4double G4MTRandGauss::normal ( )
Here is the caller graph for this function:

◆ operator()() [1/2]

virtual G4double G4MTRandGauss::operator() ( )
virtual

Reimplemented from G4MTHepRandom.

Reimplemented in G4MTRandGaussQ.

◆ operator()() [2/2]

virtual G4double G4MTRandGauss::operator() ( G4double  mean,
G4double  stdDev 
)
virtual

Reimplemented in G4MTRandGaussQ.

◆ setF()

void G4MTRandGauss::setF ( G4bool  val)
inline

Definition at line 104 of file G4MTRandGauss.hh.

104 {set = val;}

◆ setFlag()

static void G4MTRandGauss::setFlag ( G4bool  val)
inlinestatic

Definition at line 100 of file G4MTRandGauss.hh.

100 {set_st = val;}
static G4ThreadLocal G4bool set_st

◆ setVal()

static void G4MTRandGauss::setVal ( G4double  nextVal)
inlinestatic

Definition at line 113 of file G4MTRandGauss.hh.

113 {nextGauss_st = nextVal;}
static G4ThreadLocal G4double nextGauss_st
Here is the call graph for this function:

◆ shoot() [1/4]

static G4double G4MTRandGauss::shoot ( )
static

◆ shoot() [2/4]

static G4double G4MTRandGauss::shoot ( G4double  mean,
G4double  stdDev 
)
inlinestatic

◆ shoot() [3/4]

static G4double G4MTRandGauss::shoot ( CLHEP::HepRandomEngine anEngine)
static

◆ shoot() [4/4]

static G4double G4MTRandGauss::shoot ( CLHEP::HepRandomEngine anEngine,
G4double  mean,
G4double  stdDev 
)
inlinestatic

◆ shootArray() [1/2]

static void G4MTRandGauss::shootArray ( const G4int  size,
G4double vect,
G4double  mean = 0.0,
G4double  stdDev = 1.0 
)
static

◆ shootArray() [2/2]

static void G4MTRandGauss::shootArray ( CLHEP::HepRandomEngine anEngine,
const G4int  size,
G4double vect,
G4double  mean = 0.0,
G4double  stdDev = 1.0 
)
static

Member Data Documentation

◆ defaultMean

G4double G4MTRandGauss::defaultMean

Definition at line 117 of file G4MTRandGauss.hh.

◆ defaultStdDev

G4double G4MTRandGauss::defaultStdDev

Definition at line 118 of file G4MTRandGauss.hh.

◆ deleteEngine

G4bool G4MTRandGauss::deleteEngine
private

Definition at line 124 of file G4MTRandGauss.hh.

◆ localEngine

CLHEP::HepRandomEngine* G4MTRandGauss::localEngine

Definition at line 120 of file G4MTRandGauss.hh.

◆ nextGauss

G4double G4MTRandGauss::nextGauss
private

Definition at line 125 of file G4MTRandGauss.hh.

◆ nextGauss_st

G4ThreadLocal G4double G4MTRandGauss::nextGauss_st
staticprivate

Definition at line 129 of file G4MTRandGauss.hh.

◆ set

G4bool G4MTRandGauss::set
private

Definition at line 124 of file G4MTRandGauss.hh.

◆ set_st

G4ThreadLocal G4bool G4MTRandGauss::set_st
staticprivate

Definition at line 128 of file G4MTRandGauss.hh.


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