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

Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
CLHEP::DualRand Class Reference

#include <DualRand.h>

Inheritance diagram for CLHEP::DualRand:
CLHEP::HepRandomEngine CLHEP::HepRandomEngine CLHEP::HepRandomEngine CLHEP::HepRandomEngine

Public Member Functions

 DualRand ()
 
 DualRand (long seed)
 
 DualRand (std::istream &is)
 
 DualRand (int rowIndex, int colIndex)
 
virtual ~DualRand ()
 
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[]="DualRand.conf") const
 
void restoreStatus (const char filename[]="DualRand.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)
 
 DualRand ()
 
 DualRand (long seed)
 
 DualRand (std::istream &is)
 
 DualRand (int rowIndex, int colIndex)
 
virtual ~DualRand ()
 
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[]="DualRand.conf") const
 
void restoreStatus (const char filename[]="DualRand.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)
 
 DualRand ()
 
 DualRand (long seed)
 
 DualRand (std::istream &is)
 
 DualRand (int rowIndex, int colIndex)
 
virtual ~DualRand ()
 
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[]="DualRand.conf") const
 
void restoreStatus (const char filename[]="DualRand.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)
 
 DualRand ()
 
 DualRand (long seed)
 
 DualRand (std::istream &is)
 
 DualRand (int rowIndex, int colIndex)
 
virtual ~DualRand ()
 
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[]="DualRand.conf") const
 
