|
| | RandGauss (HepRandomEngine &anEngine, double mean=0.0, double stdDev=1.0) |
| |
| | RandGauss (HepRandomEngine *anEngine, double mean=0.0, double stdDev=1.0) |
| |
| virtual | ~RandGauss () |
| |
| double | fire () |
| |
| double | fire (double mean, double stdDev) |
| |
| void | fireArray (const int size, double *vect) |
| |
| void | fireArray (const int size, double *vect, double mean, double stdDev) |
| |
| virtual double | operator() () |
| |
| virtual double | operator() (double mean, double stdDev) |
| |
| std::string | name () const |
| |
| HepRandomEngine & | engine () |
| |
| std::ostream & | put (std::ostream &os) const |
| |
| std::istream & | get (std::istream &is) |
| |
| bool | getF () const |
| |
| void | setF (bool val) |
| |
Public Member Functions inherited from CLHEP::HepRandom |
| | HepRandom () |
| |
| | HepRandom (long seed) |
| |
| | HepRandom (HepRandomEngine &algorithm) |
| |
| | HepRandom (HepRandomEngine *algorithm) |
| |
| virtual | ~HepRandom () |
| |
| double | flat () |
| |
| void | flatArray (const int size, double *vect) |
| |
| double | flat (HepRandomEngine *theNewEngine) |
| |
| void | flatArray (HepRandomEngine *theNewEngine, const int size, double *vect) |
| |
|
| static double | shoot () |
| |
| static double | shoot (double mean, double stdDev) |
| |
| static void | shootArray (const int size, double *vect, double mean=0.0, double stdDev=1.0) |
| |
| static double | shoot (HepRandomEngine *anEngine) |
| |
| static double | shoot (HepRandomEngine *anEngine, double mean, double stdDev) |
| |
| static void | shootArray (HepRandomEngine *anEngine, const int size, double *vect, double mean=0.0, double stdDev=1.0) |
| |
| static std::string | distributionName () |
| |
| static bool | getFlag () |
| |
| static void | setFlag (bool val) |
| |
| 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) |
| |
Static Public Member Functions inherited from CLHEP::HepRandom |
| static void | setTheSeed (long seed, int lux=3) |
| |
| static long | getTheSeed () |
| |
| static void | setTheSeeds (const long *seeds, int aux=-1) |
| |
| static const long * | getTheSeeds () |
| |
| static void | getTheTableSeeds (long *seeds, int index) |
| |
| static HepRandom * | getTheGenerator () |
| |
| static void | setTheEngine (HepRandomEngine *theNewEngine) |
| |
| static HepRandomEngine * | getTheEngine () |
| |
| 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) |
| |
| static std::ostream & | saveStaticRandomStates (std::ostream &os) |
| |
| static std::istream & | restoreStaticRandomStates (std::istream &is) |
| |
| static void | showEngineStatus () |
| |
| static int | createInstance () |
| |
| static std::string | distributionName () |
| |
- Author
Definition at line 41 of file RandGauss.h.
| std::istream & CLHEP::RandGauss::get |
( |
std::istream & |
is | ) |
|
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandGaussQ, and CLHEP::RandGaussZiggurat.
Definition at line 255 of file RandGauss.cc.
References plottest35::c1, defaultMean, defaultStdDev, CLHEP::DoubConv::longs2double(), name(), and CLHEP::possibleKeywordInput().
Referenced by CLHEP::RandGaussZiggurat::get(), and CLHEP::RandGaussQ::get().
258 if (inName !=
name()) {
259 is.clear(std::ios::badbit | is.rdstate());
260 std::cerr <<
"Mismatch when expecting to read state of a "
261 <<
name() <<
" distribution\n"
262 <<
"Name found was " << inName
263 <<
"\nistream is left in the badbit state\n";
269 std::vector<unsigned long> t(2);
275 if (ng ==
"nextGauss") {
283 if ( (!is) || (c1 !=
"Mean:") || (c2 !=
"Sigma:") ) {
284 std::cerr <<
"i/o problem while expecting to read state of a "
285 <<
name() <<
" distribution\n"
286 <<
"default mean and/or sigma could not be read\n";
289 is >> c1 >> c2 >> nextGauss;
290 if ( (!is) || (c1 !=
"RANDGAUSS") ) {
291 is.clear(std::ios::badbit | is.rdstate());
292 std::cerr <<
"Failure when reading caching state of RandGauss\n";
295 if (c2 ==
"CACHED_GAUSSIAN:") {
297 }
else if (c2 ==
"NO_CACHED_GAUSSIAN:") {
300 is.clear(std::ios::badbit | is.rdstate());
301 std::cerr <<
"Unexpected caching state keyword of RandGauss:" << c2
302 <<
"\nistream is left in the badbit state\n";
bool possibleKeywordInput(IS &is, const std::string &key, T &t)
static double longs2double(const std::vector< unsigned long > &v)