61 {
62 HepRandomEngine* eptr;
63 std::string tag;
64 is >> tag;
65 eptr = makeAnEngine <HepJamesRandom> (tag, is); if (eptr) return eptr;
66 eptr = makeAnEngine <RanecuEngine> (tag, is); if (eptr) return eptr;
67 eptr = makeAnEngine <Ranlux64Engine> (tag, is); if (eptr) return eptr;
68 eptr = makeAnEngine <RanluxppEngine> (tag, is); if (eptr) return eptr;
69 eptr = makeAnEngine <MixMaxRng> (tag, is); if (eptr) return eptr;
70 eptr = makeAnEngine <MTwistEngine> (tag, is); if (eptr) return eptr;
71 eptr = makeAnEngine <DRand48Engine> (tag, is); if (eptr) return eptr;
72 eptr = makeAnEngine <TripleRand> (tag, is); if (eptr) return eptr;
73 eptr = makeAnEngine <DualRand> (tag, is); if (eptr) return eptr;
74 eptr = makeAnEngine <Hurd160Engine> (tag, is); if (eptr) return eptr;
75 eptr = makeAnEngine <Hurd288Engine> (tag, is); if (eptr) return eptr;
76 eptr = makeAnEngine <RandEngine> (tag, is); if (eptr) return eptr;
77 eptr = makeAnEngine <RanluxEngine> (tag, is); if (eptr) return eptr;
78 eptr = makeAnEngine <RanshiEngine> (tag, is); if (eptr) return eptr;
79 eptr = makeAnEngine <NonRandomEngine> (tag, is); if (eptr) return eptr;
80 is.clear(std::ios::badbit | is.rdstate());
81 std::cerr <<
82 "Input mispositioned or bad in reading anonymous engine\n"
83 << "\nBegin-tag read was: " << tag
84 << "\nInput stream is probably fouled up\n";
85 return eptr;
86}