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

CLHEP::Ranlux64Engine Class Reference

#include <Ranlux64Engine.h>

Inheritance diagram for CLHEP::Ranlux64Engine:

CLHEP::HepRandomEngine List of all members.

Public Member Functions

 Ranlux64Engine (std::istream &is)
 Ranlux64Engine ()
 Ranlux64Engine (long seed, int lux=1)
 Ranlux64Engine (int rowIndex, int colIndex, int lux)
virtual ~Ranlux64Engine ()
 Ranlux64Engine (const Ranlux64Engine &p)
Ranlux64Engineoperator= (const Ranlux64Engine &p)
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)

Static Public Member Functions

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

Static Public Attributes

static const unsigned int VECTOR_STATE_SIZE = 30

Detailed Description

Author:

Definition at line 50 of file Ranlux64Engine.h.


Constructor & Destructor Documentation

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

Definition at line 125 of file Ranlux64Engine.cc.

CLHEP::Ranlux64Engine::Ranlux64Engine (  ) 

Definition at line 84 of file Ranlux64Engine.cc.

References CLHEP::HepRandom::getTheTableSeeds(), and setSeeds().

CLHEP::Ranlux64Engine::Ranlux64Engine ( long  seed,
int  lux = 1 
)

Definition at line 102 of file Ranlux64Engine.cc.

References setSeeds().

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

Definition at line 111 of file Ranlux64Engine.cc.

References CLHEP::HepRandom::getTheTableSeeds(), and setSeeds().

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

Definition at line 130 of file Ranlux64Engine.cc.

CLHEP::Ranlux64Engine::Ranlux64Engine ( const Ranlux64Engine p  ) 

Definition at line 132 of file Ranlux64Engine.cc.


Member Function Documentation

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 656 of file Ranlux64Engine.cc.

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

Definition at line 99 of file Ranlux64Engine.h.

Referenced by restoreStatus().

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

Implements CLHEP::HepRandomEngine.

Definition at line 155 of file Ranlux64Engine.cc.

Referenced by flatArray().

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

Implements CLHEP::HepRandomEngine.

Definition at line 372 of file Ranlux64Engine.cc.

References flat().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 702 of file Ranlux64Engine.cc.

References getState().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 638 of file Ranlux64Engine.cc.

References getState().

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

Definition at line 90 of file Ranlux64Engine.h.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 711 of file Ranlux64Engine.cc.

References CLHEP::DoubConv::longs2double(), and VECTOR_STATE_SIZE.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 660 of file Ranlux64Engine.cc.

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

Referenced by get(), and restoreStatus().

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

Implements CLHEP::HepRandomEngine.

Definition at line 82 of file Ranlux64Engine.cc.

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

Definition at line 137 of file Ranlux64Engine.cc.

References carry, endIters, index, luxury, pDiscard, pDozens, randoms, CLHEP::HepRandomEngine::theSeed, and CLHEP::HepRandomEngine::theSeeds.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 622 of file Ranlux64Engine.cc.

References CLHEP::DoubConv::dto2longs().

Referenced by put(), and saveStatus().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 597 of file Ranlux64Engine.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 540 of file Ranlux64Engine.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 508 of file Ranlux64Engine.cc.

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

void CLHEP::Ranlux64Engine::setSeed ( long  seed,
int  lux = 1 
) [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 378 of file Ranlux64Engine.cc.

References CLHEP::HepRandomEngine::theSeed.

Referenced by setSeeds().

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

Implements CLHEP::HepRandomEngine.

Definition at line 432 of file Ranlux64Engine.cc.

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

Referenced by Ranlux64Engine().

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

Implements CLHEP::HepRandomEngine.

Definition at line 581 of file Ranlux64Engine.cc.

References CLHEP::HepRandomEngine::theSeed.


Member Data Documentation

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

Definition at line 105 of file Ranlux64Engine.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