CepGen 1.2.5
Central exclusive processes event generator
|
A random number generator. More...
#include <CepGen/Utils/RandomGenerator.h>
Public Member Functions | |
RandomGenerator (const ParametersList &) | |
Default constructor. | |
virtual int | uniformInt (int min, int max)=0 |
virtual double | uniform (double min=0., double max=1.)=0 |
virtual double | normal (double mean=0., double rms=1.)=0 |
virtual double | exponential (double exponent=1.) |
virtual double | breitWigner (double mean=0., double scale=1.) |
virtual double | landau (double location=0., double width=1.) |
virtual int | poisson (double mean=0.) |
template<typename T > | |
T * | engine () |
Retrieve the engine object. | |
const std::string & | name () const |
Module unique indexing name. | |
bool | operator== (const SteeredObject &oth) const |
Equality operator. | |
bool | operator!= (const SteeredObject &oth) const |
Inequality operator. | |
const ParametersList & | parameters () const override |
Module user-defined parameters. | |
virtual void | setParameters (const ParametersList ¶ms) override |
Set module parameters. | |
void | setDescribedParameters (const ParametersList ¶ms_orig) |
Set (documented) module parameters. | |
Static Public Member Functions | |
static ParametersDescription | description () |
Protected Member Functions | |
virtual void * | enginePtr () |
engine object | |
template<typename T > | |
T | steer (const std::string &key) const |
Retrieve a parameters as previously steered. | |
template<typename T , typename U > | |
U | steerAs (const std::string &key) const |
Retrieve a recasted parameters as previously steered. | |
std::string | steerName () const |
Retrieve module name from parameters. | |
std::string | steerPath (const std::string &key) const |
Retrieve a path from common search paths. | |
Protected Attributes | |
unsigned long long | seed_ |
const std::string | name_ |
Module unique indexing name. | |
ParametersList | params_ |
Module parameters. | |
Definition at line 31 of file RandomGenerator.h.
|
explicit |
Definition at line 24 of file RandomGenerator.cpp.
|
virtual |
Reimplemented in GSLRandomGenerator, STLRandomGenerator, and RandomGenerator.
Definition at line 33 of file RandomGenerator.cpp.
|
static |
Definition at line 53 of file RandomGenerator.cpp.
T * engine | ( | ) |
Definition at line 51 of file RandomGenerator.h.
|
protectedvirtual |
Definition at line 49 of file RandomGenerator.cpp.
|
virtual |
Reimplemented in GSLRandomGenerator, STLRandomGenerator, and RandomGenerator.
Definition at line 27 of file RandomGenerator.cpp.
|
virtual |
Reimplemented in GSLRandomGenerator, and RandomGenerator.
Definition at line 39 of file RandomGenerator.cpp.
|
inherited |
Definition at line 42 of file NamedModule.h.
|
pure virtual |
Implemented in GSLRandomGenerator, STLRandomGenerator, and RandomGenerator.
|
inherited |
Definition at line 51 of file SteeredObject.h.
|
inherited |
Definition at line 49 of file SteeredObject.h.
|
overridevirtualinherited |
Reimplemented from Steerable.
Definition at line 54 of file SteeredObject.h.
|
virtual |
Reimplemented in GSLRandomGenerator, STLRandomGenerator, and RandomGenerator.
Definition at line 44 of file RandomGenerator.cpp.
|
inherited |
Definition at line 73 of file SteeredObject.h.
|
overridevirtualinherited |
Reimplemented from Steerable.
Reimplemented in Initial, Remnants, CutsList, IncomingBeams, and Kinematics.
Definition at line 62 of file SteeredObject.h.
|
protectedinherited |
Definition at line 39 of file Steerable.h.
Definition at line 44 of file Steerable.h.
|
protectedinherited |
Definition at line 48 of file Steerable.h.
|
protectedinherited |
Definition at line 30 of file Steerable.cpp.
|
pure virtual |
Implemented in GSLRandomGenerator, STLRandomGenerator, and RandomGenerator.
|
pure virtual |
Implemented in GSLRandomGenerator, STLRandomGenerator, and RandomGenerator.
|
protectedinherited |
Definition at line 45 of file NamedModule.h.
|
mutableprotectedinherited |
Definition at line 50 of file Steerable.h.
|
protected |
Definition at line 56 of file RandomGenerator.h.