34HepRandomEngine::operator double() {
38HepRandomEngine::operator float() {
39 return float( flat() );
42HepRandomEngine::operator
unsigned int() {
43 return (
unsigned int)( flat() * exponent_bit_32() );
48 const std::string & filename,
49 const std::string & classname,
50 const std::string & methodname) {
52 std::cerr <<
"Failure to find or open file " << filename <<
53 " in " << classname <<
"::" << methodname <<
"()\n";
60 std::cerr <<
"HepRandomEngine::put called -- no effect!\n";
64 std::cerr <<
"HepRandomEngine::get called -- no effect!\n";
69 return "HepRandomEngine-begin";
73 std::cerr <<
"HepRandomEngine::getState called -- no effect!\n";
78 std::cerr <<
"v=HepRandomEngine::put() called -- no data!\n";
79 std::vector<unsigned long> v;
83 std::cerr <<
"HepRandomEngine::get(v) called -- no effect!\n";
87 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 &os, const HepRandom &dist)