Geant4-11
|
#include <RandGeneral.h>
Public Member Functions | |
HepRandomEngine & | engine () |
double | fire () |
void | fireArray (const int size, double *vect) |
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() () |
std::ostream & | put (std::ostream &os) const |
RandGeneral (const double *aProbFunc, int theProbSize, int IntType=0) | |
RandGeneral (HepRandomEngine &anEngine, const double *aProbFunc, int theProbSize, int IntType=0) | |
RandGeneral (HepRandomEngine *anEngine, const double *aProbFunc, int theProbSize, int IntType=0) | |
double | shoot () |
double | shoot (HepRandomEngine *anEngine) |
void | shootArray (const int size, double *vect) |
void | shootArray (HepRandomEngine *anEngine, const int size, double *vect) |
virtual | ~RandGeneral () |
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 void | showEngineStatus () |
Static Protected Attributes | |
static const long | seedTable [215][2] |
Private Member Functions | |
double | mapRandom (double rand) const |
void | prepareTable (const double *aProbFunc) |
void | useFlatDistribution () |
Private Attributes | |
int | InterpolationType |
std::shared_ptr< HepRandomEngine > | localEngine |
int | nBins |
double | oneOverNbins |
std::vector< double > | theIntegralPdf |
Definition at line 38 of file RandGeneral.h.
CLHEP::RandGeneral::RandGeneral | ( | const double * | aProbFunc, |
int | theProbSize, | ||
int | IntType = 0 |
||
) |
Definition at line 66 of file RandGeneral.cc.
References prepareTable().
CLHEP::RandGeneral::RandGeneral | ( | HepRandomEngine & | anEngine, |
const double * | aProbFunc, | ||
int | theProbSize, | ||
int | IntType = 0 |
||
) |
Definition at line 77 of file RandGeneral.cc.
References prepareTable().
CLHEP::RandGeneral::RandGeneral | ( | HepRandomEngine * | anEngine, |
const double * | aProbFunc, | ||
int | theProbSize, | ||
int | IntType = 0 |
||
) |
Definition at line 89 of file RandGeneral.cc.
References prepareTable().
|
virtual |
Definition at line 174 of file RandGeneral.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 124 of file RandGeneral.h.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 59 of file RandGeneral.cc.
References localEngine.
double CLHEP::RandGeneral::fire | ( | ) |
Referenced by fireArray().
void CLHEP::RandGeneral::fireArray | ( | const int | size, |
double * | vect | ||
) |
Definition at line 240 of file RandGeneral.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.
Definition at line 266 of file RandGeneral.cc.
References InterpolationType, CLHEP::DoubConv::longs2double(), name(), nBins, oneOverNbins, CLHEP::possibleKeywordInput(), and theIntegralPdf.
|
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(), 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().
|
private |
Definition at line 182 of file RandGeneral.cc.
References InterpolationType, nBins, oneOverNbins, and theIntegralPdf.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 58 of file RandGeneral.cc.
Referenced by source.g4viscp.G4Scene::create_scene(), get(), mcscore.MCParticle::printout(), put(), and source.g4viscp.G4Scene::update_scene().
|
virtual |
Reimplemented from CLHEP::HepRandom.
|
private |
Definition at line 101 of file RandGeneral.cc.
References InterpolationType, nBins, oneOverNbins, theIntegralPdf, and useFlatDistribution().
Referenced by RandGeneral().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 249 of file RandGeneral.cc.
References CLHEP::DoubConv::dto2longs(), InterpolationType, name(), nBins, oneOverNbins, and theIntegralPdf.
|
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().
|
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.
|
inline |
Referenced by G4JAEAPolarizedElasticScatteringModel::SampleSecondaries(), and shootArray().
double CLHEP::RandGeneral::shoot | ( | HepRandomEngine * | anEngine | ) |
|
inline |
void CLHEP::RandGeneral::shootArray | ( | HepRandomEngine * | anEngine, |
const int | size, | ||
double * | vect | ||
) |
Definition at line 230 of file RandGeneral.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.
|
private |
Definition at line 157 of file RandGeneral.cc.
References nBins, oneOverNbins, and theIntegralPdf.
Referenced by prepareTable().
|
private |
Definition at line 134 of file RandGeneral.h.
Referenced by get(), mapRandom(), prepareTable(), and put().
|
private |
Definition at line 130 of file RandGeneral.h.
Referenced by engine().
|
private |
Definition at line 132 of file RandGeneral.h.
Referenced by get(), mapRandom(), prepareTable(), put(), and useFlatDistribution().
|
private |
Definition at line 133 of file RandGeneral.h.
Referenced by get(), mapRandom(), prepareTable(), put(), and useFlatDistribution().
|
staticprotectedinherited |
|
private |
Definition at line 131 of file RandGeneral.h.
Referenced by get(), mapRandom(), prepareTable(), put(), and useFlatDistribution().