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> 29 RandomGenerator::flush();
37 <<
"The PEG code attempted to a generate random number while\n" 38 <<
"the engine pointer was null. This might mean that the code\n" 39 <<
"was tried to generate a random number outside the event and\n" 40 <<
"beginLuminosityBlock methods, which is not allowed.\n";
42 nextNumber = theNumbers.begin();
43 for(RndVector::iterator it = nextNumber; it != theNumbers.end(); ++it)
54 RandomGenerator::doinit();
58 throw InitException();
60 proxy->instance =
this;
70 static ClassDocumentation<RandomEngineGlue> documentation
71 (
"Interface to the CMSSW RandomNumberEngine.");
72 static Parameter<RandomEngineGlue, ProxyID> interfaceProxyID
73 (
"ProxyID",
"The ProxyID.",
75 ProxyID(), ProxyID(),
false,
false,
false);
77 interfaceProxyID.rank(11);
CLHEP::HepRandomEngine * randomEngine
void setSeed(long seed) override
~RandomEngineGlue() override
void doinit() noexcept(false) override
static boost::shared_ptr< Proxy > find(ProxyID id)
CLHEP::HepRandomEngine * randomEngine
static ClassDescription< RandomEngineGlue > initRandomEngineGlue