File indexing completed on 2024-05-02 05:09:44
0001 #ifndef GeneratorInterface_Pythia8Interface_P8RndmEngine_h
0002 #define GeneratorInterface_Pythia8Interface_P8RndmEngine_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #include "Pythia8/Basics.h"
0020
0021 namespace CLHEP {
0022 class HepRandomEngine;
0023 }
0024
0025 namespace gen {
0026
0027 class P8RndmEngine : public Pythia8::RndmEngine {
0028 public:
0029 P8RndmEngine() : randomEngine_(nullptr) {}
0030
0031
0032 double flat() override;
0033
0034 void setRandomEngine(CLHEP::HepRandomEngine* v) { randomEngine_ = v; }
0035
0036 private:
0037 void throwNullPtr() const;
0038
0039 CLHEP::HepRandomEngine* randomEngine_;
0040 };
0041 typedef std::shared_ptr<P8RndmEngine> P8RndmEnginePtr;
0042 }
0043 #endif