CLHEP 2.4.7.1
C++ Class Library for High Energy Physics
CLHEP::HepRandomEngine Class Referenceabstract

#include <CLHEP/Random/RandomEngine.h>

Inheritance diagram for CLHEP::HepRandomEngine:
CLHEP::DRand48Engine CLHEP::DualRand CLHEP::HepJamesRandom CLHEP::Hurd160Engine CLHEP::Hurd288Engine CLHEP::MTwistEngine CLHEP::MixMaxRng CLHEP::NonRandomEngine CLHEP::RandEngine CLHEP::RanecuEngine CLHEP::Ranlux64Engine CLHEP::RanluxEngine CLHEP::RanluxppEngine CLHEP::RanshiEngine CLHEP::TripleRand

Public Member Functions

 HepRandomEngine ()
virtual ~HepRandomEngine ()
bool operator== (const HepRandomEngine &engine)
bool operator!= (const HepRandomEngine &engine)
virtual double flat ()=0
virtual void flatArray (const int size, double *vect)=0
virtual void setSeed (long seed, int)=0
virtual void setSeeds (const long *seeds, int)=0
virtual void saveStatus (const char filename[]="Config.conf") const =0
virtual void restoreStatus (const char filename[]="Config.conf")=0
virtual void showStatus () const =0
virtual std::string name () const =0
virtual std::ostream & put (std::ostream &os) const
virtual std::istream & get (std::istream &is)
virtual std::istream & getState (std::istream &is)
virtual std::vector< unsigned long > put () const
virtual bool get (const std::vector< unsigned long > &v)
virtual bool getState (const std::vector< unsigned long > &v)
long getSeed () const
const long * getSeeds () const
virtual operator double ()
virtual operator float ()
virtual operator unsigned int ()

Static Public Member Functions

static std::string beginTag ()
static HepRandomEnginenewEngine (std::istream &is)
static HepRandomEnginenewEngine (const std::vector< unsigned long > &v)

Static Protected Member Functions

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

long theSeed
const long * theSeeds

Detailed Description

Constructor & Destructor Documentation

◆ HepRandomEngine()

CLHEP::HepRandomEngine::HepRandomEngine ( )

◆ ~HepRandomEngine()

virtual CLHEP::HepRandomEngine::~HepRandomEngine ( )
virtual

References HepRandomEngine().

Member Function Documentation

◆ beginTag()

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

◆ checkFile()

bool CLHEP::HepRandomEngine::checkFile ( std::istream & file,
const std::string & filename,
const std::string & classname,
const std::string & methodname )
staticprotected

◆ exponent_bit_32()

double CLHEP::HepRandomEngine::exponent_bit_32 ( )
inlinestaticprotected

Definition at line 29 of file RandomEngine.icc.

References exponent_bit_32().

Referenced by exponent_bit_32().

◆ flat()

◆ flatArray()

◆ get() [1/2]

◆ get() [2/2]

◆ getSeed()

long CLHEP::HepRandomEngine::getSeed ( ) const
inline

Definition at line 114 of file RandomEngine.h.

References theSeed.

◆ getSeeds()

const long * CLHEP::HepRandomEngine::getSeeds ( ) const
inline

Definition at line 117 of file RandomEngine.h.

References theSeeds.

◆ getState() [1/2]

◆ getState() [2/2]

◆ mantissa_bit_12()

double CLHEP::HepRandomEngine::mantissa_bit_12 ( )
inlinestaticprotected

Definition at line 34 of file RandomEngine.icc.

References mantissa_bit_12().

Referenced by mantissa_bit_12().

◆ mantissa_bit_24()

double CLHEP::HepRandomEngine::mantissa_bit_24 ( )
inlinestaticprotected

Definition at line 39 of file RandomEngine.icc.

References mantissa_bit_24().

Referenced by mantissa_bit_24().

◆ mantissa_bit_32()

double CLHEP::HepRandomEngine::mantissa_bit_32 ( )
inlinestaticprotected

◆ name()

◆ nearlyTwoToMinus_54()

double CLHEP::HepRandomEngine::nearlyTwoToMinus_54 ( )
inlinestaticprotected

Definition at line 64 of file RandomEngine.icc.

References nearlyTwoToMinus_54().

Referenced by nearlyTwoToMinus_54().

◆ newEngine() [1/2]

HepRandomEngine * CLHEP::HepRandomEngine::newEngine ( const std::vector< unsigned long > & v)
static

References HepRandomEngine().

◆ newEngine() [2/2]

HepRandomEngine * CLHEP::HepRandomEngine::newEngine ( std::istream & is)
static

References HepRandomEngine().

◆ operator double()

◆ operator float()

◆ operator unsigned int()

◆ operator!=()

bool CLHEP::HepRandomEngine::operator!= ( const HepRandomEngine & engine)
inline

Definition at line 25 of file RandomEngine.icc.

References HepRandomEngine().

◆ operator==()

bool CLHEP::HepRandomEngine::operator== ( const HepRandomEngine & engine)
inline

Definition at line 21 of file RandomEngine.icc.

References HepRandomEngine().

◆ put() [1/2]

◆ put() [2/2]

◆ restoreStatus()

◆ saveStatus()

◆ setSeed()

◆ setSeeds()

◆ showStatus()

◆ twoToMinus_32()

double CLHEP::HepRandomEngine::twoToMinus_32 ( )
inlinestaticprotected

Definition at line 44 of file RandomEngine.icc.

References twoToMinus_32().

Referenced by twoToMinus_32().

◆ twoToMinus_48()

double CLHEP::HepRandomEngine::twoToMinus_48 ( )
inlinestaticprotected

Definition at line 49 of file RandomEngine.icc.

References twoToMinus_48().

Referenced by twoToMinus_48().

◆ twoToMinus_49()

double CLHEP::HepRandomEngine::twoToMinus_49 ( )
inlinestaticprotected

Definition at line 54 of file RandomEngine.icc.

References twoToMinus_49().

Referenced by twoToMinus_49().

◆ twoToMinus_53()

double CLHEP::HepRandomEngine::twoToMinus_53 ( )
inlinestaticprotected

Definition at line 59 of file RandomEngine.icc.

References twoToMinus_53().

Referenced by twoToMinus_53().

Member Data Documentation

◆ theSeed

long CLHEP::HepRandomEngine::theSeed
protected

Definition at line 144 of file RandomEngine.h.

Referenced by getSeed(), and CLHEP::MixMaxRng::setSeed().

◆ theSeeds

const long* CLHEP::HepRandomEngine::theSeeds
protected

Definition at line 145 of file RandomEngine.h.

Referenced by getSeeds().


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