Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
CLHEP::NonRandomEngine Class Referenceabstract

#include "/cvmfs/nova.opensciencegrid.org/externals/geant4/v4_10_4_p02ba/source/geant4.10.04.p02/source/externals/clhep/include/CLHEP/Random/NonRandomEngine.h"

Inheritance diagram for CLHEP::NonRandomEngine:
CLHEP::HepRandomEngine

Public Member Functions

 NonRandomEngine ()
 
virtual ~NonRandomEngine ()
 
void setNextRandom (double r)
 
void setRandomSequence (double *s, int n)
 
void setRandomInterval (double x)
 
double flat ()
 
void flatArray (const int size, double *vect)
 
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)
 
bool operator== (const HepRandomEngine &engine)
 
bool operator!= (const HepRandomEngine &engine)
 
virtual void saveStatus (const char filename[]="Config.conf") const =0
 
virtual void restoreStatus (const char filename[]="Config.conf")=0
 
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 std::string engineName ()
 
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
 

Private Member Functions

virtual void setSeed (long, int)
 
virtual void setSeeds (const long *, int)
 
virtual void saveStatus (const char *) const
 
virtual void restoreStatus (const char *)
 
virtual void showStatus () const
 

Private Attributes

bool nextHasBeenSet
 
bool sequenceHasBeenSet
 
bool intervalHasBeenSet
 
double nextRandom
 
std::vector< double > sequence
 
unsigned int nInSeq
 
double randomInterval
 

Detailed Description

Author

Definition at line 39 of file NonRandomEngine.h.

Constructor & Destructor Documentation

CLHEP::NonRandomEngine::NonRandomEngine ( )
virtual CLHEP::NonRandomEngine::~NonRandomEngine ( )
virtual

Member Function Documentation

static std::string CLHEP::NonRandomEngine::beginTag ( )
static
static bool CLHEP::HepRandomEngine::checkFile ( std::istream &  file,
const std::string filename,
const std::string classname,
const std::string methodname 
)
staticprotectedinherited
static std::string CLHEP::NonRandomEngine::engineName ( )
inlinestatic

Definition at line 71 of file NonRandomEngine.h.

References getState(), put(), and registry_explorer::v.

71 {return "NonRandomEngine";}
static double CLHEP::HepRandomEngine::exponent_bit_32 ( )
inlinestaticprotectedinherited
double CLHEP::NonRandomEngine::flat ( )
virtual
void CLHEP::NonRandomEngine::flatArray ( const int  size,
double *  vect 
)
virtual
virtual std::istream& CLHEP::NonRandomEngine::get ( std::istream &  is)
virtual

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

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

Definition at line 113 of file RandomEngine.h.

References CLHEP::HepRandomEngine::theSeed.

113 { return theSeed; }
const long* CLHEP::HepRandomEngine::getSeeds ( ) const
inlineinherited

Definition at line 116 of file RandomEngine.h.

References check_time_usage::float, makeTrainCVSamples::int, and CLHEP::HepRandomEngine::theSeeds.

116 { return theSeeds; }
virtual std::istream& CLHEP::NonRandomEngine::getState ( std::istream &  is)
virtual

Reimplemented from CLHEP::HepRandomEngine.

Referenced by engineName().

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

Reimplemented from CLHEP::HepRandomEngine.

static double CLHEP::HepRandomEngine::mantissa_bit_12 ( )
inlinestaticprotectedinherited
static double CLHEP::HepRandomEngine::mantissa_bit_24 ( )
inlinestaticprotectedinherited
static double CLHEP::HepRandomEngine::mantissa_bit_32 ( )
inlinestaticprotectedinherited
std::string CLHEP::NonRandomEngine::name ( ) const
virtual
static double CLHEP::HepRandomEngine::nearlyTwoToMinus_54 ( )
inlinestaticprotectedinherited
static HepRandomEngine* CLHEP::HepRandomEngine::newEngine ( std::istream &  is)
staticinherited
static HepRandomEngine* CLHEP::HepRandomEngine::newEngine ( const std::vector< unsigned long > &  v)
staticinherited
virtual CLHEP::HepRandomEngine::operator double ( )
virtualinherited
virtual CLHEP::HepRandomEngine::operator float ( )
virtualinherited
virtual CLHEP::HepRandomEngine::operator unsigned int ( )
virtualinherited
bool CLHEP::HepRandomEngine::operator!= ( const HepRandomEngine engine)
inlineinherited
bool CLHEP::HepRandomEngine::operator== ( const HepRandomEngine engine)
inlineinherited
virtual std::ostream& CLHEP::NonRandomEngine::put ( std::ostream &  os) const
virtual

