Geant4  10.02.p03
G4MTRandGamma Class Reference

#include <G4MTRandGamma.hh>

Inheritance diagram for G4MTRandGamma:
Collaboration diagram for G4MTRandGamma:

Public Member Functions

 G4MTRandGamma (CLHEP::HepRandomEngine &anEngine, G4double k=1.0, G4double lambda=1.0)
 
 G4MTRandGamma (CLHEP::HepRandomEngine *anEngine, G4double k=1.0, G4double lambda=1.0)
 
virtual ~G4MTRandGamma ()
 
G4double fire ()
 
G4double fire (G4double k, G4double lambda)
 
void fireArray (const G4int size, G4double *vect)
 
void fireArray (const G4int size, G4double *vect, G4double k, G4double lambda)
 
G4double operator() ()
 
G4double operator() (G4double k, G4double lambda)
 
- 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 k, G4double lambda)
 
static void shootArray (const G4int size, G4double *vect, G4double k=1.0, G4double lambda=1.0)
 
static G4double shoot (CLHEP::HepRandomEngine *anEngine)
 
static G4double shoot (CLHEP::HepRandomEngine *anEngine, G4double k, G4double lambda)
 
static void shootArray (CLHEP::HepRandomEngine *anEngine, const G4int size, G4double *vect, G4double k=1.0, G4double lambda=1.0)
 
- 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 ()
 

Static Private Member Functions

static G4double genGamma (CLHEP::HepRandomEngine *anEngine, G4double k, G4double lambda)
 

Private Attributes

CLHEP::HepRandomEnginelocalEngine
 
G4bool deleteEngine
 
G4double defaultK
 
G4double defaultLambda
 

Detailed Description

Definition at line 40 of file G4MTRandGamma.hh.

Constructor & Destructor Documentation

◆ G4MTRandGamma() [1/2]

G4MTRandGamma::G4MTRandGamma ( CLHEP::HepRandomEngine anEngine,
G4double  k = 1.0,
G4double  lambda = 1.0 
)
inline

◆ G4MTRandGamma() [2/2]

G4MTRandGamma::G4MTRandGamma ( CLHEP::HepRandomEngine anEngine,
G4double  k = 1.0,
G4double  lambda = 1.0 
)
inline

◆ ~G4MTRandGamma()

virtual G4MTRandGamma::~G4MTRandGamma ( )
virtual

Member Function Documentation

◆ fire() [1/2]

G4double G4MTRandGamma::fire ( )
inline

◆ fire() [2/2]

G4double G4MTRandGamma::fire ( G4double  k,
G4double  lambda 
)

◆ fireArray() [1/2]

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

◆ fireArray() [2/2]

void G4MTRandGamma::fireArray ( const G4int  size,
G4double vect,
G4double  k,
G4double  lambda 
)

◆ genGamma()

static G4double G4MTRandGamma::genGamma ( CLHEP::HepRandomEngine anEngine,
G4double  k,
G4double  lambda 
)
staticprivate

◆ operator()() [1/2]

G4double G4MTRandGamma::operator() ( )
inlinevirtual

Reimplemented from G4MTHepRandom.

◆ operator()() [2/2]

G4double G4MTRandGamma::operator() ( G4double  k,
G4double  lambda 
)
inline

◆ shoot() [1/4]

static G4double G4MTRandGamma::shoot ( )
inlinestatic

◆ shoot() [2/4]

static G4double G4MTRandGamma::shoot ( G4double  k,
G4double  lambda 
)
static

◆ shoot() [3/4]

static G4double G4MTRandGamma::shoot ( CLHEP::HepRandomEngine anEngine)
inlinestatic

◆ shoot() [4/4]

static G4double G4MTRandGamma::shoot ( CLHEP::HepRandomEngine anEngine,
G4double  k,
G4double  lambda 
)
static

◆ shootArray() [1/2]

static void G4MTRandGamma::shootArray ( const G4int  size,
G4double vect,
G4double  k = 1.0,
G4double  lambda = 1.0 
)
static

◆ shootArray() [2/2]

static void G4MTRandGamma::shootArray ( CLHEP::HepRandomEngine anEngine,
const G4int  size,
G4double vect,
G4double  k = 1.0,
G4double  lambda = 1.0 
)
static

Member Data Documentation

◆ defaultK

G4double G4MTRandGamma::defaultK
private

Definition at line 102 of file G4MTRandGamma.hh.

◆ defaultLambda

G4double G4MTRandGamma::defaultLambda
private

Definition at line 103 of file G4MTRandGamma.hh.

◆ deleteEngine

G4bool G4MTRandGamma::deleteEngine
private

Definition at line 101 of file G4MTRandGamma.hh.

◆ localEngine

CLHEP::HepRandomEngine* G4MTRandGamma::localEngine
private

Definition at line 100 of file G4MTRandGamma.hh.


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