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

CLHEP::RanecuEngine Class Reference

#include <RanecuEngine.h>

Inheritance diagram for CLHEP::RanecuEngine:

CLHEP::HepRandomEngine List of all members.

Public Member Functions

 RanecuEngine (std::istream &is)
 RanecuEngine ()
 RanecuEngine (int index)
virtual ~RanecuEngine ()
 RanecuEngine (const RanecuEngine &p)
RanecuEngineoperator= (const RanecuEngine &p)
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)

Static Public Member Functions

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

Protected Attributes

const int ecuyer_a
const int ecuyer_b
const int ecuyer_c
const int ecuyer_d
const int ecuyer_e
const int ecuyer_f
const int shift1
const int shift2
const double prec

Static Protected Attributes

static const unsigned int VECTOR_STATE_SIZE = 4

Detailed Description

Author:
<Gabriele.Cosmo@cern.ch>

Definition at line 48 of file RanecuEngine.h.


Constructor & Destructor Documentation

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

Definition at line 102 of file RanecuEngine.cc.

CLHEP::RanecuEngine::RanecuEngine (  ) 

Definition at line 63 of file RanecuEngine.cc.

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

CLHEP::RanecuEngine::RanecuEngine ( int  index  ) 

Definition at line 83 of file RanecuEngine.cc.

References CLHEP::HepRandom::getTheTableSeeds(), shift1, CLHEP::HepRandomEngine::theSeed, and CLHEP::HepRandomEngine::theSeeds.

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

Definition at line 111 of file RanecuEngine.cc.

CLHEP::RanecuEngine::RanecuEngine ( const RanecuEngine p  ) 

Definition at line 113 of file RanecuEngine.cc.

References CLHEP::HepRandomEngine::getSeed(), seq, table, CLHEP::HepRandomEngine::theSeed, and CLHEP::HepRandomEngine::theSeeds.


Member Function Documentation

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 370 of file RanecuEngine.cc.

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

Definition at line 103 of file RanecuEngine.h.

Referenced by restoreStatus().

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

Implements CLHEP::HepRandomEngine.

Definition at line 250 of file RanecuEngine.cc.

References ecuyer_a, ecuyer_b, ecuyer_c, ecuyer_d, ecuyer_e, ecuyer_f, prec, shift1, and shift2.

Referenced by useSeed().

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

Implements CLHEP::HepRandomEngine.

Definition at line 273 of file RanecuEngine.cc.

References double, ecuyer_a, ecuyer_b, ecuyer_c, ecuyer_d, ecuyer_e, ecuyer_f, prec, shift1, and shift2.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 413 of file RanecuEngine.cc.

References getState().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 351 of file RanecuEngine.cc.

References getState().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 422 of file RanecuEngine.cc.

References CLHEP::HepRandomEngine::theSeed, and VECTOR_STATE_SIZE.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 374 of file RanecuEngine.cc.

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

Referenced by get(), and restoreStatus().

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

Implements CLHEP::HepRandomEngine.

Definition at line 52 of file RanecuEngine.cc.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 300 of file RanecuEngine.cc.

References ecuyer_a, ecuyer_b, ecuyer_c, ecuyer_d, ecuyer_e, ecuyer_f, shift1, and shift2.

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

Definition at line 129 of file RanecuEngine.cc.

References CLHEP::HepRandomEngine::getSeed(), seq, table, CLHEP::HepRandomEngine::theSeed, and CLHEP::HepRandomEngine::theSeeds.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 342 of file RanecuEngine.cc.

References CLHEP::HepRandomEngine::theSeed.

Referenced by put(), and saveStatus().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 321 of file RanecuEngine.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 202 of file RanecuEngine.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 171 of file RanecuEngine.cc.

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

void CLHEP::RanecuEngine::setIndex ( long  index  ) 

Definition at line 164 of file RanecuEngine.cc.

References CLHEP::HepRandomEngine::theSeed, and CLHEP::HepRandomEngine::theSeeds.

void CLHEP::RanecuEngine::setSeed ( long  index,
int  dum = 0 
) [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 142 of file RanecuEngine.cc.

References CLHEP::HepRandom::getTheTableSeeds(), shift1, shift2, CLHEP::HepRandomEngine::theSeed, and CLHEP::HepRandomEngine::theSeeds.

Referenced by useSeed().

void CLHEP::RanecuEngine::setSeeds ( const long *  seeds,
int  index = -1 
) [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 152 of file RanecuEngine.cc.

References shift1, shift2, CLHEP::HepRandomEngine::theSeed, and CLHEP::HepRandomEngine::theSeeds.

Referenced by useSeed().

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

Implements CLHEP::HepRandomEngine.

Definition at line 239 of file RanecuEngine.cc.

References CLHEP::HepRandomEngine::theSeed.


Member Data Documentation

const int CLHEP::RanecuEngine::ecuyer_a [protected]

Definition at line 113 of file RanecuEngine.h.

Referenced by flat(), flatArray(), and operator unsigned int().

const int CLHEP::RanecuEngine::ecuyer_b [protected]

Definition at line 113 of file RanecuEngine.h.

Referenced by flat(), flatArray(), and operator unsigned int().

const int CLHEP::RanecuEngine::ecuyer_c [protected]

Definition at line 113 of file RanecuEngine.h.

Referenced by flat(), flatArray(), and operator unsigned int().

const int CLHEP::RanecuEngine::ecuyer_d [protected]

Definition at line 113 of file RanecuEngine.h.

Referenced by flat(), flatArray(), and operator unsigned int().

const int CLHEP::RanecuEngine::ecuyer_e [protected]

Definition at line 113 of file RanecuEngine.h.

Referenced by flat(), flatArray(), and operator unsigned int().

const int CLHEP::RanecuEngine::ecuyer_f [protected]

Definition at line 113 of file RanecuEngine.h.

Referenced by flat(), flatArray(), and operator unsigned int().

const double CLHEP::RanecuEngine::prec [protected]

Definition at line 115 of file RanecuEngine.h.

Referenced by flat(), and flatArray().

const int CLHEP::RanecuEngine::shift1 [protected]

Definition at line 114 of file RanecuEngine.h.

Referenced by flat(), flatArray(), operator unsigned int(), RanecuEngine(), setSeed(), and setSeeds().

const int CLHEP::RanecuEngine::shift2 [protected]

Definition at line 114 of file RanecuEngine.h.

Referenced by flat(), flatArray(), operator unsigned int(), setSeed(), and setSeeds().

const unsigned int CLHEP::RanecuEngine::VECTOR_STATE_SIZE = 4 [static, protected]

Definition at line 117 of file RanecuEngine.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