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

CLHEP::RandFlat Class Reference

#include <RandFlat.h>

Inheritance diagram for CLHEP::RandFlat:

CLHEP::HepRandom CLHEP::RandBit List of all members.

Public Member Functions

 RandFlat (HepRandomEngine &anEngine)
 RandFlat (HepRandomEngine &anEngine, double width)
 RandFlat (HepRandomEngine &anEngine, double a, double b)
 RandFlat (HepRandomEngine *anEngine)
 RandFlat (HepRandomEngine *anEngine, double width)
 RandFlat (HepRandomEngine *anEngine, double a, double b)
virtual ~RandFlat ()
double fire ()
double fire (double width)
double fire (double a, double b)
long fireInt (long n)
long fireInt (long a1, long n)
int fireBit ()
void fireArray (const int size, double *vect)
void fireArray (const int size, double *vect, double lx, double dx)
double operator() ()
double operator() (double width)
double operator() (double a, double b)
std::ostream & put (std::ostream &os) const
std::istream & get (std::istream &is)
std::string name () const
HepRandomEngineengine ()

Static Public Member Functions

static double shoot ()
static double shoot (double width)
static double shoot (double a, double b)
static long shootInt (long n)
static long shootInt (long a1, long n)
static int shootBit ()
static void shootArray (const int size, double *vect)
static void shootArray (const int size, double *vect, double lx, double dx)
static double shoot (HepRandomEngine *anEngine)
static double shoot (HepRandomEngine *anEngine, double width)
static double shoot (HepRandomEngine *anEngine, double a, double b)
static long shootInt (HepRandomEngine *anEngine, long n)
static long shootInt (HepRandomEngine *anEngine, long a1, long n)
static int shootBit (HepRandomEngine *)
static void shootArray (HepRandomEngine *anEngine, const int size, double *vect)
static void shootArray (HepRandomEngine *anEngine, const int size, double *vect, double lx, double dx)
static std::string distributionName ()
static void saveEngineStatus (const char filename[]="Config.conf")
static void restoreEngineStatus (const char filename[]="Config.conf")
static std::ostream & saveFullState (std::ostream &os)
static std::istream & restoreFullState (std::istream &is)
static std::ostream & saveDistState (std::ostream &os)
static std::istream & restoreDistState (std::istream &is)

Detailed Description

Author:
<Gabriele.Cosmo@cern.ch>

Definition at line 42 of file RandFlat.h.


Constructor & Destructor Documentation

CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine  )  [inline]

CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine,
double  width 
) [inline]

CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine,
double  a,
double  b 
) [inline]

CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine  )  [inline]

CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine,
double  width 
) [inline]

CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine,
double  a,
double  b 
) [inline]

CLHEP::RandFlat::~RandFlat (  )  [virtual]

Definition at line 45 of file RandFlat.cc.


Member Function Documentation

static std::string CLHEP::RandFlat::distributionName (  )  [inline, static]

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandBit.

Definition at line 137 of file RandFlat.h.

Referenced by restoreDistState(), and saveDistState().

HepRandomEngine & CLHEP::RandFlat::engine (  )  [virtual]

Reimplemented from CLHEP::HepRandom.

Definition at line 43 of file RandFlat.cc.

double CLHEP::RandFlat::fire ( double  a,
double  b 
) [inline]

double CLHEP::RandFlat::fire ( double  width  )  [inline]

double CLHEP::RandFlat::fire (  )  [inline]

Referenced by dist_layout(), fireArray(), and operator()().

void CLHEP::RandFlat::fireArray ( const int  size,
double *  vect,
double  lx,
double  dx 
)

Definition at line 95 of file RandFlat.cc.

References fire().

void CLHEP::RandFlat::fireArray ( const int  size,
double *  vect 
)

Definition at line 87 of file RandFlat.cc.

References fire().

Referenced by dist_layout().

int CLHEP::RandFlat::fireBit (  )  [inline]

Reimplemented in CLHEP::RandBit.

long CLHEP::RandFlat::fireInt ( long  a1,
long  n 
) [inline]

long CLHEP::RandFlat::fireInt ( long  n  )  [inline]

Referenced by dist_layout().

std::istream & CLHEP::RandFlat::get ( std::istream &  is  )  [virtual]

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandBit.

Definition at line 187 of file RandFlat.cc.

References CLHEP::DoubConv::longs2double(), name(), and CLHEP::possibleKeywordInput().

Referenced by CLHEP::RandBit::get().

std::string CLHEP::RandFlat::name (  )  const [virtual]

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandBit.

Definition at line 42 of file RandFlat.cc.

Referenced by get(), and put().

double CLHEP::RandFlat::operator() ( double  a,
double  b 
)

Definition at line 56 of file RandFlat.cc.

References fire().

double CLHEP::RandFlat::operator() ( double  width  ) 

