3 #include <CLHEP/Random/RandomEngine.h>
5 #include <ThePEG/Interface/ClassDocumentation.h>
6 #include <ThePEG/Interface/InterfacedBase.h>
7 #include <ThePEG/Interface/Parameter.h>
8 #include <ThePEG/Utilities/ClassTraits.h>
10 #include <ThePEG/Repository/StandardRandom.h>
16 using namespace ThePEG;
29 RandomGenerator::flush();
35 nextNumber = theNumbers.begin();
36 for(RndVector::iterator it = nextNumber; it != theNumbers.end(); ++it)
47 RandomGenerator::doinit();
51 throw InitException();
53 proxy->instance =
this;
62 static ClassDocumentation<RandomEngineGlue> documentation
63 (
"Interface to the CMSSW RandomNumberEngine.");
64 static Parameter<RandomEngineGlue, ProxyID> interfaceProxyID
65 (
"ProxyID",
"The ProxyID.",
67 ProxyID(), ProxyID(),
false,
false,
false);
69 interfaceProxyID.rank(11);
CLHEP::HepRandomEngine * randomEngine
CLHEP::HepRandomEngine & getEngineReference()
static boost::shared_ptr< Proxy > find(ProxyID id)
virtual void setSeed(long seed)
virtual ~RandomEngineGlue()
CLHEP::HepRandomEngine * randomEngine
static ClassDescription< RandomEngineGlue > initRandomEngineGlue