Herwig++
2.7.0
|
Interface to the exsample generator. More...
#include <ExSampler2.h>
Public Member Functions | |
virtual bool | isUnweighting () const |
Return true, if this bin sampler produces unweighted events. | |
virtual bool | compensating () const |
Return true, if this sampler is in a compensating mode. | |
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. | |
virtual void | finalize (bool verbose) |
Finalize this sampler. | |
virtual void | reject () |
Reject an event. | |
double | evaluate (const vector< double > &p) const |
Evaluate with given random numbers. | |
pair< vector< double >, vector < double > > | support () const |
Return the lower left and upper right corners of the support of this function. | |
void | start_presampling () |
Indicate start of presampling. | |
void | stop_presampling () |
Indicate end of presampling. | |
Standard constructors and destructors. | |
ExSampler () | |
The default constructor. | |
virtual | ~ExSampler () |
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 | |
ExSampler & | operator= (const ExSampler &) |
The assignment operator is private and must never be called. | |
Private Attributes | |
unsigned long | presampling_points_ |
The number of presampling points. | |
unsigned long | freeze_grid_ |
The number of points below which the grid is frozen. | |
double | efficiency_threshold_ |
The efficiency threshold. | |
double | gain_threshold_ |
The gains threshold. | |
exsample::generator< ExSampler, UseRandom > | generator_ |
The generator used. |
Interface to the exsample generator.
Definition at line 30 of file ExSampler2.h.
virtual IBPtr Herwig::ExSampler::clone | ( | ) | const [protected, virtual] |
Make a simple clone of this object.
Reimplemented from Herwig::BinSampler.
virtual IBPtr Herwig::ExSampler::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::ExSampler::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::ExSampler::initialize | ( | bool | progress | ) | [virtual] |
Initialize this bin sampler.
This default version calls runIteration.
Reimplemented from Herwig::BinSampler.
The assignment operator is private and must never be called.
In fact, it should not even be implemented.
void Herwig::ExSampler::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::ExSampler::persistentOutput | ( | PersistentOStream & | os | ) | const |
Function used to write out object persistently.
os | the persistent output stream written to. |
Reimplemented from Herwig::BinSampler.