#include <P8RndmEngine.h>
Public Member Functions | |
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 29 of file P8RndmEngine.h.
|
override |
Definition at line 7 of file P8RndmEngine.cc.
References randomEngine_, and throwNullPtr().
Referenced by gen::Py8MassGun::generatePartonsAndHadronize(), gen::Py8PtAndDxyGun::generatePartonsAndHadronize(), gen::Py8PtGun::generatePartonsAndHadronize(), gen::Py8PtotGun::generatePartonsAndHadronize(), gen::Py8JetGun::generatePartonsAndHadronize(), and gen::Py8EGun::generatePartonsAndHadronize().
|
inline |
Definition at line 34 of file P8RndmEngine.h.
References randomEngine_, and gen::v.
Referenced by gen::Py8InterfaceBase::p8SetRandomEngine().
|
private |
Definition at line 14 of file P8RndmEngine.cc.
References Exception, and edm::errors::LogicError.
Referenced by flat().
|
private |
Definition at line 39 of file P8RndmEngine.h.
Referenced by flat(), and setRandomEngine().