CLHEP 2.0.4.7 Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

CLHEP::RanluxEngine Class Reference

#include <RanluxEngine.h>

Inheritance diagram for CLHEP::RanluxEngine:

CLHEP::HepRandomEngine List of all members.

Public Member Functions

 RanluxEngine (std::istream &is)
 RanluxEngine ()
 RanluxEngine (long seed, int lux=3)
 RanluxEngine (int rowIndex, int colIndex, int lux)
virtual ~RanluxEngine ()
 RanluxEngine (const RanluxEngine &p)
RanluxEngineoperator= (const RanluxEngine &p)
double flat ()
void flatArray (const int size, double *vect)
void setSeed (long seed, int lux=3)
void setSeeds (const long *seeds, int lux=3)
void saveStatus (const char filename[]="Ranlux.conf") const
void restoreStatus (const char filename[]="Ranlux.conf")
void showStatus () const
int getLuxury () 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)

Static Public Member Functions

static std::string beginTag ()
static std::string engineName ()

Static Public Attributes

static const unsigned int VECTOR_STATE_SIZE = 31

Detailed Description

Author:

Definition at line 46 of file RanluxEngine.h.


Constructor & Destructor Documentation

CLHEP::RanluxEngine::RanluxEngine ( std::istream &  is  ) 

Definition at line 130 of file RanluxEngine.cc.

CLHEP::RanluxEngine::RanluxEngine (  ) 

Definition at line 84 of file RanluxEngine.cc.

References CLHEP::HepRandom::getTheTableSeeds(), setSeed(), setSeeds(), and CLHEP::HepRandomEngine::theSeed.

CLHEP::RanluxEngine::RanluxEngine ( long  seed,
int  lux = 3 
)

Definition at line 68 of file RanluxEngine.cc.

References setSeed(), setSeeds(), and CLHEP::HepRandomEngine::theSeed.

CLHEP::RanluxEngine::RanluxEngine ( int  rowIndex,
int  colIndex,
int  lux 
)

Definition at line 107 of file RanluxEngine.cc.

References CLHEP::HepRandom::getTheTableSeeds(), setSeed(), setSeeds(), and CLHEP::HepRandomEngine::theSeed.

CLHEP::RanluxEngine::~RanluxEngine (  )  [virtual]

Definition at line 138 of file RanluxEngine.cc.

CLHEP::RanluxEngine::RanluxEngine ( const RanluxEngine p  ) 

Definition at line 140 of file RanluxEngine.cc.

References carry, count24, float_seed_table, CLHEP::HepRandomEngine::getSeed(), i_lag, j_lag, luxury, nskip, setSeeds(), and CLHEP::HepRandomEngine::theSeed.


Member Function Documentation

std::string CLHEP::RanluxEngine::beginTag (  )  [static]

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 613 of file RanluxEngine.cc.

static std::string CLHEP::RanluxEngine::engineName (  )  [inline, static]

Definition at line 109 of file RanluxEngine.h.

Referenced by restoreStatus().

double CLHEP::RanluxEngine::flat (  )  [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 395 of file RanluxEngine.cc.

References CLHEP::DoubConv::d2x(), and double.

Referenced by operator unsigned int().

void CLHEP::RanluxEngine::flatArray ( const int  size,
double *  vect 
) [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 477 of file RanluxEngine.cc.

References double.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 662 of file RanluxEngine.cc.

References getState().

std::istream & CLHEP::RanluxEngine::get ( std::istream &  is  )  [virtual]

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 595 of file RanluxEngine.cc.

References getState().

int CLHEP::RanluxEngine::getLuxury (  )  const [inline]

Definition at line 98 of file RanluxEngine.h.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 671 of file RanluxEngine.cc.

References VECTOR_STATE_SIZE.

std::istream & CLHEP::RanluxEngine::getState ( std::istream &  is  )  [virtual]

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 617 of file RanluxEngine.cc.

References CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.

Referenced by get(), and restoreStatus().

std::string CLHEP::RanluxEngine::name (  )  const [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 60 of file RanluxEngine.cc.

CLHEP::RanluxEngine::operator unsigned int (  )  [virtual]

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 530 of file RanluxEngine.cc.

References CLHEP::HepRandomEngine::exponent_bit_32, and flat().

RanluxEngine & CLHEP::RanluxEngine::operator= ( const RanluxEngine p  ) 

Definition at line 164 of file RanluxEngine.cc.

References carry, count24, float_seed_table, CLHEP::HepRandomEngine::getSeed(), i_lag, j_lag, luxury, nskip, setSeeds(), and CLHEP::HepRandomEngine::theSeed.

std::vector< unsigned long > CLHEP::RanluxEngine::put (  )  const [virtual]

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 563 of file RanluxEngine.cc.

Referenced by put(), and saveStatus().

std::ostream & CLHEP::RanluxEngine::put ( std::ostream &  os  )  const [virtual]

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 537 of file RanluxEngine.cc.

References put(), and CLHEP::HepRandomEngine::theSeed.

void CLHEP::RanluxEngine::restoreStatus ( const char  filename[] = "Ranlux.conf"  )  [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 341 of file RanluxEngine.cc.

References CLHEP::HepRandomEngine::checkFile(), engineName(), getState(), CLHEP::possibleKeywordInput(), CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.

void CLHEP::RanluxEngine::saveStatus ( const char  filename[] = "Ranlux.conf"  )  const [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 308 of file RanluxEngine.cc.

References put(), and CLHEP::HepRandomEngine::theSeed.

void CLHEP::RanluxEngine::setSeed ( long  seed,
int  lux = 3 
) [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 186 of file RanluxEngine.cc.

References CLHEP::HepRandomEngine::theSeed.

Referenced by RanluxEngine(), and setSeeds().

void CLHEP::RanluxEngine::setSeeds ( const long *  seeds,
int  lux = 3 
) [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 242 of file RanluxEngine.cc.

References setSeed(), CLHEP::HepRandomEngine::theSeed, and CLHEP::HepRandomEngine::theSeeds.

Referenced by operator=(), and RanluxEngine().

void CLHEP::RanluxEngine::showStatus (  )  const [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 380 of file RanluxEngine.cc.

References CLHEP::HepRandomEngine::theSeed.


Member Data Documentation

const unsigned int CLHEP::RanluxEngine::VECTOR_STATE_SIZE = 31 [static]

Definition at line 115 of file RanluxEngine.h.

Referenced by getState(), and restoreStatus().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 22:02:32 2010 for CLHEP by  doxygen 1.4.7