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

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

Inheritance diagram for CLHEP::RanecuEngine:
CLHEP::HepRandomEngine

Public Member Functions

 RanecuEngine (std::istream &is)
 
 RanecuEngine ()
 
 RanecuEngine (int index)
 
virtual ~RanecuEngine ()
 
double flat ()
 
void flatArray (const int size, double *vect)
 
void setIndex (long index)
 
void setSeed (long index, int dum=0)
 
void setSeeds (const long *seeds, int index=-1)
 
void saveStatus (const char filename[]="Ranecu.conf") const
 
void restoreStatus (const char filename[]="Ranecu.conf")
 
void showStatus () const
 
 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)
 
bool operator== (const HepRandomEngine &engine)
 
bool operator!= (const HepRandomEngine &engine)
 
long getSeed () const
 
const long * getSeeds () const
 
virtual operator double ()
 
virtual operator float ()
 

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 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
 

Static Protected Attributes

static const int ecuyer_a = 40014
 
static const int ecuyer_b = 53668
 
static const int ecuyer_c = 12211
 
static const int ecuyer_d = 40692
 
static const int ecuyer_e = 52774
 
static const int ecuyer_f = 3791
 
static const int shift1 = 2147483563
 
static const int shift2 = 2147483399
 
static const unsigned int VECTOR_STATE_SIZE = 4
 

Private Member Functions

void further_randomize (int seq, int col, int index, int modulus)
 

Private Attributes

long table [215][2]
 
int seq
 

Static Private Attributes

static const int maxSeq = 215
 

Detailed Description

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

Definition at line 47 of file RanecuEngine.h.

Constructor & Destructor Documentation

CLHEP::RanecuEngine::RanecuEngine ( std::istream &  is)
CLHEP::RanecuEngine::RanecuEngine ( )
CLHEP::RanecuEngine::RanecuEngine ( int  index)
virtual CLHEP::RanecuEngine::~RanecuEngine ( )
virtual

Member Function Documentation

static std::string CLHEP::RanecuEngine::beginTag ( )
static
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::RanecuEngine::engineName ( )
inlinestatic

Definition at line 96 of file RanecuEngine.h.

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

96 {return "RanecuEngine";}
static double CLHEP::HepRandomEngine::exponent_bit_32 ( )
inlinestaticprotectedinherited
double CLHEP::RanecuEngine::flat ( )
virtual
void CLHEP::RanecuEngine::flatArray ( const int  size,
double *  vect 
)
virtual
void CLHEP::RanecuEngine::further_randomize ( int  seq,
int  col,
int  index,
int  modulus 
)
private
virtual std::istream& CLHEP::RanecuEngine::get ( std::istream &  is)
virtual

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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::RanecuEngine::getState ( std::istream &  is)
virtual

Reimplemented from CLHEP::HepRandomEngine.

Referenced by engineName().

bool CLHEP::RanecuEngine::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::RanecuEngine::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
CLHEP::RanecuEngine::operator unsigned int ( )
virtual

Reimplemented from CLHEP::HepRandomEngine.

bool CLHEP::HepRandomEngine::operator!= ( const HepRandomEngine engine)
inlineinherited
bool CLHEP::HepRandomEngine::operator== ( const HepRandomEngine engine)
inlineinherited
virtual std::ostream& CLHEP::RanecuEngine::put ( std::ostream &  os) const
virtual

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

Referenced by engineName().

void CLHEP::RanecuEngine::restoreStatus ( const char  filename[] = "Ranecu.conf")
virtual
void CLHEP::RanecuEngine::saveStatus ( const char  filename[] = "Ranecu.conf") const
virtual
void CLHEP::RanecuEngine::setIndex ( long  index)
void CLHEP::RanecuEngine::setSeed ( long  index,
int  dum = 0 
)
virtual
void CLHEP::RanecuEngine::setSeeds ( const long *  seeds,
int  index = -1 
)
virtual
void CLHEP::RanecuEngine::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

Member Data Documentation

const int CLHEP::RanecuEngine::ecuyer_a = 40014
staticprotected

Definition at line 106 of file RanecuEngine.h.

const int CLHEP::RanecuEngine::ecuyer_b = 53668
staticprotected

Definition at line 107 of file RanecuEngine.h.

const int CLHEP::RanecuEngine::ecuyer_c = 12211
staticprotected

Definition at line 108 of file RanecuEngine.h.

const int CLHEP::RanecuEngine::ecuyer_d = 40692
staticprotected

Definition at line 109 of file RanecuEngine.h.

const int CLHEP::RanecuEngine::ecuyer_e = 52774
staticprotected

Definition at line 110 of file RanecuEngine.h.

const int CLHEP::RanecuEngine::ecuyer_f = 3791
staticprotected

Definition at line 111 of file RanecuEngine.h.

const int CLHEP::RanecuEngine::maxSeq = 215
staticprivate

Definition at line 124 of file RanecuEngine.h.

int CLHEP::RanecuEngine::seq
private

Definition at line 126 of file RanecuEngine.h.

const int CLHEP::RanecuEngine::shift1 = 2147483563
staticprotected

Definition at line 112 of file RanecuEngine.h.

const int CLHEP::RanecuEngine::shift2 = 2147483399
staticprotected

Definition at line 113 of file RanecuEngine.h.

long CLHEP::RanecuEngine::table[215][2]
private

Definition at line 125 of file RanecuEngine.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::RanecuEngine::VECTOR_STATE_SIZE = 4
staticprotected

Definition at line 115 of file RanecuEngine.h.


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