Definition at line 52 of file RandFlat.cc.

References fire().

double CLHEP::RandFlat::operator() (  )  [virtual]

Reimplemented from CLHEP::HepRandom.

Definition at line 48 of file RandFlat.cc.

References fire().

std::ostream & CLHEP::RandFlat::put ( std::ostream &  os  )  const [virtual]

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandBit.

Definition at line 156 of file RandFlat.cc.

References CLHEP::DoubConv::dto2longs(), and name().

Referenced by CLHEP::RandBit::put().

std::istream & CLHEP::RandFlat::restoreDistState ( std::istream &  is  )  [static]

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandBit.

Definition at line 234 of file RandFlat.cc.

References distributionName().

Referenced by CLHEP::StaticRandomStates::restore(), CLHEP::RandBit::restoreDistState(), and restoreFullState().

void CLHEP::RandFlat::restoreEngineStatus ( const char  filename[] = "Config.conf"  )  [static]

Reimplemented from CLHEP::HepRandom.

Definition at line 119 of file RandFlat.cc.

References CLHEP::HepRandom::getTheEngine(), and CLHEP::HepRandomEngine::restoreStatus().

std::istream & CLHEP::RandFlat::restoreFullState ( std::istream &  is  )  [static]

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandBit.

Definition at line 265 of file RandFlat.cc.

References restoreDistState(), and CLHEP::HepRandom::restoreFullState().

Referenced by CLHEP::RandBit::restoreFullState().

std::ostream & CLHEP::RandFlat::saveDistState ( std::ostream &  os  )  [static]

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandBit.

Definition at line 225 of file RandFlat.cc.

References distributionName().

Referenced by CLHEP::StaticRandomStates::save(), CLHEP::RandBit::saveDistState(), and saveFullState().

void CLHEP::RandFlat::saveEngineStatus ( const char  filename[] = "Config.conf"  )  [static]

Reimplemented from CLHEP::HepRandom.

Definition at line 104 of file RandFlat.cc.

References CLHEP::HepRandom::getTheEngine(), and CLHEP::HepRandomEngine::saveStatus().

std::ostream & CLHEP::RandFlat::saveFullState ( std::ostream &  os  )  [static]

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandBit.

Definition at line 259 of file RandFlat.cc.

References saveDistState(), and CLHEP::HepRandom::saveFullState().

Referenced by CLHEP::RandBit::saveFullState().

static double CLHEP::RandFlat::shoot ( HepRandomEngine anEngine,
double  a,
double  b 
) [inline, static]

static double CLHEP::RandFlat::shoot ( HepRandomEngine anEngine,
double  width 
) [inline, static]

static double CLHEP::RandFlat::shoot ( HepRandomEngine anEngine  )  [inline, static]

static double CLHEP::RandFlat::shoot ( double  a,
double  b 
) [inline, static]

static double CLHEP::RandFlat::shoot ( double  width  )  [inline, static]

double CLHEP::RandFlat::shoot (  )  [static]

Definition at line 60 of file RandFlat.cc.

References CLHEP::HepRandomEngine::flat(), and CLHEP::HepRandom::getTheEngine().

Referenced by CLHEP::RandBreitWigner::fireM2(), shootArray(), and CLHEP::RandBreitWigner::shootM2().

void CLHEP::RandFlat::shootArray ( HepRandomEngine anEngine,
const int  size,
double *  vect,
double  lx,
double  dx 
) [static]

Definition at line 77 of file RandFlat.cc.

References shoot().

static void CLHEP::RandFlat::shootArray ( HepRandomEngine anEngine,
const int  size,
double *  vect 
) [inline, static]

void CLHEP::RandFlat::shootArray ( const int  size,
double *  vect,
double  lx,
double  dx 
) [static]

Definition at line 68 of file RandFlat.cc.

References shoot().

void CLHEP::RandFlat::shootArray ( const int  size,
double *  vect 
) [static]

Definition at line 64 of file RandFlat.cc.

References CLHEP::HepRandomEngine::flatArray(), and CLHEP::HepRandom::getTheEngine().

static int CLHEP::RandFlat::shootBit ( HepRandomEngine  )  [inline, static]

Reimplemented in CLHEP::RandBit.

static int CLHEP::RandFlat::shootBit (  )  [inline, static]

Reimplemented in CLHEP::RandBit.

static long CLHEP::RandFlat::shootInt ( HepRandomEngine anEngine,
long  a1,
long  n 
) [inline, static]

static long CLHEP::RandFlat::shootInt ( HepRandomEngine anEngine,
long  n 
) [inline, static]

static long CLHEP::RandFlat::shootInt ( long  a1,
long  n 
) [inline, static]

static long CLHEP::RandFlat::shootInt ( long  n  )  [inline, static]


The documentation for this class was generated from the following files:
Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7