Geant4-11
|
#include <RandPoissonQ.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 |
RandPoissonQ (HepRandomEngine &anEngine, double b1=1.0) | |
RandPoissonQ (HepRandomEngine *anEngine, double b1=1.0) | |
virtual | ~RandPoissonQ () |
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 () |
static int | tableBoundary () |
Static Public Attributes | |
static const double | MAXIMUM_POISSON_DEVIATE = 2.0E9 |
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 Member Functions | |
void | setupForDefaultMu () |
Static Private Member Functions | |
static long | poissonDeviateQuick (HepRandomEngine *e, double A0, double A1, double A2, double sig) |
static long | poissonDeviateQuick (HepRandomEngine *e, double mean) |
static long | poissonDeviateSmall (HepRandomEngine *e, double mean) |
Private Attributes | |
double | a0 |
double | a1 |
double | a2 |
std::shared_ptr< HepRandomEngine > | localEngine |
double | oldm |
double | sigma |
double | status [3] |
Static Private Attributes | |
static const int | BELOW = 30 |
static const int | ENTRIES = 51 |
static const double | FIRST_MU = 10 |
static const double | LAST_MU = 95 |
static const double | meanMax_st = 2.0E9 |
static CLHEP_THREAD_LOCAL double | oldm_st = -1.0 |
static const double | S = 5 |
static CLHEP_THREAD_LOCAL double | status_st [3] = {0., 0., 0.} |
Definition at line 31 of file RandPoissonQ.h.
|
inline |
|
inline |
|
virtual |
Definition at line 82 of file RandPoissonQ.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 101 of file RandPoissonQ.h.
|
virtual |
Reimplemented from CLHEP::RandPoisson.
Definition at line 52 of file RandPoissonQ.cc.
References CLHEP::RandPoisson::engine().
long CLHEP::RandPoissonQ::fire | ( | ) |
Definition at line 135 of file RandPoissonQ.cc.
References a0, a1, a2, CLHEP::RandPoisson::defaultMean, CLHEP::RandPoisson::getLocalEngine(), LAST_MU, poissonDeviateQuick(), poissonDeviateSmall(), S, and sigma.
Referenced by fireArray(), and operator()().
long CLHEP::RandPoissonQ::fire | ( | double | mean | ) |
Definition at line 131 of file RandPoissonQ.cc.
References CLHEP::RandPoisson::getLocalEngine(), and shoot().
void CLHEP::RandPoissonQ::fireArray | ( | const int | size, |
long * | vect | ||
) |
Definition at line 187 of file RandPoissonQ.cc.
References CLHEP::RandPoisson::defaultMean, and fire().
void CLHEP::RandPoissonQ::fireArray | ( | const int | size, |
long * | vect, | ||
double | mean | ||
) |
Definition at line 182 of file RandPoissonQ.cc.
|
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::RandPoisson.
Definition at line 574 of file RandPoissonQ.cc.
References a0, a1, a2, CLHEP::RandPoisson::get(), CLHEP::DoubConv::longs2double(), name(), CLHEP::possibleKeywordInput(), and sigma.
|
inlineprotectedinherited |
Referenced by fire().
|
inlinestaticprotectedinherited |
Definition at line 103 of file RandPoisson.h.
References CLHEP::RandPoisson::meanMax_st.
Referenced by CLHEP::RandPoisson::fire(), and CLHEP::RandPoisson::shoot().
|
inlinestaticprotectedinherited |
Definition at line 101 of file RandPoisson.h.
References CLHEP::RandPoisson::oldm_st.
Referenced by CLHEP::RandPoisson::shoot().
|
inlinestaticprotectedinherited |
Definition at line 107 of file RandPoisson.h.
References CLHEP::RandPoisson::status_st.
Referenced by CLHEP::RandPoisson::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(), CLHEP::RandPoisson::shoot(), 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::RandPoisson.
Definition at line 51 of file RandPoissonQ.cc.
Referenced by source.g4viscp.G4Scene::create_scene(), get(), mcscore.MCParticle::printout(), put(), and source.g4viscp.G4Scene::update_scene().
|
virtual |
Reimplemented from CLHEP::RandPoisson.
Definition at line 123 of file RandPoissonQ.cc.
References fire().
double CLHEP::RandPoissonQ::operator() | ( | double | mean | ) |
Definition at line 127 of file RandPoissonQ.cc.
References fire().
|
staticprivate |
Definition at line 219 of file RandPoissonQ.cc.
References CLHEP::g, MAXIMUM_POISSON_DEVIATE, and CLHEP::RandGaussQ::shoot().
|
staticprivate |
Definition at line 195 of file RandPoissonQ.cc.
References poissonDeviateQuick().
Referenced by fire(), poissonDeviateQuick(), and shoot().
|
staticprivate |
Definition at line 257 of file RandPoissonQ.cc.
References BELOW, ENTRIES, FIRST_MU, CLHEP::HepRandomEngine::flat(), LAST_MU, CLHEP::poissonTables, S, CLHEP::s, and CLHEP::RandPoisson::shoot().
|
virtual |
Reimplemented from CLHEP::RandPoisson.
Definition at line 547 of file RandPoissonQ.cc.
References a0, a1, a2, CLHEP::DoubConv::dto2longs(), name(), CLHEP::RandPoisson::put(), and sigma.
|
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().
|
inlinestaticprotectedinherited |
Definition at line 105 of file RandPoisson.h.
References CLHEP::RandPoisson::oldm_st.
Referenced by CLHEP::RandPoisson::shoot().
|
inlinestaticprotectedinherited |
Definition at line 109 of file RandPoisson.h.
References CLHEP::RandPoisson::status_st.
Referenced by CLHEP::RandPoisson::shoot().
|
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.
|
private |
Definition at line 85 of file RandPoissonQ.cc.
References a0, a1, a2, CLHEP::RandPoisson::defaultMean, and sigma.
|
static |
Definition at line 119 of file RandPoissonQ.cc.
References CLHEP::HepRandom::getTheEngine(), and shoot().
Referenced by fire(), shoot(), and shootArray().
|
static |
Definition at line 143 of file RandPoissonQ.cc.
References CLHEP_THREAD_LOCAL, LAST_MU, poissonDeviateQuick(), poissonDeviateSmall(), and S.
|
static |
Definition at line 174 of file RandPoissonQ.cc.
|
static |
|
staticinherited |
Definition at line 306 of file Random.cc.
References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.
|
inlinestatic |
|
private |
Definition at line 127 of file RandPoissonQ.h.
Referenced by fire(), get(), put(), and setupForDefaultMu().
|
private |
Definition at line 128 of file RandPoissonQ.h.
Referenced by fire(), get(), put(), and setupForDefaultMu().
|
private |
Definition at line 129 of file RandPoissonQ.h.
Referenced by fire(), get(), put(), and setupForDefaultMu().
|
staticprivate |
Definition at line 145 of file RandPoissonQ.h.
Referenced by poissonDeviateSmall().
|
protectedinherited |
Definition at line 99 of file RandPoisson.h.
Referenced by CLHEP::RandPoisson::fire(), fire(), CLHEP::RandPoisson::fireArray(), fireArray(), CLHEP::RandPoisson::get(), CLHEP::RandPoisson::operator()(), CLHEP::RandPoisson::put(), and setupForDefaultMu().
|
staticprivate |
Definition at line 146 of file RandPoissonQ.h.
Referenced by poissonDeviateSmall().
|
staticprivate |
Definition at line 142 of file RandPoissonQ.h.
Referenced by poissonDeviateSmall().
|
staticprivate |
Definition at line 143 of file RandPoissonQ.h.
Referenced by fire(), poissonDeviateSmall(), and shoot().
|
privateinherited |
Definition at line 117 of file RandPoisson.h.
Referenced by CLHEP::RandPoisson::engine(), and CLHEP::RandPoisson::fire().
|
static |
Definition at line 108 of file RandPoissonQ.h.
Referenced by poissonDeviateQuick().
|
protectedinherited |
Definition at line 98 of file RandPoisson.h.
Referenced by CLHEP::RandPoisson::fire(), CLHEP::RandPoisson::get(), and CLHEP::RandPoisson::put().
|
staticprivateinherited |
Definition at line 123 of file RandPoisson.h.
Referenced by CLHEP::RandPoisson::getMaxMean().
|
privateinherited |
Definition at line 118 of file RandPoisson.h.
Referenced by CLHEP::RandPoisson::fire(), CLHEP::RandPoisson::get(), and CLHEP::RandPoisson::put().
|
staticprivateinherited |
Definition at line 122 of file RandPoisson.h.
Referenced by CLHEP::RandPoisson::getOldMean(), and CLHEP::RandPoisson::setOldMean().
|
staticprivate |
Definition at line 144 of file RandPoissonQ.h.
Referenced by fire(), poissonDeviateSmall(), and shoot().
|
staticprotectedinherited |
|
private |
Definition at line 130 of file RandPoissonQ.h.
Referenced by fire(), get(), put(), and setupForDefaultMu().
|
privateinherited |
Definition at line 118 of file RandPoisson.h.
Referenced by CLHEP::RandPoisson::fire(), CLHEP::RandPoisson::get(), and CLHEP::RandPoisson::put().
|
staticprivateinherited |
Definition at line 121 of file RandPoisson.h.
Referenced by CLHEP::RandPoisson::getPStatus(), and CLHEP::RandPoisson::setPStatus().