18#include "CLHEP/Random/defs.h"
19#include "CLHEP/Random/RandomEngine.h"
20#include "CLHEP/Random/EngineFactory.h"
40HepRandomEngine::operator float() {
41 return float( flat() );
44HepRandomEngine::operator
unsigned int() {
45 return (
unsigned int)( flat() * exponent_bit_32() );
50 const std::string & filename,
51 const std::string & classname,
52 const std::string & methodname) {
54 std::cerr <<
"Failure to find or open file " << filename <<
55 " in " << classname <<
"::" << methodname <<
"()\n";
62 std::cerr <<
"HepRandomEngine::put called -- no effect!\n";
66 std::cerr <<
"HepRandomEngine::get called -- no effect!\n";
71 return "HepRandomEngine-begin";
75 std::cerr <<
"HepRandomEngine::getState called -- no effect!\n";
80 std::cerr <<
"v=HepRandomEngine::put() called -- no data!\n";
81 std::vector<unsigned long> v;
85 std::cerr <<
"HepRandomEngine::get(v) called -- no effect!\n";
89 std::cerr <<
"HepRandomEngine::getState(v) called -- no effect!\n";
static HepRandomEngine * newEngine(std::istream &is)
virtual std::ostream & put(std::ostream &os) const
virtual ~HepRandomEngine()
virtual std::istream & getState(std::istream &is)
static bool checkFile(std::istream &file, const std::string &filename, const std::string &classname, const std::string &methodname)
virtual std::istream & get(std::istream &is)
static HepRandomEngine * newEngine(std::istream &is)
static std::string beginTag()
virtual std::vector< unsigned long > put() const
std::istream & operator>>(std::istream &is, HepRandom &dist)
std::ostream & operator<<(std::ostream &s, const HepDiagMatrix &q)