herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
exsample::sampling_selector< Random > Struct Template Reference

flat sampling selector More...

#include <selectors.h>

Public Member Functions

 sampling_selector ()
 the default constructor
 
 sampling_selector (const Random &r, bool comp=true)
 the standard constructor
 
std::pair< bool, bool > use (cell &parent, const cell &first_child, const cell &second_child) const
 return which of the children cells should be considered
 
bool use (cell &leaf) const
 return true, if the leaf cell should be considered
 

Public Attributes

Random rnd_gen
 The random number generator to be used.
 
bool compensate
 Whether or not compensation is needed.
 

Detailed Description

template<class Random>
struct exsample::sampling_selector< Random >

flat sampling selector

Definition at line 20 of file selectors.h.

Constructor & Destructor Documentation

◆ sampling_selector() [1/2]

template<class Random >
exsample::sampling_selector< Random >::sampling_selector ( )
inline

the default constructor

Definition at line 23 of file selectors.h.

◆ sampling_selector() [2/2]

template<class Random >
exsample::sampling_selector< Random >::sampling_selector ( const Random &  r,
bool  comp = true 
)
inlineexplicit

the standard constructor

Definition at line 27 of file selectors.h.

Member Data Documentation

◆ compensate

template<class Random >
bool exsample::sampling_selector< Random >::compensate

Whether or not compensation is needed.

Definition at line 42 of file selectors.h.

◆ rnd_gen

template<class Random >
Random exsample::sampling_selector< Random >::rnd_gen

The random number generator to be used.

Definition at line 39 of file selectors.h.


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