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 CLHEP::HepRandomEngine CLHEP::HepRandomEngine CLHEP::HepRandomEngine

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)
 
- Public Member Functions inherited from CLHEP::HepRandomEngine
 HepRandomEngine ()
 
virtual ~HepRandomEngine ()
 
bool operator== (const HepRandomEngine &engine)
 
bool operator!= (const HepRandomEngine &engine)
 
long getSeed () const
 
const long * getSeeds () const
 
virtual operator double ()
 
virtual operator float ()
 
 HepRandomEngine ()
 
virtual ~HepRandomEngine ()
 
bool operator== (const HepRandomEngine &engine)
 
bool operator!= (const HepRandomEngine &engine)
 
long getSeed () const
 
const long * getSeeds () const
 
virtual operator double ()
 
virtual operator float ()
 
 HepRandomEngine ()
 
virtual ~HepRandomEngine ()
 
bool operator== (const HepRandomEngine &engine)
 
bool operator!= (const HepRandomEngine &engine)
 
long getSeed () const
 
const long * getSeeds () const
 
virtual operator double ()
 
virtual operator float ()
 
 HepRandomEngine ()
 
virtual ~HepRandomEngine ()
 
bool operator== (const HepRandomEngine &engine)
 
bool operator!= (const HepRandomEngine &engine)
 
long getSeed () const
 
const long * getSeeds () const
 
virtual operator double ()
 
virtual operator float ()
 

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 Member Functions inherited from CLHEP::HepRandomEngine
static std::string beginTag ()
 
static HepRandomEnginenewEngine (std::istream &is)
 
static HepRandomEnginenewEngine (const std::vector< unsigned long > &v)
 
static std::string beginTag ()
 
static HepRandomEnginenewEngine (std::istream &is)
 
static HepRandomEnginenewEngine (const std::vector< unsigned long > &v)
 
static std::string beginTag ()
 
static HepRandomEnginenewEngine (std::istream &is)
 
static HepRandomEnginenewEngine (const std::vector< unsigned long > &v)
 
static std::string beginTag ()
 
static HepRandomEnginenewEngine (std::istream &is)
 
static HepRandomEnginenewEngine (const std::vector< unsigned long > &v)
 

Static Public Attributes

static const unsigned int VECTOR_STATE_SIZE = 202
 

Additional Inherited Members

- Static Protected Member Functions inherited from CLHEP::HepRandomEngine
static double exponent_bit_32 ()
 
static double mantissa_bit_12 ()
 
static double mantissa_bit_24 ()
 
static double mantissa_bit_32 ()
 
static double twoToMinus_32 ()
 
static double twoToMinus_48 ()
 
static double twoToMinus_49 ()
 
static double twoToMinus_53 ()
 
static double nearlyTwoToMinus_54 ()
 
static bool checkFile (std::istream &file, const std::string &filename, const std::string &classname, const std::string &methodname)
 
static double exponent_bit_32 ()
 
static double mantissa_bit_12 ()
 
static double mantissa_bit_24 ()
 
static double mantissa_bit_32 ()
 
static double twoToMinus_32 ()
 
static double twoToMinus_48 ()
 
static double twoToMinus_49 ()
 
static double twoToMinus_53 ()
 
static double nearlyTwoToMinus_54 ()
 
static bool checkFile (std::istream &file, const std::string &filename, const std::string &classname, const std::string &methodname)
 
static double exponent_bit_32 ()
 
static double mantissa_bit_12 ()
 
static double mantissa_bit_24 ()
 
static double mantissa_bit_32 ()
 
static double twoToMinus_32 ()
 
static double twoToMinus_48 ()
 
static double twoToMinus_49 ()
 
static double twoToMinus_53 ()
 
static double nearlyTwoToMinus_54 ()
 
static bool checkFile (std::istream &file, const std::string &filename, const std::string &classname, const std::string &methodname)
 
static double exponent_bit_32 ()
 
static double mantissa_bit_12 ()
 
static double mantissa_bit_24 ()
 
static double mantissa_bit_32 ()
 
static double twoToMinus_32 ()
 
static double twoToMinus_48 ()
 
static double twoToMinus_49 ()
 
static double twoToMinus_53 ()
 
static double nearlyTwoToMinus_54 ()
 
static bool checkFile (std::istream &file, const std::string &filename, const std::string &classname, const std::string &methodname)
 
- Protected Attributes inherited from CLHEP::HepRandomEngine
long theSeed
 
const long * theSeeds
 

Detailed Description

Author

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

Constructor & Destructor Documentation

◆ HepJamesRandom() [1/16]

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

Definition at line 101 of file JamesRandom.cc.

◆ HepJamesRandom() [2/16]

CLHEP::HepJamesRandom::HepJamesRandom ( )

◆ HepJamesRandom() [3/16]

CLHEP::HepJamesRandom::HepJamesRandom ( long seed)

Definition at line 62 of file JamesRandom.cc.

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

◆ HepJamesRandom() [4/16]

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

◆ ~HepJamesRandom() [1/4]

CLHEP::HepJamesRandom::~HepJamesRandom ( )
virtual

Definition at line 107 of file JamesRandom.cc.

