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

CLHEP::RanshiEngine Class Reference

#include <RanshiEngine.h>

Inheritance diagram for CLHEP::RanshiEngine:

CLHEP::HepRandomEngine List of all members.

Public Member Functions

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

Detailed Description

Author:

Definition at line 53 of file RanshiEngine.h.


Constructor & Destructor Documentation

CLHEP::RanshiEngine::RanshiEngine (  ) 

Definition at line 62 of file RanshiEngine.cc.

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

Referenced by setSeed().

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

Definition at line 76 of file RanshiEngine.cc.

CLHEP::RanshiEngine::RanshiEngine ( long  seed  ) 

Definition at line 81 of file RanshiEngine.cc.

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

CLHEP::RanshiEngine::RanshiEngine ( int  rowIndex,
int  colIndex 
)

Definition at line 95 of file RanshiEngine.cc.

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

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

Definition at line 109 of file RanshiEngine.cc.

CLHEP::RanshiEngine::RanshiEngine ( const RanshiEngine p  ) 

Definition at line 111 of file RanshiEngine.cc.


Member Function Documentation

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 333 of file RanshiEngine.cc.

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

Definition at line 100 of file RanshiEngine.h.

Referenced by restoreStatus().

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

Implements CLHEP::HepRandomEngine.

Definition at line 129 of file RanshiEngine.cc.

Referenced by flatArray(), and RanshiEngine().

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

Implements CLHEP::HepRandomEngine.

Definition at line 144 of file RanshiEngine.cc.

References flat().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 375 of file RanshiEngine.cc.

References getState().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 316 of file RanshiEngine.cc.

References getState().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 384 of file RanshiEngine.cc.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 337 of file RanshiEngine.cc.

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

Referenced by get(), and restoreStatus().

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

Implements CLHEP::HepRandomEngine.

Definition at line 51 of file RanshiEngine.cc.

CLHEP::RanshiEngine::operator float (  )  [virtual]

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 255 of file RanshiEngine.cc.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 267 of file RanshiEngine.cc.

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

Definition at line 117 of file RanshiEngine.cc.

References buffer, halfBuff, numFlats, and redSpin.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 304 of file RanshiEngine.cc.

Referenced by put(), and saveStatus().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 279 of file RanshiEngine.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 201 of file RanshiEngine.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 171 of file RanshiEngine.cc.

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

void CLHEP::RanshiEngine::setSeed ( long  seed,
int   
) [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 150 of file RanshiEngine.cc.

References RanshiEngine().

void CLHEP::RanshiEngine::setSeeds ( const long *  seeds,
int   
) [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 154 of file RanshiEngine.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 238 of file RanshiEngine.cc.

References CLHEP::HepRandomEngine::theSeed.


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