ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CLHEP::NonRandomEngine Class Reference

#include <geant4/tree/geant4-10.6-release/source/externals/clhep/include/CLHEP/Random/NonRandomEngine.h>

+ Inheritance diagram for CLHEP::NonRandomEngine:
+ Collaboration diagram for CLHEP::NonRandomEngine:

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

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
 

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)
 
- Protected Attributes inherited from CLHEP::HepRandomEngine
long theSeed
 
const long * theSeeds
 

Detailed Description

Author

Definition at line 38 of file NonRandomEngine.h.

View newest version in sPHENIX GitHub at line 38 of file NonRandomEngine.h

Constructor & Destructor Documentation

CLHEP::NonRandomEngine::NonRandomEngine ( )

Definition at line 32 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 32 of file NonRandomEngine.cc

CLHEP::NonRandomEngine::~NonRandomEngine ( )
virtual

Definition at line 39 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 39 of file NonRandomEngine.cc

Member Function Documentation

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

Definition at line 140 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 140 of file NonRandomEngine.cc

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

Definition at line 70 of file NonRandomEngine.h.

View newest version in sPHENIX GitHub at line 70 of file NonRandomEngine.h

double CLHEP::NonRandomEngine::flat ( )
virtual

Implements CLHEP::HepRandomEngine.

Definition at line 64 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 64 of file NonRandomEngine.cc

References a, g4zmq::exit(), intervalHasBeenSet, nextHasBeenSet, nextRandom, nInSeq, randomInterval, sequence, sequenceHasBeenSet, and v.

Referenced by flatArray().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Implements CLHEP::HepRandomEngine.

Definition at line 91 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 91 of file NonRandomEngine.cc

References flat().

+ Here is the call graph for this function:

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 127 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 127 of file NonRandomEngine.cc

References getState().

+ Here is the call graph for this function:

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 201 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 201 of file NonRandomEngine.cc

References getState().

+ Here is the call graph for this function:

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 144 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 144 of file NonRandomEngine.cc

References intervalHasBeenSet, nextHasBeenSet, nextRandom, nInSeq, CLHEP::possibleKeywordInput(), randomInterval, sequence, sequenceHasBeenSet, v, and x.

Referenced by get().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 210 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 210 of file NonRandomEngine.cc

References intervalHasBeenSet, CLHEP::DoubConv::longs2double(), nextHasBeenSet, nextRandom, nInSeq, randomInterval, sequence, sequenceHasBeenSet, and t.

+ Here is the call graph for this function:

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

Implements CLHEP::HepRandomEngine.

Definition at line 30 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 30 of file NonRandomEngine.cc

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 97 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 97 of file NonRandomEngine.cc

References put(), and v.

+ Here is the call graph for this function:

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

Reimplemented from CLHEP::HepRandomEngine.

Definition at line 107 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 107 of file NonRandomEngine.cc

References CLHEP::DoubConv::dto2longs(), intervalHasBeenSet, nextHasBeenSet, nextRandom, nInSeq, randomInterval, sequence, sequenceHasBeenSet, t, and v.

Referenced by put().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void CLHEP::NonRandomEngine::restoreStatus ( const char *  )
inlineprivatevirtual

Definition at line 92 of file NonRandomEngine.h.

View newest version in sPHENIX GitHub at line 92 of file NonRandomEngine.h

virtual void CLHEP::NonRandomEngine::saveStatus ( const char *  ) const
inlineprivatevirtual

Definition at line 91 of file NonRandomEngine.h.

View newest version in sPHENIX GitHub at line 91 of file NonRandomEngine.h

void CLHEP::NonRandomEngine::setNextRandom ( double  r)

Definition at line 42 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 42 of file NonRandomEngine.cc

References nextHasBeenSet, nextRandom, and r.

void CLHEP::NonRandomEngine::setRandomInterval ( double  x)

Definition at line 58 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 58 of file NonRandomEngine.cc

References intervalHasBeenSet, randomInterval, and x.

void CLHEP::NonRandomEngine::setRandomSequence ( double *  s,
int  n 
)

Definition at line 48 of file NonRandomEngine.cc.

View newest version in sPHENIX GitHub at line 48 of file NonRandomEngine.cc

References int(), n, nextHasBeenSet, nInSeq, sequence, and sequenceHasBeenSet.

+ Here is the call graph for this function:

virtual void CLHEP::NonRandomEngine::setSeed ( long  ,
int   
)
inlineprivatevirtual

Implements CLHEP::HepRandomEngine.

Definition at line 89 of file NonRandomEngine.h.

View newest version in sPHENIX GitHub at line 89 of file NonRandomEngine.h

virtual void CLHEP::NonRandomEngine::setSeeds ( const long *  ,
int   
)
inlineprivatevirtual

Implements CLHEP::HepRandomEngine.

Definition at line 90 of file NonRandomEngine.h.

View newest version in sPHENIX GitHub at line 90 of file NonRandomEngine.h

virtual void CLHEP::NonRandomEngine::showStatus ( ) const
inlineprivatevirtual

Implements CLHEP::HepRandomEngine.

Definition at line 93 of file NonRandomEngine.h.

View newest version in sPHENIX GitHub at line 93 of file NonRandomEngine.h

Member Data Documentation

bool CLHEP::NonRandomEngine::intervalHasBeenSet
private

Definition at line 80 of file NonRandomEngine.h.

View newest version in sPHENIX GitHub at line 80 of file NonRandomEngine.h

Referenced by flat(), getState(), put(), and setRandomInterval().

bool CLHEP::NonRandomEngine::nextHasBeenSet
private

Definition at line 78 of file NonRandomEngine.h.

View newest version in sPHENIX GitHub at line 78 of file NonRandomEngine.h

Referenced by flat(), getState(), put(), setNextRandom(), and setRandomSequence().

double CLHEP::NonRandomEngine::nextRandom
private

Definition at line 81 of file NonRandomEngine.h.

View newest version in sPHENIX GitHub at line 81 of file NonRandomEngine.h

Referenced by flat(), getState(), put(), and setNextRandom().

unsigned int CLHEP::NonRandomEngine::nInSeq
private

Definition at line 83 of file NonRandomEngine.h.

View newest version in sPHENIX GitHub at line 83 of file NonRandomEngine.h

Referenced by flat(), getState(), put(), and setRandomSequence().

double CLHEP::NonRandomEngine::randomInterval
private

Definition at line 84 of file NonRandomEngine.h.

View newest version in sPHENIX GitHub at line 84 of file NonRandomEngine.h

Referenced by flat(), getState(), put(), and setRandomInterval().

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

Definition at line 82 of file NonRandomEngine.h.

View newest version in sPHENIX GitHub at line 82 of file NonRandomEngine.h

Referenced by flat(), getState(), put(), and setRandomSequence().

bool CLHEP::NonRandomEngine::sequenceHasBeenSet
private

Definition at line 79 of file NonRandomEngine.h.

View newest version in sPHENIX GitHub at line 79 of file NonRandomEngine.h

Referenced by flat(), getState(), put(), and setRandomSequence().


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