Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
CLHEP::Ranlux64Engine Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/geant4/v4_10_4_p02ba/source/geant4.10.04.p02/source/externals/clhep/include/CLHEP/Random/Ranlux64Engine.h"

Inheritance diagram for CLHEP::Ranlux64Engine:
CLHEP::HepRandomEngine

Public Member Functions

 Ranlux64Engine (std::istream &is)
 
 Ranlux64Engine ()
 
 Ranlux64Engine (long seed, int lux=1)
 
 Ranlux64Engine (int rowIndex, int colIndex, int lux)
 
virtual ~Ranlux64Engine ()
 
double flat ()
 
void flatArray (const int size, double *vect)
 
void setSeed (long seed, int lux=1)
 
void setSeeds (const long *seeds, int lux=1)
 
void saveStatus (const char filename[]="Ranlux64.conf") const
 
void restoreStatus (const char filename[]="Ranlux64.conf")
 
void showStatus () const
 
int getLuxury () const
 
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)
 
bool operator== (const HepRandomEngine &engine)
 
bool operator!= (const HepRandomEngine &engine)
 
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 std::string engineName ()
 
static HepRandomEnginenewEngine (std::istream &is)
 
static HepRandomEnginenewEngine (const std::vector< unsigned long > &v)
 

Static Public Attributes

static const unsigned int VECTOR_STATE_SIZE = 30
 

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
 

Private Member Functions

void update ()
 
void advance (int dozens)
 

Private Attributes

int pDiscard
 
int pDozens
 
int endIters
 
int luxury
 
int index
 
double randoms [12]
 
double carry
 

Detailed Description

Author

Definition at line 49 of file Ranlux64Engine.h.

Constructor & Destructor Documentation

CLHEP::Ranlux64Engine::Ranlux64Engine ( std::istream &  is)
CLHEP::Ranlux64Engine::Ranlux64Engine ( )
CLHEP::Ranlux64Engine::Ranlux64Engine ( long  seed,
int  lux = 1 
)
CLHEP::Ranlux64Engine::Ranlux64Engine ( int  rowIndex,
int  colIndex,
int  lux 
)
virtual CLHEP::Ranlux64Engine::~Ranlux64Engine ( )
virtual

Member Function Documentation

void CLHEP::Ranlux64Engine::advance ( int  dozens)
private
static std::string CLHEP::Ranlux64Engine::beginTag ( )
static

Referenced by getLuxury().

static bool CLHEP::HepRandomEngine::checkFile ( std::istream &  file,
const std::string filename,
const std::string classname,
const std::string methodname 
)
staticprotectedinherited
static std::string CLHEP::Ranlux64Engine::engineName ( )
inlinestatic

Definition at line 92 of file Ranlux64Engine.h.

References getState(), put(), and registry_explorer::v.

92 {return "Ranlux64Engine";}
static double CLHEP::HepRandomEngine::exponent_bit_32 ( )
inlinestaticprotectedinherited
double CLHEP::Ranlux64Engine::flat ( )
virtual
void CLHEP::Ranlux64Engine::flatArray ( const int  size,
double *  vect 
)
virtual
virtual std::istream& CLHEP::Ranlux64Engine::get ( std::istream &  is)
virtual

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

int CLHEP::Ranlux64Engine::getLuxury ( ) const
inline

Definition at line 83 of file Ranlux64Engine.h.

References beginTag(), getState(), luxury, name(), put(), and string.

83 { return luxury; }
long CLHEP::HepRandomEngine::getSeed ( ) const
inlineinherited

Definition at line 113 of file RandomEngine.h.

References CLHEP::HepRandomEngine::theSeed.

113 { return theSeed; }
const long* CLHEP::HepRandomEngine::getSeeds ( ) const
inlineinherited

Definition at line 116 of file RandomEngine.h.

References check_time_usage::float, makeTrainCVSamples::int, and CLHEP::HepRandomEngine::theSeeds.

116 { return theSeeds; }
virtual std::istream& CLHEP::Ranlux64Engine::getState ( std::istream &  is)
virtual

Reimplemented from CLHEP::HepRandomEngine.

Referenced by engineName(), and getLuxury().

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

