CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
P8RndmEngine.h
Go to the documentation of this file.
1 #ifndef GeneratorInterface_Pythia8Interface_P8RndmEngine_h
2 #define GeneratorInterface_Pythia8Interface_P8RndmEngine_h
3 
19 #include "Basics.h"
20 
21 namespace CLHEP {
22  class HepRandomEngine;
23 }
24 
25 namespace gen {
26 
27  class P8RndmEngine : public Pythia8::RndmEngine {
28  public:
29 
31 
32  // Routine for generating a random number.
33  virtual double flat() override;
34 
35  void setRandomEngine(CLHEP::HepRandomEngine* v) { randomEngine_ = v; }
36 
37  private:
38 
39  void throwNullPtr() const;
40 
41  CLHEP::HepRandomEngine* randomEngine_;
42  };
43 }
44 #endif
#define nullptr
virtual double flat() override
Definition: P8RndmEngine.cc:7
double v[5][pyjets_maxn]
void setRandomEngine(CLHEP::HepRandomEngine *v)
Definition: P8RndmEngine.h:35
void throwNullPtr() const
Definition: P8RndmEngine.cc:14
CLHEP::HepRandomEngine * randomEngine_
Definition: P8RndmEngine.h:41