CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

Public Member Functions | Static Public Member Functions | Static Protected Attributes
CLHEP::RanecuEngine Class Reference

#include <RanecuEngine.h>

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

List of all members.

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

Static Public Member Functions

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

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

Detailed Description

Author:
<Gabriele.Cosmo@cern.ch>

Definition at line 48 of file Matrix/CLHEP/Random/RanecuEngine.h.


Constructor & Destructor Documentation

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

Definition at line 98 of file RanecuEngine.cc.

Definition at line 104 of file RanecuEngine.cc.

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

Member Function Documentation

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 334 of file RanecuEngine.cc.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Definition at line 97 of file Random/CLHEP/Random/RanecuEngine.h.

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

Definition at line 97 of file RandomObjects/CLHEP/Random/RanecuEngine.h.

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

Definition at line 97 of file Random/Random/RanecuEngine.h.

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

Definition at line 97 of file Matrix/CLHEP/Random/RanecuEngine.h.

Referenced by restoreStatus().

Implements CLHEP::HepRandomEngine.

Definition at line 214 of file RanecuEngine.cc.

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

Referenced by useSeed().

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

Implements CLHEP::HepRandomEngine.

Definition at line 237 of file RanecuEngine.cc.

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

void CLHEP::RanecuEngine::flatArray ( const int  size,
double vect 
) [virtual]
void CLHEP::RanecuEngine::flatArray ( const int  size,
double vect 
) [virtual]
void CLHEP::RanecuEngine::flatArray ( const int  size,
double vect 
) [virtual]
virtual std::istream& CLHEP::RanecuEngine::get ( std::istream &  is) [virtual]

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 315 of file RanecuEngine.cc.

References getState().

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

Reimplemented from CLHEP::HepRandomEngine.

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.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 377 of file RanecuEngine.cc.

References getState().

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 338 of file RanecuEngine.cc.

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

Referenced by get(), and restoreStatus().

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 386 of file RanecuEngine.cc.

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

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

Reimplemented from CLHEP::HepRandomEngine.

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

Implements CLHEP::HepRandomEngine.

Definition at line 54 of file RanecuEngine.cc.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 264 of file RanecuEngine.cc.

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

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 285 of file RanecuEngine.cc.

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

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

Reimplemented from CLHEP::HepRandomEngine.

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.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 306 of file RanecuEngine.cc.

References CLHEP::HepRandomEngine::theSeed.

Referenced by put(), and saveStatus().

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

Implements CLHEP::HepRandomEngine.

Definition at line 135 of file RanecuEngine.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 116 of file RanecuEngine.cc.

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

Referenced by useSeed().

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

Implements CLHEP::HepRandomEngine.

Definition at line 203 of file RanecuEngine.cc.

References CLHEP::HepRandomEngine::theSeed.


Member Data Documentation

static const int CLHEP::RanecuEngine::ecuyer_a = 40014 [static, protected]

Definition at line 107 of file Matrix/CLHEP/Random/RanecuEngine.h.

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

static const int CLHEP::RanecuEngine::ecuyer_b = 53668 [static, protected]

Definition at line 108 of file Matrix/CLHEP/Random/RanecuEngine.h.

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

static const int CLHEP::RanecuEngine::ecuyer_c = 12211 [static, protected]

Definition at line 109 of file Matrix/CLHEP/Random/RanecuEngine.h.

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

static const int CLHEP::RanecuEngine::ecuyer_d = 40692 [static, protected]

Definition at line 110 of file Matrix/CLHEP/Random/RanecuEngine.h.

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

static const int CLHEP::RanecuEngine::ecuyer_e = 52774 [static, protected]

Definition at line 111 of file Matrix/CLHEP/Random/RanecuEngine.h.

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

static const int CLHEP::RanecuEngine::ecuyer_f = 3791 [static, protected]

Definition at line 112 of file Matrix/CLHEP/Random/RanecuEngine.h.

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

static const int CLHEP::RanecuEngine::shift1 = 2147483563 [static, protected]
static const int CLHEP::RanecuEngine::shift2 = 2147483399 [static, protected]
static const unsigned int CLHEP::RanecuEngine::VECTOR_STATE_SIZE = 4 [static, protected]

Definition at line 116 of file Matrix/CLHEP/Random/RanecuEngine.h.

Referenced by getState(), and restoreStatus().


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