herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::StreamingRnd Struct Reference

Wrap around a vector of random numbers to behave as a stream of those. More...

#include <MatchboxPhasespace.h>

Public Member Functions

 StreamingRnd ()
 Default constructor.
 
 StreamingRnd (const double *newNumbers, size_t n)
 Construct from random numbers.
 
double operator() ()
 Return next random number.
 

Public Attributes

const double * numbers
 The random numbers.
 
size_t nRnd
 The number of random numbers available.
 

Detailed Description

Wrap around a vector of random numbers to behave as a stream of those.

Author
Simon Platzer

Definition at line 34 of file MatchboxPhasespace.h.

Constructor & Destructor Documentation

◆ StreamingRnd() [1/2]

Herwig::StreamingRnd::StreamingRnd ( )
inline

Default constructor.

Definition at line 49 of file MatchboxPhasespace.h.

◆ StreamingRnd() [2/2]

Herwig::StreamingRnd::StreamingRnd ( const double *  newNumbers,
size_t  n 
)
inlineexplicit

Construct from random numbers.

Definition at line 55 of file MatchboxPhasespace.h.

Member Function Documentation

◆ operator()()

double Herwig::StreamingRnd::operator() ( )
inline

Return next random number.

Definition at line 62 of file MatchboxPhasespace.h.

References nRnd, and numbers.

Member Data Documentation

◆ nRnd

size_t Herwig::StreamingRnd::nRnd

The number of random numbers available.

Definition at line 44 of file MatchboxPhasespace.h.

Referenced by operator()().

◆ numbers

const double* Herwig::StreamingRnd::numbers

The random numbers.

Definition at line 39 of file MatchboxPhasespace.h.

Referenced by operator()().


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