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

CLHEP::TripleRand Class Reference

#include <TripleRand.h>

Inheritance diagram for CLHEP::TripleRand:

CLHEP::HepRandomEngine List of all members.

Public Member Functions

 TripleRand ()
 TripleRand (long seed)
 TripleRand (std::istream &is)
 TripleRand (int rowIndex, int colIndex)
virtual ~TripleRand ()
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[]="TripleRand.conf") const
void restoreStatus (const char filename[]="TripleRand.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 ()

Static Public Attributes

static const unsigned int VECTOR_STATE_SIZE = 20

Classes

class  IntegerCong
class  Tausworthe

Detailed Description

Author:

Definition at line 52 of file TripleRand.h.


Constructor & Destructor Documentation

CLHEP::TripleRand::TripleRand (  ) 

Definition at line 58 of file TripleRand.cc.

References CLHEP::HepRandomEngine::theSeed.

CLHEP::TripleRand::TripleRand ( long  seed  ) 

Definition at line 68 of file TripleRand.cc.

References CLHEP::HepRandomEngine::theSeed.

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

Definition at line 77 of file TripleRand.cc.

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

Definition at line 83 of file TripleRand.cc.

References CLHEP::HepRandomEngine::theSeed.

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

Definition at line 92 of file TripleRand.cc.


Member Function Documentation

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 266 of file TripleRand.cc.

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

Definition at line 95 of file TripleRand.h.

Referenced by restoreStatus().

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

Implements CLHEP::HepRandomEngine.

Definition at line 94 of file TripleRand.cc.

References CLHEP::HepRandomEngine::nearlyTwoToMinus_54(), CLHEP::HepRandomEngine::twoToMinus_32(), and CLHEP::HepRandomEngine::twoToMinus_53().

Referenced by flatArray().

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

Implements CLHEP::HepRandomEngine.

Definition at line 104 of file TripleRand.cc.

References flat().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 307 of file TripleRand.cc.

References getState(), and VECTOR_STATE_SIZE.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 249 of file TripleRand.cc.

References getState().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 321 of file TripleRand.cc.

References CLHEP::Hurd288Engine::get().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 270 of file TripleRand.cc.

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

Referenced by get(), and restoreStatus().

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

Implements CLHEP::HepRandomEngine.

Definition at line 56 of file TripleRand.cc.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 199 of file TripleRand.cc.

References CLHEP::HepRandomEngine::nearlyTwoToMinus_54(), and CLHEP::HepRandomEngine::twoToMinus_32().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 206 of file TripleRand.cc.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 237 of file TripleRand.cc.

References CLHEP::Hurd288Engine::put().

Referenced by put(), and saveStatus().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 215 of file TripleRand.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 149 of file TripleRand.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 122 of file TripleRand.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 110 of file TripleRand.cc.

References CLHEP::HepRandomEngine::theSeed.

Referenced by setSeeds().

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

Implements CLHEP::HepRandomEngine.

Definition at line 117 of file TripleRand.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 185 of file TripleRand.cc.

References CLHEP::HepRandomEngine::theSeed.


Member Data Documentation

const unsigned int CLHEP::TripleRand::VECTOR_STATE_SIZE = 20 [static]

Definition at line 101 of file TripleRand.h.

Referenced by get(), getState(), and restoreStatus().


The documentation for this class was generated from the following files:
Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7