Geant4-11
|
#include <RandPoisson.h>
Public Member Functions | |
HepRandomEngine & | engine () |
long | fire () |
long | fire (double mean) |
void | fireArray (const int size, long *vect) |
void | fireArray (const int size, long *vect, double mean) |
double | flat () |
double | flat (HepRandomEngine *theNewEngine) |
void | flatArray (const int size, double *vect) |
void | flatArray (HepRandomEngine *theNewEngine, const int size, double *vect) |
std::istream & | get (std::istream &is) |
std::string | name () const |
double | operator() () |
double | operator() (double mean) |
std::ostream & | put (std::ostream &os) const |
RandPoisson (HepRandomEngine &anEngine, double a1=1.0) | |
RandPoisson (HepRandomEngine *anEngine, double a1=1.0) | |
virtual | ~RandPoisson () |
Static Public Member Functions | |
static int | createInstance () |
static std::string | distributionName () |
static HepRandomEngine * | getTheEngine () |
static HepRandom * | getTheGenerator () |
static long | getTheSeed () |
static const long * | getTheSeeds () |
static void | getTheTableSeeds (long *seeds, int index) |
static std::istream & | restoreDistState (std::istream &is) |
static void | restoreEngineStatus (const char filename[]="Config.conf") |
static std::istream & | restoreFullState (std::istream &is) |
static std::istream & | restoreStaticRandomStates (std::istream &is) |
static std::ostream & | saveDistState (std::ostream &os) |
static void | saveEngineStatus (const char filename[]="Config.conf") |
static std::ostream & | saveFullState (std::ostream &os) |
static std::ostream & | saveStaticRandomStates (std::ostream &os) |
static void | setTheEngine (HepRandomEngine *theNewEngine) |
static void | setTheSeed (long seed, int lxr=3) |
static void | setTheSeeds (const long *seeds, int aux=-1) |
static long | shoot (double mean=1.0) |
static long | shoot (HepRandomEngine *anEngine, double mean=1.0) |
static void | shootArray (const int size, long *vect, double mean=1.0) |
static void | shootArray (HepRandomEngine *anEngine, const int size, long *vect, double mean=1.0) |
static void | showEngineStatus () |
Protected Member Functions | |
HepRandomEngine * | getLocalEngine () |
Static Protected Member Functions | |
static double | getMaxMean () |
static double | getOldMean () |
static double * | getPStatus () |
static void | setOldMean (double val) |
static void | setPStatus (double sq, double alxm, double g1) |
Protected Attributes | |
double | defaultMean |
double | meanMax |
Static Protected Attributes | |
static const long | seedTable [215][2] |
Private Attributes | |
std::shared_ptr< HepRandomEngine > | localEngine |
double | oldm |
double | status [3] |
Static Private Attributes | |
static const double | meanMax_st = 2.0E9 |
static CLHEP_THREAD_LOCAL double | oldm_st = -1.0 |
static CLHEP_THREAD_LOCAL double | status_st [3] = {0., 0., 0.} |
Definition at line 41 of file RandPoisson.h.
|
inline |
|
inline |
|
virtual |
Definition at line 45 of file RandPoisson.cc.
|
staticinherited |
Definition at line 311 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::defaults::ensureInitialized(), and CLHEP::anonymous_namespace{Random.cc}::theDefaults().
|
inlinestatic |
Definition at line 93 of file RandPoisson.h.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ.
Definition at line 38 of file RandPoisson.cc.
References localEngine.
Referenced by CLHEP::RandPoissonQ::engine().
long CLHEP::RandPoisson::fire | ( | ) |
Definition at line 215 of file RandPoisson.cc.
References defaultMean, and fire().
Referenced by fire(), fireArray(), and operator()().
long CLHEP::RandPoisson::fire | ( | double | mean | ) |
Definition at line 219 of file RandPoisson.cc.
References CLHEP::gammln(), getMaxMean(), localEngine, meanMax, CLHEP::normal(), oldm, CLHEP::pi, and status.
void CLHEP::RandPoisson::fireArray | ( | const int | size, |
long * | vect | ||
) |
Definition at line 271 of file RandPoisson.cc.
References defaultMean, and fire().
void CLHEP::RandPoisson::fireArray | ( | const int | size, |
long * | vect, | ||
double | mean | ||
) |
Definition at line 277 of file RandPoisson.cc.
References fire().
|
inherited |
Definition at line 199 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
Referenced by CLHEP::RandExponential::shoot().
|
inlineinherited |
|
inherited |
Definition at line 204 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
inlineinherited |
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ.
Definition at line 304 of file RandPoisson.cc.
References defaultMean, CLHEP::DoubConv::longs2double(), meanMax, name(), oldm, CLHEP::possibleKeywordInput(), and status.
Referenced by CLHEP::RandPoissonQ::get().
|
inlineprotected |
Referenced by CLHEP::RandPoissonQ::fire().
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
Definition at line 107 of file RandPoisson.h.
References status_st.
Referenced by shoot().
|
staticinherited |
Definition at line 268 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
Referenced by CLHEP::StaticRandomStates::restore(), CLHEP::RandFlat::restoreEngineStatus(), CLHEP::RandGauss::restoreEngineStatus(), CLHEP::RandFlat::saveEngineStatus(), CLHEP::RandGauss::saveEngineStatus(), CLHEP::RandExponential::shoot(), CLHEP::RandExpZiggurat::shoot(), CLHEP::RandFlat::shoot(), CLHEP::RandGauss::shoot(), CLHEP::RandGaussZiggurat::shoot(), CLHEP::RandChiSquare::shoot(), CLHEP::RandStudentT::shoot(), CLHEP::RandBreitWigner::shoot(), CLHEP::RandGamma::shoot(), shoot(), CLHEP::RandPoissonQ::shoot(), CLHEP::RandBinomial::shoot(), and CLHEP::RandFlat::shootArray().
|
staticinherited |
Definition at line 263 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theGenerator.
|
staticinherited |
Definition at line 239 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
staticinherited |
Definition at line 249 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
staticinherited |
Definition at line 254 of file Random.cc.
Referenced by CLHEP::HepJamesRandom::HepJamesRandom(), CLHEP::MTwistEngine::MTwistEngine(), CLHEP::RanecuEngine::RanecuEngine(), CLHEP::Ranlux64Engine::Ranlux64Engine(), CLHEP::RanluxEngine::RanluxEngine(), and CLHEP::RanecuEngine::setSeed().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ.
Definition at line 37 of file RandPoisson.cc.
Referenced by source.g4viscp.G4Scene::create_scene(), get(), mcscore.MCParticle::printout(), put(), and source.g4viscp.G4Scene::update_scene().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ.
Definition at line 48 of file RandPoisson.cc.
References defaultMean, and fire().
double CLHEP::RandPoisson::operator() | ( | double | mean | ) |
Definition at line 52 of file RandPoisson.cc.
References fire().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ.
Definition at line 283 of file RandPoisson.cc.
References defaultMean, CLHEP::DoubConv::dto2longs(), meanMax, name(), oldm, and status.
Referenced by CLHEP::RandPoissonQ::put().
|
inlinestaticinherited |
|
staticinherited |
Definition at line 283 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
staticinherited |
Definition at line 293 of file Random.cc.
Referenced by CLHEP::RandFlat::restoreFullState(), and CLHEP::RandGauss::restoreFullState().
|
staticinherited |
Definition at line 302 of file Random.cc.
References CLHEP::StaticRandomStates::restore().
|
inlinestaticinherited |
|
staticinherited |
Definition at line 278 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
Referenced by G4CascadeInterface::ApplyYourself(), G4HadronicProcess::PostStepDoIt(), and G4CascadeInterface::Propagate().
|
staticinherited |
Definition at line 288 of file Random.cc.
Referenced by G4EventManager::DoProcessing(), G4EventManager::ProcessOneEvent(), CLHEP::RandFlat::saveFullState(), and CLHEP::RandGauss::saveFullState().
|
staticinherited |
Definition at line 298 of file Random.cc.
References CLHEP::StaticRandomStates::save().
|
inlinestaticprotected |
Definition at line 105 of file RandPoisson.h.
References oldm_st.
Referenced by shoot().
|
inlinestaticprotected |
|
staticinherited |
Definition at line 273 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
Referenced by CLHEP::StaticRandomStates::restore().
|
staticinherited |
Definition at line 234 of file Random.cc.
References CLHEP::lux, CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
staticinherited |
Definition at line 244 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
static |
Definition at line 93 of file RandPoisson.cc.
References CLHEP::HepRandomEngine::flat(), CLHEP::gammln(), getMaxMean(), getOldMean(), getPStatus(), CLHEP::HepRandom::getTheEngine(), CLHEP::normal(), G4InuclParticleNames::om, CLHEP::pi, setOldMean(), and setPStatus().
Referenced by CLHEP::RandPoissonQ::poissonDeviateSmall(), and shootArray().
|
static |
Definition at line 154 of file RandPoisson.cc.
References CLHEP::HepRandomEngine::flat(), CLHEP::gammln(), getMaxMean(), getOldMean(), getPStatus(), CLHEP::normal(), G4InuclParticleNames::om, CLHEP::pi, setOldMean(), and setPStatus().
|
static |
Definition at line 148 of file RandPoisson.cc.
References shoot().
|
static |
Definition at line 208 of file RandPoisson.cc.
References shoot().
|
staticinherited |
Definition at line 306 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
protected |
Definition at line 99 of file RandPoisson.h.
Referenced by fire(), CLHEP::RandPoissonQ::fire(), fireArray(), CLHEP::RandPoissonQ::fireArray(), get(), operator()(), put(), and CLHEP::RandPoissonQ::setupForDefaultMu().
|
private |
Definition at line 117 of file RandPoisson.h.
|
protected |
Definition at line 98 of file RandPoisson.h.
|
staticprivate |
Definition at line 123 of file RandPoisson.h.
Referenced by getMaxMean().
|
private |
Definition at line 118 of file RandPoisson.h.
|
staticprivate |
Definition at line 122 of file RandPoisson.h.
Referenced by getOldMean(), and setOldMean().
|
staticprotectedinherited |
|
private |
Definition at line 118 of file RandPoisson.h.
|
staticprivate |
Definition at line 121 of file RandPoisson.h.
Referenced by getPStatus(), and setPStatus().