herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::RandomHelpers::Generator< BreitWigner > Class Reference

Generate x with density 1/((x-z)^2 + abs(w z)) More...

#include <RandomHelpers.h>

Public Member Functions

 Generator (double z, double w, double l, double u)
 Construct from pole, width and boundaries.
 
double lower () const
 Return the lower bound of the density generated.
 
double upper () const
 Return the upper bound of the density generated.
 
double pole () const
 Return the position of the pole.
 
double width () const
 Return the width.
 
double scale () const
 Return the scale for random numbers.
 
double offset () const
 Return the offset for random mnumbers.
 
double sqrtWidth () const
 The square root of width times pole.
 
double value (double x) const
 Return the density's value.
 
double normalization () const
 Return the density's normalization.
 
double operator() (double r) const
 Generate the return value according to the implemented density, given a flat random number on the unit interval.
 

Private Attributes

double thePole
 The position of the pole.
 
double theWidth
 The width.
 
double theLower
 The lower bound.
 
double theUpper
 The upper bound.
 
double theScale
 Scale for random numbers.
 
double theOffset
 Offset for random mnumbers.
 
double theSqrtWidth
 The square root of width times pole.
 

Detailed Description

Generate x with density 1/((x-z)^2 + abs(w z))

Author
Simon Platzer

Definition at line 1231 of file RandomHelpers.h.

Constructor & Destructor Documentation

◆ Generator()

Herwig::RandomHelpers::Generator< BreitWigner >::Generator ( double  z,
double  w,
double  l,
double  u 
)
inline

Construct from pole, width and boundaries.

Definition at line 1273 of file RandomHelpers.h.

Member Function Documentation

◆ lower()

double Herwig::RandomHelpers::Generator< BreitWigner >::lower ( ) const
inline

Return the lower bound of the density generated.

Definition at line 1287 of file RandomHelpers.h.

◆ normalization()

double Herwig::RandomHelpers::Generator< BreitWigner >::normalization ( ) const
inline

Return the density's normalization.

Definition at line 1331 of file RandomHelpers.h.

◆ offset()

double Herwig::RandomHelpers::Generator< BreitWigner >::offset ( ) const
inline

Return the offset for random mnumbers.

Definition at line 1312 of file RandomHelpers.h.

◆ operator()()

double Herwig::RandomHelpers::Generator< BreitWigner >::operator() ( double  r) const
inline

Generate the return value according to the implemented density, given a flat random number on the unit interval.

Definition at line 1339 of file RandomHelpers.h.

References Herwig::RandomHelpers::Generator< Density >::lower(), and Herwig::RandomHelpers::Generator< Density >::upper().

◆ pole()

double Herwig::RandomHelpers::Generator< BreitWigner >::pole ( ) const
inline

Return the position of the pole.

Definition at line 1297 of file RandomHelpers.h.

◆ scale()

double Herwig::RandomHelpers::Generator< BreitWigner >::scale ( ) const
inline

Return the scale for random numbers.

Definition at line 1307 of file RandomHelpers.h.

◆ sqrtWidth()

double Herwig::RandomHelpers::Generator< BreitWigner >::sqrtWidth ( ) const
inline

The square root of width times pole.

Definition at line 1317 of file RandomHelpers.h.

◆ upper()

double Herwig::RandomHelpers::Generator< BreitWigner >::upper ( ) const
inline

Return the upper bound of the density generated.

Definition at line 1292 of file RandomHelpers.h.

◆ value()

double Herwig::RandomHelpers::Generator< BreitWigner >::value ( double  x) const
inline

◆ width()

double Herwig::RandomHelpers::Generator< BreitWigner >::width ( ) const
inline

Return the width.

Definition at line 1302 of file RandomHelpers.h.

Member Data Documentation

◆ theLower

double Herwig::RandomHelpers::Generator< BreitWigner >::theLower
private

The lower bound.

Definition at line 1246 of file RandomHelpers.h.

◆ theOffset

double Herwig::RandomHelpers::Generator< BreitWigner >::theOffset
private

Offset for random mnumbers.

Definition at line 1261 of file RandomHelpers.h.

◆ thePole

double Herwig::RandomHelpers::Generator< BreitWigner >::thePole
private

The position of the pole.

Definition at line 1236 of file RandomHelpers.h.

◆ theScale

double Herwig::RandomHelpers::Generator< BreitWigner >::theScale
private

Scale for random numbers.

Definition at line 1256 of file RandomHelpers.h.

◆ theSqrtWidth

double Herwig::RandomHelpers::Generator< BreitWigner >::theSqrtWidth
private

The square root of width times pole.

Definition at line 1266 of file RandomHelpers.h.

◆ theUpper

double Herwig::RandomHelpers::Generator< BreitWigner >::theUpper
private

The upper bound.

Definition at line 1251 of file RandomHelpers.h.

◆ theWidth

double Herwig::RandomHelpers::Generator< BreitWigner >::theWidth
private

The width.

Definition at line 1241 of file RandomHelpers.h.


The documentation for this class was generated from the following file: