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

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)
 
 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)
 
 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)
 
 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)
 
- 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 = 20
 

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 52 of file RandomObjects/CLHEP/Random/TripleRand.h.

Constructor & Destructor Documentation

◆ TripleRand() [1/16]

CLHEP::TripleRand::TripleRand ( )

Definition at line 58 of file TripleRand.cc.

References CLHEP::HepRandomEngine::theSeed.

◆ TripleRand() [2/16]

CLHEP::TripleRand::TripleRand ( long seed)

Definition at line 68 of file TripleRand.cc.

References CLHEP::HepRandomEngine::theSeed.

◆ TripleRand() [3/16]

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

Definition at line 77 of file TripleRand.cc.

◆ TripleRand() [4/16]

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

Definition at line 83 of file TripleRand.cc.

References CLHEP::HepRandomEngine::theSeed.

◆ ~TripleRand() [1/4]

CLHEP::TripleRand::~TripleRand ( )
virtual

Definition at line 92 of file TripleRand.cc.

◆ TripleRand() [5/16]

CLHEP::TripleRand::TripleRand ( )

◆ TripleRand() [6/16]

CLHEP::TripleRand::TripleRand ( long seed)

◆ TripleRand() [7/16]

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

◆ TripleRand() [8/16]

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

◆ ~TripleRand() [2/4]

virtual CLHEP::TripleRand::~TripleRand ( )
virtual

◆ TripleRand() [9/16]

CLHEP::TripleRand::TripleRand ( )

◆ TripleRand() [10/16]

CLHEP::TripleRand::TripleRand ( long seed)

◆ TripleRand() [11/16]

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

◆ TripleRand() [12/16]

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

◆ ~TripleRand() [3/4]

virtual CLHEP::TripleRand::~TripleRand ( )
virtual

◆ TripleRand() [13/16]

CLHEP::TripleRand::TripleRand ( )

◆ TripleRand() [14/16]

CLHEP::TripleRand::TripleRand ( long seed)

◆ TripleRand() [15/16]

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

◆ TripleRand() [16/16]

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

◆ ~TripleRand() [4/4]

virtual CLHEP::TripleRand::~TripleRand ( )
virtual

Member Function Documentation

◆ beginTag() [1/4]

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

Definition at line 266 of file TripleRand.cc.

◆ beginTag() [2/4]

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

◆ beginTag() [3/4]

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

◆ beginTag() [4/4]

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

◆ engineName() [1/4]

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

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

Referenced by restoreStatus().

◆ engineName() [2/4]

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

Definition at line 95 of file Random/CLHEP/Random/TripleRand.h.

◆ engineName() [3/4]

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

Definition at line 95 of file Random/Random/TripleRand.h.

◆ engineName() [4/4]

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

Definition at line 95 of file RandomObjects/CLHEP/Random/TripleRand.h.

◆ flat() [1/4]

double CLHEP::TripleRand::flat ( )
virtual

◆ flat() [2/4]

double CLHEP::TripleRand::flat ( )
virtual

◆ flat() [3/4]

double CLHEP::TripleRand::flat ( )
virtual

◆ flat() [4/4]

double CLHEP::TripleRand::flat ( )
virtual

◆ flatArray() [1/4]

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

Implements CLHEP::HepRandomEngine.

Definition at line 104 of file TripleRand.cc.

References flat().

◆ flatArray() [2/4]

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

◆ flatArray() [3/4]

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

◆ flatArray() [4/4]

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

◆ get() [1/8]

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 307 of file TripleRand.cc.

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

◆ get() [2/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [3/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [4/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [5/8]

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 249 of file TripleRand.cc.

References getState().

◆ get() [6/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [7/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ get() [8/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [1/8]

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

◆ getState() [2/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [3/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [4/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [5/8]

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

◆ getState() [6/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [7/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ getState() [8/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ name() [1/4]

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

Implements CLHEP::HepRandomEngine.

Definition at line 56 of file TripleRand.cc.

◆ name() [2/4]

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

◆ name() [3/4]

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

◆ name() [4/4]

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

◆ operator float() [1/4]

CLHEP::TripleRand::operator float ( )
virtual

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 199 of file TripleRand.cc.

◆ operator float() [2/4]

CLHEP::TripleRand::operator float ( )
virtual

Reimplemented from CLHEP::HepRandomEngine.

◆ operator float() [3/4]

CLHEP::TripleRand::operator float ( )
virtual

Reimplemented from CLHEP::HepRandomEngine.

◆ operator float() [4/4]

CLHEP::TripleRand::operator float ( )
virtual

Reimplemented from CLHEP::HepRandomEngine.

◆ operator unsigned int() [1/4]

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 206 of file TripleRand.cc.

◆ operator unsigned int() [2/4]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ operator unsigned int() [3/4]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ operator unsigned int() [4/4]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [1/8]

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 237 of file TripleRand.cc.

References CLHEP::engineIDulong(), and CLHEP::Hurd288Engine::put().

Referenced by put(), and saveStatus().

◆ put() [2/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [3/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [4/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [5/8]

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.

◆ put() [6/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [7/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ put() [8/8]

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

Reimplemented from CLHEP::HepRandomEngine.

◆ restoreStatus() [1/4]

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

◆ restoreStatus() [2/4]

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

◆ restoreStatus() [3/4]

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

◆ restoreStatus() [4/4]

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

◆ saveStatus() [1/4]

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.

◆ saveStatus() [2/4]

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

◆ saveStatus() [3/4]

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

◆ saveStatus() [4/4]

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

◆ setSeed() [1/4]

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

◆ setSeed() [2/4]

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

◆ setSeed() [3/4]

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

◆ setSeed() [4/4]

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

◆ setSeeds() [1/4]

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.

◆ setSeeds() [2/4]

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

◆ setSeeds() [3/4]

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

◆ setSeeds() [4/4]

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

◆ showStatus() [1/4]

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

Implements CLHEP::HepRandomEngine.

Definition at line 185 of file TripleRand.cc.

References CLHEP::HepRandomEngine::theSeed.

◆ showStatus() [2/4]

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

◆ showStatus() [3/4]

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

◆ showStatus() [4/4]

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

Member Data Documentation

◆ VECTOR_STATE_SIZE

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

Definition at line 101 of file Matrix/CLHEP/Random/TripleRand.h.

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


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