Herwig++
2.7.0
|
This is a pure static class which provides some useful methods for smearing. More...
#include <Smearing.h>
Static Public Member Functions | |
static bool | gaussianSmearing (const double mean, const double sigma, double &x) |
It returns true if succeed in drawing a value (x) drawn from a gaussian of specified mean and sigma, false otherwise. | |
static bool | azimuthalSmearing (const double r, double &vx, double &vy) |
It returns true if it succeed in drawing a rotated 2-vector (vx,vy) of given length r , false otherwise. | |
Private Member Functions | |
Smearing () | |
Pure static class so no default constructor. | |
Smearing (const Smearing &x) | |
Pure static class so no copy constructor. | |
Smearing & | operator= (const Smearing &x) |
The assignment operator is private and must never be called. |
This is a pure static class which provides some useful methods for smearing.
Definition at line 21 of file Smearing.h.
static bool Herwig::Smearing::gaussianSmearing | ( | const double | mean, |
const double | sigma, | ||
double & | x | ||
) | [static] |
It returns true if succeed in drawing a value (x) drawn from a gaussian of specified mean and sigma, false otherwise.
Indeed, it generates uncorrelated pairs and throws one of them away.
The assignment operator is private and must never be called.
In fact, it should not even be implemented.