Herwig 7 is hosted by Hepforge, IPPP Durham
 Herwig  7.1.4
Herwig::RandomHelpers Namespace Reference

Phase space generation utilities. More...

## Classes

struct  BreitWigner
The density 1/((x-z)^2 + abs(w z)) More...

struct  Container
A density container. More...

struct  Expression
A density expression. More...

struct  Flat
A constant density. More...

struct  Generator
Define the generator concept. More...

class  Generator< BreitWigner >
Generate x with density 1/((x-z)^2 + abs(w z)) More...

class  Generator< Container< Density > >
Container class for a general density. More...

struct  Generator< Expression >
Container base class for a general density. More...

class  Generator< Flat >
Generate x flat. More...

class  Generator< Inverse >
Generate x with density 1/|x-z|. More...

struct  Generator< Piecewise< Density, ToBeDefined > >
Generate a piecewise defined density. More...

class  Generator< Piecewise< Density1, Density2 > >
Generate a piecewise defined density. More...

struct  Generator< Piecewise< ToBeDefined, ToBeDefined > >
Generate a piecewise defined density. More...

class  Generator< Power >
Generate x with density |(x-z)|^p. More...

class  Generator< Remap< Density > >
Generate a density remapped to a new interval. More...

class  Generator< Rescale< Density > >
Generate a rescaled density. More...

class  Generator< Sum< Density1, Density2 > >
Generate the sum of two densities. More...

class  Generator< Zero >
Generate nothing. More...

struct  Inverse
A density 1/|x-z|. More...

struct  matcher
Indicate that the argument density should be matched to the previous one in a piecewise definition. More...

struct  on
Indicate remapping of a density. More...

struct  Piecewise
A piecewise defined density. More...

struct  Power
The density |(x-z)|^p. More...

struct  Remap
Remap a density to a new interval. More...

struct  Rescale
Rescale a density. More...

struct  Sum

struct  ToBeDefined
Placeholder when constructing piecewise defined densities. More...

struct  Zero
A zero density. More...

## Functions

double sign (double x)
Small helper. More...

template<class Density >
pair< double, double > generate (const Generator< Density > &gen, double r)
Generate a random variable and return its weight. More...

template<class Density >
Generator< Remap< Density > > operator* (const Generator< Density > &gen, const on &interval)
Construct a remapped density generator. More...

template<class Density >
Generator< Rescale< Density > > operator* (double a, const Generator< Density > &gen)
Construct a rescaled density. More...

template<class Density1 , class Density2 >
Generator< Sum< Density1, Density2 > > operator+ (const Generator< Density1 > &first, const Generator< Density2 > &second)
Construct the sum of two densities. More...

template<class Density >
matcher< Density > match (const Generator< Density > &gen)
Indicate that the argument density should be matched to the previous one in a piecewise definition. More...

template<class Density1 , class Density2 >
Generator< Sum< Density1, Rescale< Density2 > > > operator+ (const Generator< Density1 > &first, const matcher< Density2 > &second)
Construct the sum of two densities, matching the first summand at its upper bound to the second at its lower bound. More...

Generator< Piecewise< ToBeDefined, ToBeDefined > > piecewise ()
Construct a piecewise defined density. More...

Generator< Flatflat (double low, double up)
Construct a constant density. More...

Generator< Zerozero (double low, double up)
Construct a zero density. More...

Generator< Inverseinverse (double z, double lower, double upper)
Construct the density 1/|x-z|. More...

Generator< Powerpower (double z, double p, double lower, double upper)
Construct the density |(x-z)|^p. More...

Generator< BreitWignerbreitWigner (double z, double w, double lower, double upper)
Construct the density 1/((x-z)^2 + abs(w z)) More...

## Detailed Description

Phase space generation utilities.