Reimplemented from CLHEP::HepRandomEngine.

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

Reimplemented from CLHEP::HepRandomEngine.

Referenced by engineName().

virtual void CLHEP::HepRandomEngine::restoreStatus ( const char  filename[] = "Config.conf")
pure virtualinherited
virtual void CLHEP::NonRandomEngine::restoreStatus ( const char *  )
inlineprivatevirtual

Definition at line 93 of file NonRandomEngine.h.

93 {};
virtual void CLHEP::HepRandomEngine::saveStatus ( const char  filename[] = "Config.conf") const
pure virtualinherited
virtual void CLHEP::NonRandomEngine::saveStatus ( const char *  ) const
inlineprivatevirtual

Definition at line 92 of file NonRandomEngine.h.

92 {};
void CLHEP::NonRandomEngine::setNextRandom ( double  r)
void CLHEP::NonRandomEngine::setRandomInterval ( double  x)
void CLHEP::NonRandomEngine::setRandomSequence ( double *  s,
int  n 
)
virtual void CLHEP::NonRandomEngine::setSeed ( long  ,
int   
)
inlineprivatevirtual

Implements CLHEP::HepRandomEngine.

Definition at line 90 of file NonRandomEngine.h.

90 {};
virtual void CLHEP::NonRandomEngine::setSeeds ( const long *  ,
int   
)
inlineprivatevirtual

Implements CLHEP::HepRandomEngine.

Definition at line 91 of file NonRandomEngine.h.

91 {};
virtual void CLHEP::NonRandomEngine::showStatus ( ) const
inlineprivatevirtual

Implements CLHEP::HepRandomEngine.

Definition at line 94 of file NonRandomEngine.h.

94 {};
static double CLHEP::HepRandomEngine::twoToMinus_32 ( )
inlinestaticprotectedinherited
static double CLHEP::HepRandomEngine::twoToMinus_48 ( )
inlinestaticprotectedinherited
static double CLHEP::HepRandomEngine::twoToMinus_49 ( )
inlinestaticprotectedinherited
static double CLHEP::HepRandomEngine::twoToMinus_53 ( )
inlinestaticprotectedinherited

Member Data Documentation

bool CLHEP::NonRandomEngine::intervalHasBeenSet
private

Definition at line 81 of file NonRandomEngine.h.

bool CLHEP::NonRandomEngine::nextHasBeenSet
private

Definition at line 79 of file NonRandomEngine.h.

double CLHEP::NonRandomEngine::nextRandom
private

Definition at line 82 of file NonRandomEngine.h.

unsigned int CLHEP::NonRandomEngine::nInSeq
private

Definition at line 84 of file NonRandomEngine.h.

double CLHEP::NonRandomEngine::randomInterval
private

Definition at line 85 of file NonRandomEngine.h.

std::vector<double> CLHEP::NonRandomEngine::sequence
private

Definition at line 83 of file NonRandomEngine.h.

bool CLHEP::NonRandomEngine::sequenceHasBeenSet
private

Definition at line 80 of file NonRandomEngine.h.

long CLHEP::HepRandomEngine::theSeed
protectedinherited

Definition at line 143 of file RandomEngine.h.

Referenced by CLHEP::HepRandomEngine::getSeed().

const long* CLHEP::HepRandomEngine::theSeeds
protectedinherited

Definition at line 144 of file RandomEngine.h.

Referenced by CLHEP::HepRandomEngine::getSeeds().


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