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

CLHEP::RandPoisson Class Reference

#include <RandPoisson.h>

Inheritance diagram for CLHEP::RandPoisson:

CLHEP::HepRandom CLHEP::RandPoissonQ CLHEP::RandPoissonT List of all members.

Public Member Functions

 RandPoisson (HepRandomEngine &anEngine, double a1=1.0)
 RandPoisson (HepRandomEngine *anEngine, double a1=1.0)
virtual ~RandPoisson ()
std::ostream & put (std::ostream &os) const
std::istream & get (std::istream &is)
long fire ()
long fire (double m)
void fireArray (const int size, long *vect)
void fireArray (const int size, long *vect, double m)
double operator() ()
double operator() (double m)
std::string name () const
HepRandomEngineengine ()

Static Public Member Functions

static long shoot (double m=1.0)
static void shootArray (const int size, long *vect, double m=1.0)
static long shoot (HepRandomEngine *anEngine, double m=1.0)
static void shootArray (HepRandomEngine *anEngine, const int size, long *vect, double m=1.0)
static std::string distributionName ()

Protected Member Functions

HepRandomEnginegetLocalEngine ()

Static Protected Member Functions

static double getOldMean ()
static double getMaxMean ()
static void setOldMean (double val)
static double * getPStatus ()
static void setPStatus (double sq, double alxm, double g1)

Protected Attributes

double meanMax
double defaultMean

Detailed Description

Author:

Definition at line 42 of file RandPoisson.h.


Constructor & Destructor Documentation

CLHEP::RandPoisson::RandPoisson ( HepRandomEngine anEngine,
double  a1 = 1.0 
) [inline]

CLHEP::RandPoisson::RandPoisson ( HepRandomEngine anEngine,
double  a1 = 1.0 
) [inline]

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

Definition at line 44 of file RandPoisson.cc.


Member Function Documentation

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

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 94 of file RandPoisson.h.

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

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 37 of file RandPoisson.cc.

Referenced by CLHEP::RandPoissonT::engine(), and CLHEP::RandPoissonQ::engine().

long CLHEP::RandPoisson::fire ( double  m  ) 

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 218 of file RandPoisson.cc.

References CLHEP::gammln(), getMaxMean(), and meanMax.

long CLHEP::RandPoisson::fire (  ) 

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 214 of file RandPoisson.cc.

References defaultMean.

Referenced by dist_layout(), fireArray(), main(), operator()(), poissonTest(), and testRandPoisson().

void CLHEP::RandPoisson::fireArray ( const int  size,
long *  vect,
double  m 
)

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 276 of file RandPoisson.cc.

References fire().

void CLHEP::RandPoisson::fireArray ( const int  size,
long *  vect 
)

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 270 of file RandPoisson.cc.

References defaultMean, and fire().

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

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 311 of file RandPoisson.cc.

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

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

HepRandomEngine* CLHEP::RandPoisson::getLocalEngine (  )  [inline, protected]

Referenced by CLHEP::RandPoissonT::fire().

static double CLHEP::RandPoisson::getMaxMean (  )  [inline, static, protected]

Definition at line 104 of file RandPoisson.h.

Referenced by fire(), and shoot().

static double CLHEP::RandPoisson::getOldMean (  )  [inline, static, protected]

Definition at line 102 of file RandPoisson.h.

Referenced by shoot().

static double* CLHEP::RandPoisson::getPStatus (  )  [inline, static, protected]

Definition at line 108 of file RandPoisson.h.

Referenced by shoot().

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

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 36 of file RandPoisson.cc.

Referenced by get(), and put().

double CLHEP::RandPoisson::operator() ( double  m  ) 

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 51 of file RandPoisson.cc.

References double, and fire().

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

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 47 of file RandPoisson.cc.

References defaultMean, double, and fire().

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

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 282 of file RandPoisson.cc.

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

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

static void CLHEP::RandPoisson::setOldMean ( double  val  )  [inline, static, protected]

Definition at line 106 of file RandPoisson.h.

Referenced by shoot().

static void CLHEP::RandPoisson::setPStatus ( double  sq,
double  alxm,
double  g1 
) [inline, static, protected]

Definition at line 110 of file RandPoisson.h.

Referenced by shoot().

long CLHEP::RandPoisson::shoot ( HepRandomEngine anEngine,
double  m = 1.0 
) [static]

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 153 of file RandPoisson.cc.

References CLHEP::HepRandomEngine::flat(), CLHEP::gammln(), getMaxMean(), getOldMean(), getPStatus(), setOldMean(), and setPStatus().

long CLHEP::RandPoisson::shoot ( double  m = 1.0  )  [static]

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 92 of file RandPoisson.cc.

References CLHEP::HepRandomEngine::flat(), CLHEP::gammln(), getMaxMean(), getOldMean(), getPStatus(), CLHEP::HepRandom::getTheEngine(), setOldMean(), and setPStatus().

Referenced by CLHEP::RandPoissonT::fire(), CLHEP::RandPoissonT::shoot(), and shootArray().

void CLHEP::RandPoisson::shootArray ( HepRandomEngine anEngine,
const int  size,
long *  vect,
double  m = 1.0 
) [static]

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 207 of file RandPoisson.cc.

References shoot().

void CLHEP::RandPoisson::shootArray ( const int  size,
long *  vect,
double  m = 1.0 
) [static]

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

Definition at line 147 of file RandPoisson.cc.

References shoot().


Member Data Documentation

double CLHEP::RandPoisson::defaultMean [protected]

Definition at line 100 of file RandPoisson.h.

Referenced by CLHEP::RandPoissonT::fire(), fire(), CLHEP::RandPoissonT::fireArray(), fireArray(), get(), operator()(), and put().

double CLHEP::RandPoisson::meanMax [protected]

Definition at line 99 of file RandPoisson.h.

Referenced by fire(), get(), and put().


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