32 HepRandomEngine::operator double() {
36 HepRandomEngine::operator float() {
37 return float(
flat() );
40 HepRandomEngine::operator
unsigned int() {
41 return (
unsigned int)(
flat() * exponent_bit_32() );
46 const std::string & filename,
47 const std::string & classname,
48 const std::string & methodname) {
50 std::cerr <<
"Failure to find or open file " << filename <<
51 " in " << classname <<
"::" << methodname <<
"()\n";
58 std::cerr <<
"HepRandomEngine::put called -- no effect!\n";
62 std::cerr <<
"HepRandomEngine::get called -- no effect!\n";
67 return "HepRandomEngine-begin";
71 std::cerr <<
"HepRandomEngine::getState called -- no effect!\n";
76 std::cerr <<
"v=HepRandomEngine::put() called -- no data!\n";
77 std::vector<unsigned long> v;
81 std::cerr <<
"HepRandomEngine::get(v) called -- no effect!\n";
85 std::cerr <<
"HepRandomEngine::getState(v) called -- no effect!\n";
virtual std::vector< unsigned long > put() const
virtual std::istream & get(std::istream &is)
virtual ~HepRandomEngine()
static bool checkFile(std::istream &file, const std::string &filename, const std::string &classname, const std::string &methodname)
static HepRandomEngine * newEngine(std::istream &is)
static std::string beginTag()
std::ostream & operator<<(std::ostream &os, const HepRandom &dist)
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
virtual std::istream & getState(std::istream &is)
virtual std::ostream & put(std::ostream &os) const
std::istream & operator>>(std::istream &is, HepRandom &dist)
static constexpr double L
static HepRandomEngine * newEngine(std::istream &is)