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

Public Member Functions | Static Public Member Functions | Static Public Attributes
CLHEP::HepJamesRandom Class Reference

#include <JamesRandom.h>

Inheritance diagram for CLHEP::HepJamesRandom:
CLHEP::HepRandomEngine CLHEP::HepRandomEngine CLHEP::HepRandomEngine 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)
 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)
 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)
 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 std::string beginTag ()
static std::string engineName ()
static std::string beginTag ()
static std::string engineName ()
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 Matrix/CLHEP/Random/JamesRandom.h.


Constructor & Destructor Documentation

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

Definition at line 101 of file JamesRandom.cc.

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 107 of file JamesRandom.cc.

CLHEP::HepJamesRandom::HepJamesRandom ( std::istream &  is)
CLHEP::HepJamesRandom::HepJamesRandom ( int  rowIndex,
int  colIndex 
)
CLHEP::HepJamesRandom::HepJamesRandom ( std::istream &  is)
CLHEP::HepJamesRandom::HepJamesRandom ( int  rowIndex,
int  colIndex 
)
CLHEP::HepJamesRandom::HepJamesRandom ( std::istream &  is)
CLHEP::HepJamesRandom::HepJamesRandom ( int  rowIndex,
int  colIndex 
)

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::beginTag ( ) [static]

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Definition at line 89 of file RandomObjects/CLHEP/Random/JamesRandom.h.

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

Definition at line 89 of file Random/Random/JamesRandom.h.

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

Definition at line 89 of file Matrix/CLHEP/Random/JamesRandom.h.

Referenced by restoreStatus().

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

Definition at line 89 of file Random/CLHEP/Random/JamesRandom.h.

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]
void CLHEP::HepJamesRandom::flatArray ( const int  size,
double vect 
) [virtual]
void CLHEP::HepJamesRandom::flatArray ( const int  size,
double vect 
) [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 284 of file JamesRandom.cc.

References flat().

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 345 of file JamesRandom.cc.

References getState().

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Implements CLHEP::HepRandomEngine.

Definition at line 54 of file JamesRandom.cc.

std::string CLHEP::HepJamesRandom::name ( ) const [virtual]
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().

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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::vector<unsigned long> CLHEP::HepJamesRandom::put ( ) const [virtual]

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

void CLHEP::HepJamesRandom::restoreStatus ( const char  filename[] = "JamesRand.conf") [virtual]
void CLHEP::HepJamesRandom::restoreStatus ( const char  filename[] = "JamesRand.conf") [virtual]
void CLHEP::HepJamesRandom::restoreStatus ( const char  filename[] = "JamesRand.conf") [virtual]
void CLHEP::HepJamesRandom::restoreStatus ( const char  filename[] = "JamesRand.conf") [virtual]
void CLHEP::HepJamesRandom::saveStatus ( const char  filename[] = "JamesRand.conf") const [virtual]
void CLHEP::HepJamesRandom::saveStatus ( const char  filename[] = "JamesRand.conf") const [virtual]
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::saveStatus ( const char  filename[] = "JamesRand.conf") const [virtual]
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::setSeed ( long  seed,
int  dum = 0 
) [virtual]
void CLHEP::HepJamesRandom::setSeed ( long  seed,
int  dum = 0 
) [virtual]
void CLHEP::HepJamesRandom::setSeed ( long  seed,
int  dum = 0 
) [virtual]
void CLHEP::HepJamesRandom::setSeeds ( const long *  seeds,
int  dum = 0 
) [virtual]
void CLHEP::HepJamesRandom::setSeeds ( const long *  seeds,
int  dum = 0 
) [virtual]
void CLHEP::HepJamesRandom::setSeeds ( const long *  seeds,
int  dum = 0 
) [virtual]
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]
void CLHEP::HepJamesRandom::showStatus ( ) const [virtual]
void CLHEP::HepJamesRandom::showStatus ( ) const [virtual]
void CLHEP::HepJamesRandom::showStatus ( ) const [virtual]

Implements CLHEP::HepRandomEngine.

Definition at line 185 of file JamesRandom.cc.

References CLHEP::HepRandomEngine::theSeed.


Member Data Documentation

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

Definition at line 95 of file Matrix/CLHEP/Random/JamesRandom.h.

Referenced by getState(), and restoreStatus().


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