Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
CLHEP::HepRandomEngine Class Referenceabstract

#include <RandomEngine.h>

Inheritance diagram for CLHEP::HepRandomEngine:
Inheritance graph
[legend]

Public Member Functions

 HepRandomEngine ()
 
virtual ~HepRandomEngine ()
 
bool operator== (const HepRandomEngine &engine)
 
bool operator!= (const HepRandomEngine &engine)
 
virtual double flat ()=0
 
virtual void flatArray (const int size, double *vect)=0
 
virtual void setSeed (long seed, int)=0
 
virtual void setSeeds (const long *seeds, int)=0
 
virtual void saveStatus (const char filename[]="Config.conf") const =0
 
virtual void restoreStatus (const char filename[]="Config.conf")=0
 
virtual void showStatus () const =0
 
virtual std::string name () const =0
 
virtual std::ostream & put (std::ostream &os) const
 
virtual std::istream & get (std::istream &is)
 
virtual std::istream & getState (std::istream &is)
 
virtual std::vector< unsigned
long > 
put () const
 
virtual bool get (const std::vector< unsigned long > &v)
 
virtual bool getState (const std::vector< unsigned long > &v)
 
long getSeed () const
 
const long * getSeeds () const
 
virtual operator double ()
 
virtual operator float ()
 
virtual operator unsigned int ()
 

Static Public Member Functions

static std::string beginTag ()
 
static HepRandomEnginenewEngine (std::istream &is)
 
static HepRandomEnginenewEngine (const std::vector< unsigned long > &v)
 

Static Protected Member Functions

static double exponent_bit_32 ()
 
static double mantissa_bit_12 ()
 
static double mantissa_bit_24 ()
 
static double mantissa_bit_32 ()
 
static double twoToMinus_32 ()
 
static double twoToMinus_48 ()
 
static double twoToMinus_49 ()
 
static double twoToMinus_53 ()
 
static double nearlyTwoToMinus_54 ()
 
static bool checkFile (std::istream &file, const std::string &filename, const std::string &classname, const std::string &methodname)
 

Protected Attributes

long theSeed
 
const long * theSeeds
 

Detailed Description

Author
Gabri.nosp@m.ele..nosp@m.Cosmo.nosp@m.@cer.nosp@m.n.ch

Definition at line 54 of file RandomEngine.h.

Constructor & Destructor Documentation

CLHEP::HepRandomEngine::HepRandomEngine ( )

Definition at line 25 of file RandomEngine.cc.

CLHEP::HepRandomEngine::~HepRandomEngine ( )
virtual

Definition at line 30 of file RandomEngine.cc.

Member Function Documentation

std::string CLHEP::HepRandomEngine::beginTag ( )
static

Definition at line 66 of file RandomEngine.cc.

bool CLHEP::HepRandomEngine::checkFile ( std::istream &  file,
const std::string &  filename,
const std::string &  classname,
const std::string &  methodname 
)
staticprotected

Definition at line 45 of file RandomEngine.cc.

Here is the caller graph for this function:

static double CLHEP::HepRandomEngine::exponent_bit_32 ( )
inlinestaticprotected
virtual double CLHEP::HepRandomEngine::flat ( )
pure virtual
virtual void CLHEP::HepRandomEngine::flatArray ( const int  size,
double *  vect 
)
pure virtual
std::istream & CLHEP::HepRandomEngine::get ( std::istream &  is)
virtual
bool CLHEP::HepRandomEngine::get ( const std::vector< unsigned long > &  v)
virtual
long CLHEP::HepRandomEngine::getSeed ( ) const
inline

Definition at line 113 of file RandomEngine.h.

const long* CLHEP::HepRandomEngine::getSeeds ( ) const
inline

Definition at line 116 of file RandomEngine.h.

std::istream & CLHEP::HepRandomEngine::getState ( std::istream &  is)
virtual
bool CLHEP::HepRandomEngine::getState ( const std::vector< unsigned long > &  v)
virtual
static double CLHEP::HepRandomEngine::mantissa_bit_12 ( )
inlinestaticprotected

Here is the caller graph for this function:

static double CLHEP::HepRandomEngine::mantissa_bit_24 ( )
inlinestaticprotected

Here is the caller graph for this function:

static double CLHEP::HepRandomEngine::mantissa_bit_32 ( )
inlinestaticprotected
virtual std::string CLHEP::HepRandomEngine::name ( ) const
pure virtual
static double CLHEP::HepRandomEngine::nearlyTwoToMinus_54 ( )
inlinestaticprotected

Here is the caller graph for this function:

HepRandomEngine * CLHEP::HepRandomEngine::newEngine ( std::istream &  is)
static

Definition at line 89 of file RandomEngine.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

HepRandomEngine * CLHEP::HepRandomEngine::newEngine ( const std::vector< unsigned long > &  v)
static

Definition at line 94 of file RandomEngine.cc.

Here is the call graph for this function:

CLHEP::HepRandomEngine::operator double ( )
virtual

Definition at line 32 of file RandomEngine.cc.

CLHEP::HepRandomEngine::operator float ( )
virtual

Reimplemented in CLHEP::DualRand, CLHEP::RanshiEngine, and CLHEP::MTwistEngine.

Definition at line 36 of file RandomEngine.cc.

CLHEP::HepRandomEngine::operator unsigned int ( )
virtual
bool CLHEP::HepRandomEngine::operator!= ( const HepRandomEngine engine)
inline
bool CLHEP::HepRandomEngine::operator== ( const HepRandomEngine engine)
inline
std::ostream & CLHEP::HepRandomEngine::put ( std::ostream &  os) const
virtual
std::vector< unsigned long > CLHEP::HepRandomEngine::put ( ) const
virtual
virtual void CLHEP::HepRandomEngine::restoreStatus ( const char  filename[] = "Config.conf")
pure virtual
virtual void CLHEP::HepRandomEngine::saveStatus ( const char  filename[] = "Config.conf") const
pure virtual
virtual void CLHEP::HepRandomEngine::setSeed ( long  seed,
int   
)
pure virtual
virtual void CLHEP::HepRandomEngine::setSeeds ( const long *  seeds,
int   
)
pure virtual
virtual void CLHEP::HepRandomEngine::showStatus ( ) const
pure virtual
static double CLHEP::HepRandomEngine::twoToMinus_32 ( )
inlinestaticprotected

Here is the caller graph for this function:

static double CLHEP::HepRandomEngine::twoToMinus_48 ( )
inlinestaticprotected

Here is the caller graph for this function:

static double CLHEP::HepRandomEngine::twoToMinus_49 ( )
inlinestaticprotected

Here is the caller graph for this function:

static double CLHEP::HepRandomEngine::twoToMinus_53 ( )
inlinestaticprotected

Here is the caller graph for this function:

Member Data Documentation

long CLHEP::HepRandomEngine::theSeed
protected

Definition at line 143 of file RandomEngine.h.

const long* CLHEP::HepRandomEngine::theSeeds
protected

Definition at line 144 of file RandomEngine.h.


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