#include <P8RndmEngine.h>
Public Member Functions | |
virtual double | flat () override |
P8RndmEngine () | |
void | setRandomEngine (CLHEP::HepRandomEngine *v) |
Private Member Functions | |
void | throwNullPtr () const |
Private Attributes | |
CLHEP::HepRandomEngine * | randomEngine_ |
Description: Used to set an external random number engine in Pythia 8. Pythia 8 recognizes a class that has Pythia8::RndmEngine as a base class and a virtual flat method. If you pass a pointer to an object of this class to Pythia 8 it will use it to generate random numbers.
Independent of Pythia 8, one can set the CLHEP engine that this class uses in its flat method.
Definition at line 27 of file P8RndmEngine.h.
|
inline |
Definition at line 30 of file P8RndmEngine.h.
|
overridevirtual |
Definition at line 7 of file P8RndmEngine.cc.
References randomEngine_, and throwNullPtr().
Referenced by gen::Py8PtGun::generatePartonsAndHadronize(), gen::Py8JetGun::generatePartonsAndHadronize(), and gen::Py8EGun::generatePartonsAndHadronize().
|
inline |
|
private |
Definition at line 14 of file P8RndmEngine.cc.
References Exception, and edm::errors::LogicError.
Referenced by flat().
|
private |
Definition at line 41 of file P8RndmEngine.h.
Referenced by flat().