◆ HepJamesRandom() [5/16]

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

◆ HepJamesRandom() [6/16]

CLHEP::HepJamesRandom::HepJamesRandom ( )

◆ HepJamesRandom() [7/16]

CLHEP::HepJamesRandom::HepJamesRandom ( long seed)

◆ HepJamesRandom() [8/16]

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

◆ ~HepJamesRandom() [2/4]

virtual CLHEP::HepJamesRandom::~HepJamesRandom ( )
virtual

◆ HepJamesRandom() [9/16]

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

◆ HepJamesRandom() [10/16]

CLHEP::HepJamesRandom::HepJamesRandom ( )

◆ HepJamesRandom() [11/16]

CLHEP::HepJamesRandom::HepJamesRandom ( long seed)

◆ HepJamesRandom() [12/16]

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

◆ ~HepJamesRandom() [3/4]

virtual CLHEP::HepJamesRandom::~HepJamesRandom ( )
virtual

◆ HepJamesRandom() [13/16]

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

◆ HepJamesRandom() [14/16]

CLHEP::HepJamesRandom::HepJamesRandom ( )

◆ HepJamesRandom() [15/16]

CLHEP::HepJamesRandom::HepJamesRandom ( long seed)

◆ HepJamesRandom() [16/16]

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

◆ ~HepJamesRandom() [4/4]

virtual CLHEP::HepJamesRandom::~HepJamesRandom ( )
virtual

Member Function Documentation

◆ beginTag() [1/4]

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

Definition at line 362 of file JamesRandom.cc.

◆ beginTag() [2/4]

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

◆ beginTag() [3/4]

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

◆ beginTag() [4/4]

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

◆ engineName() [1/4]

static std::string CLHEP::HepJamesRandom::engineName ( )
inlinestatic

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

Referenced by restoreStatus().

◆ engineName() [2/4]

static std::string CLHEP::HepJamesRandom::engineName ( )
inlinestatic

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

◆ engineName() [3/4]

static std::string CLHEP::HepJamesRandom::engineName ( )
inlinestatic

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

◆ engineName() [4/4]

static std::string CLHEP::HepJamesRandom::engineName ( )
inlinestatic

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

◆ flat() [1/4]

double CLHEP::HepJamesRandom::flat ( )
virtual

Implements CLHEP::HepRandomEngine.

Definition at line 259 of file JamesRandom.cc.

Referenced by flatArray().

◆ flat() [2/4]

double CLHEP::HepJamesRandom::flat ( )
virtual

◆ flat() [3/4]

double CLHEP::HepJamesRandom::flat ( )
virtual

◆ flat() [4/4]

double CLHEP::HepJamesRandom::flat ( )
virtual

◆ flatArray() [1/4]

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

Implements CLHEP::HepRandomEngine.

Definition at line 284 of file JamesRandom.cc.

References flat().

◆ flatArray() [2/4]

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

◆ flatArray() [3/4]

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

◆ flatArray() [4/4]

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

◆ get() [1/8]

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 410 of file JamesRandom.cc.

References CLHEP::engineIDulong(), and getState().

◆ get() [2/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [3/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [4/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [5/8]

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 345 of file JamesRandom.cc.

References getState().

◆ get() [6/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [7/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [8/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [1/8]

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.

◆ getState() [2/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [3/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [4/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [5/8]

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

◆ getState() [6/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [7/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [8/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ name() [1/4]

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

Implements CLHEP::HepRandomEngine.

Definition at line 54 of file JamesRandom.cc.

◆ name() [2/4]

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

◆ name() [3/4]

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

◆ name() [4/4]

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

◆ operator unsigned int() [1/4]

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 294 of file JamesRandom.cc.

◆ operator unsigned int() [2/4]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ operator unsigned int() [3/4]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ operator unsigned int() [4/4]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [1/8]

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(), and CLHEP::engineIDulong().

Referenced by put(), and saveStatus().

◆ put() [2/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [3/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [4/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [5/8]

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.

◆ put() [6/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [7/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [8/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ restoreStatus() [1/4]

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

◆ restoreStatus() [2/4]

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

◆ restoreStatus() [3/4]

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

◆ restoreStatus() [4/4]

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

◆ saveStatus() [1/4]

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.

◆ saveStatus() [2/4]

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

◆ saveStatus() [3/4]

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

◆ saveStatus() [4/4]

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

◆ setSeed() [1/4]

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

◆ setSeed() [2/4]

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

◆ setSeed() [3/4]

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

◆ setSeed() [4/4]

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

◆ setSeeds() [1/4]

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(), HepJamesRandom(), and HepJamesRandom().

◆ setSeeds() [2/4]

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

◆ setSeeds() [3/4]

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

◆ setSeeds() [4/4]

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

◆ showStatus() [1/4]

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

Implements CLHEP::HepRandomEngine.

Definition at line 185 of file JamesRandom.cc.

References CLHEP::HepRandomEngine::theSeed.

◆ showStatus() [2/4]

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

◆ showStatus() [3/4]

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

◆ showStatus() [4/4]

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

Member Data Documentation

◆ VECTOR_STATE_SIZE

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(), getState(), and restoreStatus().


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