hej is hosted by Hepforge, IPPP Durham
HEJ 2.1.4
High energy resummation for hadron colliders
Loading...
Searching...
No Matches
Mixmax.hh
Go to the documentation of this file.
1
8#pragma once
9
10#include "CLHEP/Random/MixMaxRng.h"
11#include "CLHEP/Random/Randomize.h"
12
13#include "HEJ/RNG.hh"
14
15namespace HEJ {
16
18
21 class Mixmax : public DefaultRNG {
22 public:
23 Mixmax() = default;
25 Mixmax(long seed): ran_{seed} {}
26
28 double flat() override {
29 return ran_.flat();
30 }
31
32 private:
33 CLHEP::MixMaxRng ran_;
34 };
35
36} // namespace HEJ
Interface for pseudorandom number generators.
MIXMAX random number generator.
Definition: Mixmax.hh:21
Mixmax()=default
Mixmax(long seed)
Constructor with explicit seed.
Definition: Mixmax.hh:25
double flat() override
Generate pseudorandom number between 0 and 1.
Definition: Mixmax.hh:28
Main HEJ 2 Namespace.
Definition: mainpage.dox:1
Helper struct with default implementations.
Definition: RNG.hh:37