Herwig++
2.7.0
|
ProjectingSampler does adaption from projections of the integrand. More...
#include <ProjectingSampler.h>
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 | |
ProjectingSampler & | operator= (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< BinnedStatistics > | theProjections |
The projections to use. | |
double | theLastValue |
The last integrand value. | |
double | theWeightThreshold |
The weight threshold which governs the minimum bin weight. |
ProjectingSampler does adaption from projections of the integrand.
Definition at line 31 of file ProjectingSampler.h.
virtual IBPtr Herwig::ProjectingSampler::clone | ( | ) | const [protected, virtual] |
Make a simple clone of this 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.
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.
void Herwig::ProjectingSampler::persistentInput | ( | PersistentIStream & | is, |
int | version | ||
) |
Function used to read in object persistently.
is | the persistent input stream read from. |
version | the version number of the object when written. |
Reimplemented from Herwig::BinSampler.
void Herwig::ProjectingSampler::persistentOutput | ( | PersistentOStream & | os | ) | const |
Function used to write out object persistently.
os | the persistent output stream written to. |
Reimplemented from Herwig::BinSampler.