Page MenuHomeHEPForge

No OneTemporary

diff --git a/include/RHEJ/Mixmax.hh b/include/RHEJ/Mixmax.hh
new file mode 100644
index 0000000..2bcbd42
--- /dev/null
+++ b/include/RHEJ/Mixmax.hh
@@ -0,0 +1,26 @@
+/** \file
+ * \brief The Mixmax random number generator
+ */
+#pragma once
+
+#include <CLHEP/Random/Randomize.h>
+#include <CLHEP/Random/MixMaxRng.h>
+
+#include "RHEJ/RNG.hh"
+
+namespace RHEJ {
+
+ class Mixmax : public DefaultRNG {
+ public:
+ Mixmax() = default;
+ Mixmax(long seed): ran_{seed} {};
+
+ double flat() override {
+ return ran_.flat();
+ };
+
+ private:
+ CLHEP::MixMaxRng ran_;
+ };
+
+}

File Metadata

Mime Type
text/x-diff
Expires
Mon, Jan 20, 9:12 PM (21 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4242414
Default Alt Text
(598 B)

Event Timeline