Geant4  10.07
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RanshiEngine Class Reference
Inheritance diagram for RanshiEngine:
HepRandomEngine

Public Member Functions

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

Static Public Member Functions

static std::string beginTag ()
 
static std::string engineName ()
 
- Static Public Member Functions inherited from HepRandomEngine
static std::string beginTag ()
 
static HepRandomEnginenewEngine (std::istream &is)
 
static HepRandomEnginenewEngine (const std::vector< unsigned long > &v)
 

Private Types

enum  { numBuff = 512 }
 

Private Attributes

unsigned int halfBuff
 
unsigned int numFlats
 
unsigned int buffer [numBuff]
 
unsigned int redSpin
 

Static Private Attributes

static const unsigned int VECTOR_STATE_SIZE = numBuff + 4
 

Additional Inherited Members

- Static Protected Member Functions inherited from HepRandomEngine
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 inherited from HepRandomEngine
long theSeed
 
const long * theSeeds
 

Detailed Description

Author

Member Enumeration Documentation

anonymous enum
private
Enumerator
numBuff 

Constructor & Destructor Documentation

RanshiEngine ( std::istream &  is)
RanshiEngine ( long  seed)
RanshiEngine ( int  rowIndex,
int  colIndex 
)
virtual ~RanshiEngine ( )
virtual

Member Function Documentation

double flat ( )
virtual

Implements HepRandomEngine.

void flatArray ( const int  size,
double *  vect 
)
virtual

Implements HepRandomEngine.

void setSeed ( long  seed,
int   
)
virtual

Implements HepRandomEngine.

void setSeeds ( const long *  seeds,
int   
)
virtual

Implements HepRandomEngine.

void saveStatus ( const char  filename[] = "RanshiEngine.conf") const
virtual

Implements HepRandomEngine.

void restoreStatus ( const char  filename[] = "RanshiEngine.conf")
virtual

Implements HepRandomEngine.

void showStatus ( ) const
virtual

Implements HepRandomEngine.

operator double ( )
virtual

Reimplemented from HepRandomEngine.

operator float ( )
virtual

Reimplemented from HepRandomEngine.

operator unsigned int ( )
virtual

Reimplemented from HepRandomEngine.

virtual std::ostream& put ( std::ostream &  os) const
virtual

Reimplemented from HepRandomEngine.

virtual std::istream& get ( std::istream &  is)
virtual

Reimplemented from HepRandomEngine.

static std::string beginTag ( )
static
virtual std::istream& getState ( std::istream &  is)
virtual

Reimplemented from HepRandomEngine.

std::string name ( ) const
virtual

Implements HepRandomEngine.

static std::string engineName ( )
static
std::vector<unsigned long> put ( ) const
virtual

Reimplemented from HepRandomEngine.

bool get ( const std::vector< unsigned long > &  v)
virtual

Reimplemented from HepRandomEngine.

bool getState ( const std::vector< unsigned long > &  v)
virtual

Reimplemented from HepRandomEngine.

Member Data Documentation

unsigned int halfBuff
private
unsigned int numFlats
private
unsigned int buffer[numBuff]
private
unsigned int redSpin
private
const unsigned int VECTOR_STATE_SIZE = numBuff + 4
staticprivate