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

CLHEP::HepJamesRandom Class Reference

#include <JamesRandom.h>

Inheritance diagram for CLHEP::HepJamesRandom:

CLHEP::HepRandomEngine List of all members.

Public Member Functions

 HepJamesRandom (std::istream &is)
 HepJamesRandom ()
 HepJamesRandom (long seed)
 HepJamesRandom (int rowIndex, int colIndex)
virtual ~HepJamesRandom ()
double flat ()
void flatArray (const int size, double *vect)
void setSeed (long seed, int dum=0)
void setSeeds (const long *seeds, int dum=0)
void saveStatus (const char filename[]="JamesRand.conf") const
void restoreStatus (const char filename[]="JamesRand.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 Public Attributes

static const unsigned int VECTOR_STATE_SIZE = 202

Detailed Description

Author:

Definition at line 45 of file JamesRandom.h.


Constructor & Destructor Documentation

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

Definition at line 101 of file JamesRandom.cc.

CLHEP::HepJamesRandom::HepJamesRandom (  ) 

Definition at line 69 of file JamesRandom.cc.

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

CLHEP::HepJamesRandom::HepJamesRandom ( long  seed  ) 

Definition at line 62 of file JamesRandom.cc.

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

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

Definition at line 85 of file JamesRandom.cc.

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

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

Definition at line 107 of file JamesRandom.cc.


Member Function Documentation

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 362 of file JamesRandom.cc.

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

Definition at line 89 of file JamesRandom.h.

Referenced by restoreStatus().

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

Implements CLHEP::HepRandomEngine.

Definition at line 259 of file JamesRandom.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 284 of file JamesRandom.cc.

References flat().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 410 of file JamesRandom.cc.

References getState().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 345 of file JamesRandom.cc.

References getState().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 419 of file JamesRandom.cc.

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

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 366 of file JamesRandom.cc.

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

Referenced by get(), and restoreStatus().

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

Implements CLHEP::HepRandomEngine.

Definition at line 54 of file JamesRandom.cc.

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 294 of file JamesRandom.cc.

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

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 326 of file JamesRandom.cc.

References CLHEP::DoubConv::dto2longs().

Referenced by put(), and saveStatus().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 299 of file JamesRandom.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 143 of file JamesRandom.cc.

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

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

Implements CLHEP::HepRandomEngine.

Definition at line 109 of file JamesRandom.cc.

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

void CLHEP::HepJamesRandom::setSeed ( long  seed,
int  dum = 0 
) [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 201 of file JamesRandom.cc.

References CLHEP::detail::n, and CLHEP::HepRandomEngine::theSeed.

Referenced by HepJamesRandom(), and setSeeds().

void CLHEP::HepJamesRandom::setSeeds ( const long *  seeds,
int  dum = 0 
) [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 253 of file JamesRandom.cc.

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

Referenced by HepJamesRandom().

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

Implements CLHEP::HepRandomEngine.

Definition at line 185 of file JamesRandom.cc.

References CLHEP::HepRandomEngine::theSeed.


Member Data Documentation

const unsigned int CLHEP::HepJamesRandom::VECTOR_STATE_SIZE = 202 [static]

Definition at line 95 of file JamesRandom.h.

Referenced by 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