herwig is hosted by Hepforge, IPPP Durham
Herwig++  2.7.0
Herwig::ProjectingSampler Class Reference

ProjectingSampler does adaption from projections of the integrand. More...

#include <ProjectingSampler.h>

Inheritance diagram for Herwig::ProjectingSampler:

List of all members.

Public Member Functions

virtual void generate (bool noMaxInfo=false)
 Generate the next point; store the point in lastPoint() and its weight using select(); if noMaxInfo is true, do not throw NewMaximum or UpdateCrossSections exceptions.
virtual void initialize (bool progress)
 Initialize this bin sampler.
void adapt ()
 Finish an iteration, performing the adaption.
virtual void select (double weight)
 Select an event.
virtual void accept ()
 Accept an event.
virtual void reject ()
 Reject an event.
Standard constructors and destructors.
 ProjectingSampler ()
 The default constructor.
virtual ~ProjectingSampler ()
 The destructor.
Functions used by the persistent I/O system.
void persistentOutput (PersistentOStream &os) const
 Function used to write out object persistently.
void persistentInput (PersistentIStream &is, int version)
 Function used to read in object persistently.

Static Public Member Functions

static void Init ()
 The standard Init function used to initialize the interfaces.

Protected Member Functions

Clone Methods.
virtual IBPtr clone () const
 Make a simple clone of this object.
virtual IBPtr fullclone () const
 Make a clone of this object, possibly modifying the cloned object to make it sane.

Private Member Functions

ProjectingSampleroperator= (const ProjectingSampler &)
 The assignment operator is private and must never be called.

Private Attributes

bool theFirstIteration
 True, if we're running the first iteration.
unsigned long theNIterations
 The number of iterations to be considered for initialization.
double theEnhancementFactor
 Factor to enhance the number of points for the next iteration.
unsigned int theNBins
 The initial number of bins to use.
double theEpsilon
 The adaption threshold.
unsigned long theLastNPoints
 The number of points used for the last iteration.
vector< BinnedStatisticstheProjections
 The projections to use.
double theLastValue
 The last integrand value.
double theWeightThreshold
 The weight threshold which governs the minimum bin weight.

Detailed Description

ProjectingSampler does adaption from projections of the integrand.

Author:
Simon Platzer
See also:
The interfaces defined for ProjectingSampler.

Definition at line 31 of file ProjectingSampler.h.


Member Function Documentation

virtual IBPtr Herwig::ProjectingSampler::clone ( ) const [protected, virtual]

Make a simple clone of this object.

Returns:
a pointer to the new object.

Reimplemented from Herwig::BinSampler.

virtual IBPtr Herwig::ProjectingSampler::fullclone ( ) const [protected, virtual]

Make a clone of this object, possibly modifying the cloned object to make it sane.

Returns:
a pointer to the new object.

Reimplemented from Herwig::BinSampler.

static void Herwig::ProjectingSampler::Init ( ) [static]

The standard Init function used to initialize the interfaces.

Called exactly once for each class by the class description system before the main function starts or when this class is dynamically loaded.

Reimplemented from Herwig::BinSampler.

virtual void Herwig::ProjectingSampler::initialize ( bool  progress) [virtual]

Initialize this bin sampler.

This default version calls runIteration.

Reimplemented from Herwig::BinSampler.

ProjectingSampler& Herwig::ProjectingSampler::operator= ( const ProjectingSampler ) [private]

The assignment operator is private and must never be called.

In fact, it should not even be implemented.

Function used to read in object persistently.

Parameters:
isthe persistent input stream read from.
versionthe version number of the object when written.

Reimplemented from Herwig::BinSampler.

Function used to write out object persistently.

Parameters:
osthe persistent output stream written to.

Reimplemented from Herwig::BinSampler.


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