![]() |
EpIC 1.1.0
Monte Carlo generator for exclusive processes
|
Definition of module for generation of random numbers. More...
#include <RandomNumberModule.h>
Public Member Functions | |
| RandomNumberModule (const std::string &className) | |
| RandomNumberModule (const RandomNumberModule &other) | |
| virtual | ~RandomNumberModule () |
| virtual bool | runTest () const |
| virtual double | diceFlat ()=0 |
| double | diceFlat (double min, double max) |
| virtual double | diceNormal ()=0 |
| double | diceNormal (double mean, double sigma) |
Public Member Functions inherited from EPIC::EpicModuleObject | |
| virtual | ~EpicModuleObject () |
| virtual bool | runTest () const =0 |
| size_t | getSeed () const |
Static Public Attributes | |
| static const std::string | RANDOM_NUMBER_MODULE_CLASS_NAME |
| Class name used in parsing XML. | |
Protected Member Functions | |
| virtual void | initModule () |
| virtual void | isModuleWellConfigured () |
| double | diceNormalFromFlat () |
Protected Member Functions inherited from EPIC::EpicModuleObject | |
| EpicModuleObject (const std::string &className, PARTONS::ChannelType::Type channelType) | |
| EpicModuleObject (const EpicModuleObject &other) | |
Additional Inherited Members | |
Protected Attributes inherited from EPIC::EpicModuleObject | |
| size_t | m_seed |
| Random seed. | |
Definition of module for generation of random numbers.
This class provides a definition of modules used to generate random numbers.
| EPIC::RandomNumberModule::RandomNumberModule | ( | const std::string & | className | ) |
Constructor.
| EPIC::RandomNumberModule::RandomNumberModule | ( | const RandomNumberModule & | other | ) |
Copy constructor.
|
virtual |
Destructor.
|
pure virtual |
Dice double precision number from flat distribution in range [0, 1)
Implemented in EPIC::RandomNumberGSL.
| double EPIC::RandomNumberModule::diceFlat | ( | double | min, |
| double | max | ||
| ) |
Dice double precision number from flat distribution in given range
| min | Min |
| max | Max |
|
pure virtual |
Dice double precision number from normal distribution with mean = 0 and sigma = 1
Implemented in EPIC::RandomNumberGSL.
| double EPIC::RandomNumberModule::diceNormal | ( | double | mean, |
| double | sigma | ||
| ) |
Dice double precision number from normal distribution with given mean and sigma
| mean | Mean |
| sigma | Sigma |
|
protected |
Generate normal from flat distribution. Useful if used method does not provide a genuine method for generation according to normal distribution.
|
virtual |
Definition of test.
Implements EPIC::EpicModuleObject.