void restoreStatus (const char filename[]="DualRand.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)
 
- 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 ()
 
 HepRandomEngine ()
 
virtual ~HepRandomEngine ()
 
bool operator== (const HepRandomEngine &engine)
 
bool operator!= (const HepRandomEngine &engine)
 
long getSeed () const
 
const long * getSeeds () const
 
virtual operator double ()
 
 HepRandomEngine ()
 
virtual ~HepRandomEngine ()
 
bool operator== (const HepRandomEngine &engine)
 
bool operator!= (const HepRandomEngine &engine)
 
long getSeed () const
 
const long * getSeeds () const
 
virtual operator double ()
 
 HepRandomEngine ()
 
virtual ~HepRandomEngine ()
 
bool operator== (const HepRandomEngine &engine)
 
bool operator!= (const HepRandomEngine &engine)
 
long getSeed () const
 
const long * getSeeds () const
 
virtual operator double ()
 

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 = 9
 

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 51 of file Matrix/CLHEP/Random/DualRand.h.

Constructor & Destructor Documentation

◆ DualRand() [1/16]

CLHEP::DualRand::DualRand ( )

Definition at line 74 of file DualRand.cc.

References CLHEP::HepRandomEngine::theSeed.

◆ DualRand() [2/16]

CLHEP::DualRand::DualRand ( long  seed)

Definition at line 83 of file DualRand.cc.

References CLHEP::HepRandomEngine::theSeed.

◆ DualRand() [3/16]

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

Definition at line 91 of file DualRand.cc.

◆ DualRand() [4/16]

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

Definition at line 97 of file DualRand.cc.

References CLHEP::HepRandomEngine::theSeed.

◆ ~DualRand() [1/4]

CLHEP::DualRand::~DualRand ( )
virtual

Definition at line 105 of file DualRand.cc.

◆ DualRand() [5/16]

CLHEP::DualRand::DualRand ( )

◆ DualRand() [6/16]

CLHEP::DualRand::DualRand ( long  seed)

◆ DualRand() [7/16]

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

◆ DualRand() [8/16]

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

◆ ~DualRand() [2/4]

virtual CLHEP::DualRand::~DualRand ( )
virtual

◆ DualRand() [9/16]

CLHEP::DualRand::DualRand ( )

◆ DualRand() [10/16]

CLHEP::DualRand::DualRand ( long  seed)

◆ DualRand() [11/16]

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

◆ DualRand() [12/16]

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

◆ ~DualRand() [3/4]

virtual CLHEP::DualRand::~DualRand ( )
virtual

◆ DualRand() [13/16]

CLHEP::DualRand::DualRand ( )

◆ DualRand() [14/16]

CLHEP::DualRand::DualRand ( long  seed)

◆ DualRand() [15/16]

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

◆ DualRand() [16/16]

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

◆ ~DualRand() [4/4]

virtual CLHEP::DualRand::~DualRand ( )
virtual

Member Function Documentation

◆ beginTag() [1/4]

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

Definition at line 268 of file DualRand.cc.

◆ beginTag() [2/4]

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

◆ beginTag() [3/4]

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

◆ beginTag() [4/4]

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

◆ engineName() [1/4]

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

Definition at line 97 of file Random/CLHEP/Random/DualRand.h.

References getState(), put(), and VECTOR_STATE_SIZE.

◆ engineName() [2/4]

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

Definition at line 97 of file RandomObjects/CLHEP/Random/DualRand.h.

References getState(), put(), and VECTOR_STATE_SIZE.

◆ engineName() [3/4]

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

Definition at line 97 of file Random/Random/DualRand.h.

References getState(), put(), and VECTOR_STATE_SIZE.

◆ engineName() [4/4]

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

Definition at line 97 of file Matrix/CLHEP/Random/DualRand.h.

References getState(), and put().

Referenced by restoreStatus().

◆ flat() [1/4]

double CLHEP::DualRand::flat ( )
virtual

◆ flat() [2/4]

double CLHEP::DualRand::flat ( )
virtual

◆ flat() [3/4]

double CLHEP::DualRand::flat ( )
virtual

◆ flat() [4/4]

double CLHEP::DualRand::flat ( )
virtual

◆ flatArray() [1/4]

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

Implements CLHEP::HepRandomEngine.

Definition at line 116 of file DualRand.cc.

References flat().

◆ flatArray() [2/4]

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

◆ flatArray() [3/4]

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

◆ flatArray() [4/4]

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

◆ get() [1/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [2/8]

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 251 of file DualRand.cc.

References getState().

◆ get() [3/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [4/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [5/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [6/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [7/8]

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 308 of file DualRand.cc.

References getState(), and VECTOR_STATE_SIZE.

◆ get() [8/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [1/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [2/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [3/8]

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 272 of file DualRand.cc.

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

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

◆ getState() [4/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [5/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [6/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [7/8]

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 322 of file DualRand.cc.

◆ getState() [8/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ name() [1/4]

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

◆ name() [2/4]

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

◆ name() [3/4]

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

◆ name() [4/4]

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

Implements CLHEP::HepRandomEngine.

Definition at line 63 of file DualRand.cc.

◆ operator float() [1/4]

CLHEP::DualRand::operator float ( )
virtual

Reimplemented from CLHEP::HepRandomEngine.

◆ operator float() [2/4]

CLHEP::DualRand::operator float ( )
virtual

Reimplemented from CLHEP::HepRandomEngine.

◆ operator float() [3/4]

CLHEP::DualRand::operator float ( )
virtual

◆ operator float() [4/4]

CLHEP::DualRand::operator float ( )
virtual

Reimplemented from CLHEP::HepRandomEngine.

◆ operator unsigned int() [1/4]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ operator unsigned int() [2/4]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ operator unsigned int() [3/4]

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 218 of file DualRand.cc.

◆ operator unsigned int() [4/4]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [1/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [2/8]

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 222 of file DualRand.cc.

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

◆ put() [3/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [4/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [5/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [6/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [7/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [8/8]

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 243 of file DualRand.cc.

Referenced by engineName(), put(), and saveStatus().

◆ restoreStatus() [1/4]

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

◆ restoreStatus() [2/4]

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

◆ restoreStatus() [3/4]

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

◆ restoreStatus() [4/4]

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

◆ saveStatus() [1/4]

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

◆ saveStatus() [2/4]

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

◆ saveStatus() [3/4]

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

Implements CLHEP::HepRandomEngine.

Definition at line 133 of file DualRand.cc.

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

◆ saveStatus() [4/4]

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

◆ setSeed() [1/4]

void CLHEP::DualRand::setSeed ( long  seed,
int   
)
virtual

◆ setSeed() [2/4]

void CLHEP::DualRand::setSeed ( long  seed,
int   
)
virtual

◆ setSeed() [3/4]

void CLHEP::DualRand::setSeed ( long  seed,
int   
)
virtual

Implements CLHEP::HepRandomEngine.

Definition at line 122 of file DualRand.cc.

References CLHEP::HepRandomEngine::theSeed.

Referenced by setSeeds().

◆ setSeed() [4/4]

void CLHEP::DualRand::setSeed ( long  seed,
int   
)
virtual

◆ setSeeds() [1/4]

void CLHEP::DualRand::setSeeds ( const long *  seeds,
int   
)
virtual

◆ setSeeds() [2/4]

void CLHEP::DualRand::setSeeds ( const long *  seeds,
int   
)
virtual

Implements CLHEP::HepRandomEngine.

Definition at line 128 of file DualRand.cc.

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

◆ setSeeds() [3/4]

void CLHEP::DualRand::setSeeds ( const long *  seeds,
int   
)
virtual

◆ setSeeds() [4/4]

void CLHEP::DualRand::setSeeds ( const long *  seeds,
int   
)
virtual

◆ showStatus() [1/4]

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

◆ showStatus() [2/4]

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

Implements CLHEP::HepRandomEngine.

Definition at line 197 of file DualRand.cc.

References CLHEP::HepRandomEngine::theSeed.

◆ showStatus() [3/4]

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

◆ showStatus() [4/4]

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

Member Data Documentation

◆ VECTOR_STATE_SIZE

static const unsigned int CLHEP::DualRand::VECTOR_STATE_SIZE = 9
static

Definition at line 103 of file Matrix/CLHEP/Random/DualRand.h.

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


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