Reimplemented from CLHEP::HepRandomEngine.

static double CLHEP::HepRandomEngine::mantissa_bit_12 ( )
inlinestaticprotectedinherited
static double CLHEP::HepRandomEngine::mantissa_bit_24 ( )
inlinestaticprotectedinherited
static double CLHEP::HepRandomEngine::mantissa_bit_32 ( )
inlinestaticprotectedinherited
std::string CLHEP::Ranlux64Engine::name ( ) const
virtual
static double CLHEP::HepRandomEngine::nearlyTwoToMinus_54 ( )
inlinestaticprotectedinherited
static HepRandomEngine* CLHEP::HepRandomEngine::newEngine ( std::istream &  is)
staticinherited
static HepRandomEngine* CLHEP::HepRandomEngine::newEngine ( const std::vector< unsigned long > &  v)
staticinherited
virtual CLHEP::HepRandomEngine::operator double ( )
virtualinherited
virtual CLHEP::HepRandomEngine::operator float ( )
virtualinherited
virtual CLHEP::HepRandomEngine::operator unsigned int ( )
virtualinherited
bool CLHEP::HepRandomEngine::operator!= ( const HepRandomEngine engine)
inlineinherited
bool CLHEP::HepRandomEngine::operator== ( const HepRandomEngine engine)
inlineinherited
virtual std::ostream& CLHEP::Ranlux64Engine::put ( std::ostream &  os) const
virtual

Reimplemented from CLHEP::HepRandomEngine.

std::vector<unsigned long> CLHEP::Ranlux64Engine::put ( ) const
virtual

Reimplemented from CLHEP::HepRandomEngine.

Referenced by engineName(), and getLuxury().

void CLHEP::Ranlux64Engine::restoreStatus ( const char  filename[] = "Ranlux64.conf")
virtual
void CLHEP::Ranlux64Engine::saveStatus ( const char  filename[] = "Ranlux64.conf") const
virtual
void CLHEP::Ranlux64Engine::setSeed ( long  seed,
int  lux = 1 
)
virtual
void CLHEP::Ranlux64Engine::setSeeds ( const long *  seeds,
int  lux = 1 
)
virtual
void CLHEP::Ranlux64Engine::showStatus ( ) const
virtual
static double CLHEP::HepRandomEngine::twoToMinus_32 ( )
inlinestaticprotectedinherited
static double CLHEP::HepRandomEngine::twoToMinus_48 ( )
inlinestaticprotectedinherited
static double CLHEP::HepRandomEngine::twoToMinus_49 ( )
inlinestaticprotectedinherited
static double CLHEP::HepRandomEngine::twoToMinus_53 ( )
inlinestaticprotectedinherited
void CLHEP::Ranlux64Engine::update ( )
private

Member Data Documentation

double CLHEP::Ranlux64Engine::carry
private

Definition at line 112 of file Ranlux64Engine.h.

int CLHEP::Ranlux64Engine::endIters
private

Definition at line 107 of file Ranlux64Engine.h.

int CLHEP::Ranlux64Engine::index
private

Definition at line 110 of file Ranlux64Engine.h.

int CLHEP::Ranlux64Engine::luxury
private

Definition at line 108 of file Ranlux64Engine.h.

Referenced by getLuxury().

int CLHEP::Ranlux64Engine::pDiscard
private

Definition at line 105 of file Ranlux64Engine.h.

int CLHEP::Ranlux64Engine::pDozens
private

Definition at line 106 of file Ranlux64Engine.h.

double CLHEP::Ranlux64Engine::randoms[12]
private

Definition at line 111 of file Ranlux64Engine.h.

long CLHEP::HepRandomEngine::theSeed
protectedinherited

Definition at line 143 of file RandomEngine.h.

Referenced by CLHEP::HepRandomEngine::getSeed().

const long* CLHEP::HepRandomEngine::theSeeds
protectedinherited

Definition at line 144 of file RandomEngine.h.

Referenced by CLHEP::HepRandomEngine::getSeeds().

const unsigned int CLHEP::Ranlux64Engine::VECTOR_STATE_SIZE = 30
static

Definition at line 98 of file Ranlux64Engine.h.


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