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

Interface to the exsample generator. More...

#include <ExSampler2.h>

Inheritance diagram for Herwig::ExSampler:

List of all members.

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

ExSampleroperator= (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.

Detailed Description

Interface to the exsample generator.

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

Definition at line 30 of file ExSampler2.h.


Member Function Documentation

virtual IBPtr Herwig::ExSampler::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::ExSampler::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::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.

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

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.

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: