CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
P8RndmEngine.cc
Go to the documentation of this file.
3 #include "CLHEP/Random/RandomEngine.h"
4 
5 namespace gen {
6 
7  double P8RndmEngine::flat(void) {
8  if(randomEngine_ == nullptr) {
9  throwNullPtr();
10  }
11  return randomEngine_->flat();
12  }
13 
16  << "The Pythia 8 code attempted to a generate random number while\n"
17  << "the engine pointer was null. This might mean that the code\n"
18  << "was modified to generate a random number outside the event and\n"
19  << "beginLuminosityBlock methods, which is not allowed.\n";
20  }
21 }
virtual double flat() override
Definition: P8RndmEngine.cc:7
void throwNullPtr() const
Definition: P8RndmEngine.cc:14
CLHEP::HepRandomEngine * randomEngine_
Definition: P8RndmEngine.h:41