herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::GeneralSampler Class Reference

A GeneralSampler class. More...

#include <GeneralSampler.h>

Inheritance diagram for Herwig::GeneralSampler:

Public Member Functions

Standard constructors and destructors.
 GeneralSampler ()
 The default constructor.
 
virtual ~GeneralSampler ()
 The destructor.
 
- Public Member Functions inherited from ThePEG::SamplerBase
void setEventHandler (tStdEHPtr eh)
 
virtual void initialize ()=0
 
virtual void prepare ()
 
virtual double generate ()=0
 
virtual void rejectLast ()=0
 
const vector< double > & lastPoint () const
 
virtual int lastBin () const
 
virtual CrossSection integratedXSec () const=0
 
virtual CrossSection integratedXSecErr () const=0
 
virtual CrossSection maxXSec () const
 
virtual double attempts () const
 
virtual double sumWeights () const=0
 
virtual double sumWeights2 () const=0
 
virtual bool almostUnweighted () const
 
void integrationList (const string &newIntegrationList)
 
const string & integrationList () const
 
void persistentOutput (PersistentOStream &os) const
 
void persistentInput (PersistentIStream &is, int version)
 
void setEventHandler (tStdEHPtr eh)
 
virtual void initialize ()=0
 
virtual void prepare ()
 
virtual double generate ()=0
 
virtual void rejectLast ()=0
 
const vector< double > & lastPoint () const
 
virtual int lastBin () const
 
virtual CrossSection integratedXSec () const=0
 
virtual CrossSection integratedXSecErr () const=0
 
virtual CrossSection maxXSec () const
 
virtual double attempts () const
 
virtual double sumWeights () const=0
 
virtual double sumWeights2 () const=0
 
virtual bool almostUnweighted () const
 
- Public Member Functions inherited from ThePEG::Interfaced
virtual bool defaultInit ()
 
PPtr getParticle (PID) const
 
PDPtr getParticleData (PID) const
 
bool used () const
 
void useMe () const
 
tEGPtr generator () const
 
void persistentOutput (PersistentOStream &os) const
 
void persistentInput (PersistentIStream &is, int version)
 
PPtr getParticle (PID) const
 
PDPtr getParticleData (PID) const
 
bool used () const
 
void useMe () const
 
tEGPtr generator () const
 
- Public Member Functions inherited from ThePEG::InterfacedBase
string fullName () const
 
string name () const
 
string path () const
 
string comment () const
 
void setup (istream &is)
 
void update ()
 
void init ()
 
virtual bool preInitialize () const
 
void initrun ()
 
void finish ()
 
void touch ()
 
void reset ()
 
void clear ()
 
InitState state () const
 
bool locked () const
 
bool touched () const
 
virtual IBPtr fullclone () const
 
void persistentOutput (PersistentOStream &os) const
 
void persistentInput (PersistentIStream &is, int version)
 
virtual void debugme () const
 
void update ()
 
void init ()
 
virtual bool preInitialize () const
 
void initrun ()
 
void finish ()
 
void touch ()
 
void reset ()
 
void clear ()
 
InitState state () const
 
bool locked () const
 
bool touched () const
 
virtual IBPtr fullclone () const
 
- Public Member Functions inherited from ThePEG::Base
void debug () const
 
virtual void debugme () const
 
- Public Member Functions inherited from ThePEG::Pointer::ReferenceCounted
CounterType referenceCount () const
 
- Public Member Functions inherited from ThePEG::Named
 Named (const string &newName=string())
 
 Named (const Named &)=default
 
const string & name () const
 
bool operator== (const Named &other) const
 
bool operator< (const Named &other) const
 

Clone Methods.

bool theVerbose
 Whether or not additional information should be printed to cout.
 
XML::Element theGrids
 The XML element containing the grids.
 
Ptr< BinSampler >::ptr theBinSampler
 The bin sampler to use.
 
map< double, Ptr< BinSampler >::ptr > theSamplers
 The selector map for the bin samplers.
 
Ptr< BinSampler >::tptr theLastSampler
 The last selected bin sampler.
 
CrossSection theIntegratedXSec
 The integrated cross section.
 
CrossSection theIntegratedXSecErr
 The integrated cross section error.
 
size_t theUpdateAfter
 The number of events after which cross sections should truly be updated.
 
size_t crossSectionCalls
 The number of calls to currentCrossSections since the last update.
 
bool gotCrossSections
 True, if currentCrossSections has been called since the last call to generate.
 
double theSumWeights
 The sum of weights.
 
double theSumWeights2
 The sum of weights squared.
 
double theAttempts
 The number of attempts.
 
double theAccepts
 The number of accepts.
 
double theMaxWeight
 The maximum weight encountered.
 
bool theAddUpSamplers
 True, if cross sections are to be combined from each sampler individually.
 
bool theGlobalMaximumWeight
 True, if the global maximum weight should be used as reference.
 
bool theFlatSubprocesses
 True, if subprocesses should be selected flat.
 
bool isSampling
 True, if we are generating events.
 
double theMinSelection
 A minimum selection probability for each sampler.
 
bool runCombinationData
 True, if information for combining unnormalized runs should be printed out.
 
bool theAlmostUnweighted
 True, if we should perform an almost unweighted sampling.
 
unsigned long maximumExceeds
 Number of points which exceeded the maximum.
 
double maximumExceededBy
 The average relative deviation from the maximum weight.
 
double correctWeights
 The correct cross section as one would exspect with almostUnweighted.
 
double theMaxEnhancement
 Enhancement factor to the maximum weight.
 
bool didReadGrids
 True, if grids have already been read.
 
bool theParallelIntegration
 True, if parallel subprocess integration should be enabled.
 
unsigned int theIntegratePerJob
 The number of subprocesses to integrate per job.
 
unsigned int theIntegrationJobs
 The maximum number of integration jobs to be created.
 
unsigned int theIntegrationJobsCreated
 The number of integration jobs which were actually created.
 
bool justAfterIntegrate
 Indicate that initialization is only reading a grid.
 
bool theWriteGridsOnFinish
 True, if grids should be written at the end of a run.
 
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.
 
virtual void doinit ()
 Initialize this object after the setup phase before saving an EventGenerator to disk.
 
virtual void doinitrun ()
 Initialize this object.
 
virtual void dofinish ()
 Finalize this object.
 
virtual void rebind (const TranslationMap &trans)
 Rebind pointer to other Interfaced objects.
 
virtual IVector getReferences ()
 Return a vector of all pointers to Interfaced objects used in this object.
 
GeneralSampleroperator= (const GeneralSampler &)=delete
 The assignment operator is private and must never be called.
 

Virtual functions from SamplerBase.

virtual void initialize ()
 Initialize the the sampler, possibly doing presampling of the phase space.
 
virtual double generate ()
 Generarate a new phase space point and return a weight associated with it.
 
virtual void rejectLast ()
 Reject the last chosen phase space point.
 
virtual int lastBin () const
 If the sampler is able to sample several different functions separately, this function should return the last chosen function.
 
virtual CrossSection integratedXSec () const
 Return the total integrated cross section determined from the Monte Carlo sampling so far.
 
virtual CrossSection integratedXSecErr () const
 Return the error on the total integrated cross section determined from the Monte Carlo sampling so far.
 
virtual CrossSection maxXSec () const
 Return the overestimated integrated cross section.
 
virtual double sumWeights () const
 Return the sum of the weights returned by generate() so far (of the events that were not rejeted).
 
virtual double sumWeights2 () const
 Return the sum of the weights squaredreturned by generate() so far (of the events that were not rejeted).
 
virtual double attempts () const
 Return the number of attempts.
 
double accepts () const
 Return the number of accepts.
 
const map< double, Ptr< BinSampler >::ptr > & samplers () const
 Return the samplers.
 
Ptr< BinSampler >::ptr binSampler () const
 Return the bin sampler.
 
Ptr< BinSampler >::tptr lastSampler () const
 Return the last selected bin sampler.
 
bool weighted () const
 True if we should do weighted events.
 
virtual bool almostUnweighted () const
 Return true if this sampler is generating almost unweighted events.
 
const XML::Elementgrids () const
 Return the XML element containing the grids.
 
XML::Elementgrids ()
 Access the XML element containing the grids.
 
void writeGrids () const
 Write out grids.
 
void readGrids ()
 Read in grids.
 
unsigned int integrationJobsCreated ()
 Return the number of integration jobs which were actually created.
 
virtual void prepare ()
 An external hook to prepare the sampler for generating events, e.g.
 
map< double, Ptr< BinSampler >::ptr > & samplers ()
 Access the samplers.
 
void lastSampler (Ptr< BinSampler >::tptr s)
 Set the last selected bin sampler.
 
void currentCrossSections () const
 Calculate cross sections from samplers at current state.
 
void updateSamplers ()
 Update the sampler selection.
 

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 void Init ()
 The standard Init function used to initialize the interfaces.
 

Additional Inherited Members

- Public Types inherited from ThePEG::SamplerBase
enum  RunLevels
 
- Public Types inherited from ThePEG::InterfacedBase
enum  InitState
 
- Public Types inherited from ThePEG::Pointer::ReferenceCounted
typedef unsigned int CounterType
 
- Static Public Member Functions inherited from ThePEG::SamplerBase
static int runLevel ()
 
static void setRunLevel (int level)
 
static bool hasSetupFile ()
 
static void setupFileUsed (bool yes=true)
 
static long seed ()
 
static void setSeed (long s)
 
static unsigned int integratePerJob ()
 
static void setIntegratePerJob (unsigned int s)
 
static unsigned int integrationJobs ()
 
static void setIntegrationJobs (unsigned int s)
 
static void Init ()
 
- Static Public Member Functions inherited from ThePEG::Interfaced
static void Init ()
 
- Static Public Member Functions inherited from ThePEG::InterfacedBase
static void Init ()
 
- Static Public Member Functions inherited from ThePEG::Base
static void Init ()
 
- Public Attributes inherited from ThePEG::InterfacedBase
 initializing
 
 uninitialized
 
 initialized
 
 runready
 
- Public Attributes inherited from ThePEG::Pointer::ReferenceCounted
const unsigned long uniqueId
 
- Protected Member Functions inherited from ThePEG::SamplerBase
vector< double > & lastPoint ()
 
tStdEHPtr eventHandler () const
 
- Protected Member Functions inherited from ThePEG::Interfaced
void reporeg (IBPtr object, string name) const
 
bool setDefaultReference (PtrT &ptr, string classname, string objectname)
 
 Interfaced (const string &newName)
 
 Interfaced (const Interfaced &i)
 
void setGenerator (tEGPtr generator)
 
- Protected Member Functions inherited from ThePEG::InterfacedBase
virtual void readSetup (istream &is)
 
virtual void doupdate ()
 
virtual void doinit ()
 
virtual void doinitrun ()
 
virtual void dofinish ()
 
virtual IVector getReferences ()
 
virtual void rebind (const TranslationMap &)
 
virtual IBPtr clone () const=0
 
 InterfacedBase (string newName)
 
 InterfacedBase (const InterfacedBase &i)
 
virtual void readSetup (istream &is)
 
virtual void doupdate ()
 
virtual void doinit ()
 
virtual void doinitrun ()
 
virtual void dofinish ()
 
virtual IVector getReferences ()
 
virtual void rebind (const TranslationMap &)
 
- Protected Member Functions inherited from ThePEG::Pointer::ReferenceCounted
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (const ReferenceCounted &)
 
- Protected Member Functions inherited from ThePEG::Named
const Namedoperator= (const Named &other)
 
const string & name (const string &newName)
 
- Static Protected Member Functions inherited from ThePEG::Interfaced
static void registerRepository (IBPtr)
 
static void registerRepository (IBPtr, string newName)
 

Detailed Description

A GeneralSampler class.

Author
Simon Platzer
See also
The interfaces defined for GeneralSampler.

Definition at line 31 of file GeneralSampler.h.

Member Function Documentation

◆ accepts()

double Herwig::GeneralSampler::accepts ( ) const
inline

Return the number of accepts.

Definition at line 127 of file GeneralSampler.h.

References theAccepts.

◆ almostUnweighted()

virtual bool Herwig::GeneralSampler::almostUnweighted ( ) const
inlinevirtual

Return true if this sampler is generating almost unweighted events.

Reimplemented from ThePEG::SamplerBase.

Definition at line 154 of file GeneralSampler.h.

References theAlmostUnweighted.

◆ attempts()

virtual double Herwig::GeneralSampler::attempts ( ) const
inlinevirtual

Return the number of attempts.

Reimplemented from ThePEG::SamplerBase.

Definition at line 118 of file GeneralSampler.h.

References ThePEG::SamplerBase::attempts(), theAddUpSamplers, and theAttempts.

◆ binSampler()

Ptr< BinSampler >::ptr Herwig::GeneralSampler::binSampler ( ) const
inline

Return the bin sampler.

Definition at line 139 of file GeneralSampler.h.

References theBinSampler.

◆ clone()

virtual IBPtr Herwig::GeneralSampler::clone ( ) const
protectedvirtual

Make a simple clone of this object.

Returns
a pointer to the new object.

Implements ThePEG::InterfacedBase.

◆ dofinish()

virtual void Herwig::GeneralSampler::dofinish ( )
protectedvirtual

Finalize this object.

Called in the run phase just after a run has ended. Used eg. to write out statistics.

Reimplemented from ThePEG::InterfacedBase.

◆ doinit()

virtual void Herwig::GeneralSampler::doinit ( )
protectedvirtual

Initialize this object after the setup phase before saving an EventGenerator to disk.

Exceptions
InitExceptionif object could not be initialized properly.

Reimplemented from ThePEG::InterfacedBase.

◆ doinitrun()

virtual void Herwig::GeneralSampler::doinitrun ( )
protectedvirtual

Initialize this object.

Called in the run phase just before a run begins.

Reimplemented from ThePEG::InterfacedBase.

◆ fullclone()

virtual IBPtr Herwig::GeneralSampler::fullclone ( ) const
protectedvirtual

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

Returns
a pointer to the new object.

Reimplemented from ThePEG::InterfacedBase.

◆ generate()

virtual double Herwig::GeneralSampler::generate ( )
virtual

Generarate a new phase space point and return a weight associated with it.

This weight should preferably be 1.

Implements ThePEG::SamplerBase.

◆ getReferences()

virtual IVector Herwig::GeneralSampler::getReferences ( )
protectedvirtual

Return a vector of all pointers to Interfaced objects used in this object.

Returns
a vector of pointers.

Reimplemented from ThePEG::InterfacedBase.

◆ grids() [1/2]

XML::Element & Herwig::GeneralSampler::grids ( )
inline

Access the XML element containing the grids.

Definition at line 166 of file GeneralSampler.h.

References theGrids.

◆ grids() [2/2]

const XML::Element & Herwig::GeneralSampler::grids ( ) const
inline

Return the XML element containing the grids.

Definition at line 161 of file GeneralSampler.h.

References theGrids.

◆ Init()

static void Herwig::GeneralSampler::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.

◆ initialize()

virtual void Herwig::GeneralSampler::initialize ( )
virtual

Initialize the the sampler, possibly doing presampling of the phase space.

Implements ThePEG::SamplerBase.

◆ integratedXSec()

virtual CrossSection Herwig::GeneralSampler::integratedXSec ( ) const
inlinevirtual

Return the total integrated cross section determined from the Monte Carlo sampling so far.

Implements ThePEG::SamplerBase.

Definition at line 80 of file GeneralSampler.h.

References currentCrossSections(), and theIntegratedXSec.

◆ integratedXSecErr()

virtual CrossSection Herwig::GeneralSampler::integratedXSecErr ( ) const
inlinevirtual

Return the error on the total integrated cross section determined from the Monte Carlo sampling so far.

Implements ThePEG::SamplerBase.

Definition at line 89 of file GeneralSampler.h.

References currentCrossSections(), and theIntegratedXSecErr.

◆ integrationJobsCreated()

unsigned int Herwig::GeneralSampler::integrationJobsCreated ( )
inline

Return the number of integration jobs which were actually created.

Definition at line 181 of file GeneralSampler.h.

References theIntegrationJobsCreated.

◆ lastBin()

virtual int Herwig::GeneralSampler::lastBin ( ) const
inlinevirtual

If the sampler is able to sample several different functions separately, this function should return the last chosen function.

This default version always returns 0.

Reimplemented from ThePEG::SamplerBase.

Definition at line 74 of file GeneralSampler.h.

References lastSampler().

◆ lastSampler() [1/2]

Ptr< BinSampler >::tptr Herwig::GeneralSampler::lastSampler ( ) const
inline

Return the last selected bin sampler.

Definition at line 144 of file GeneralSampler.h.

References theLastSampler.

Referenced by lastBin().

◆ lastSampler() [2/2]

void Herwig::GeneralSampler::lastSampler ( Ptr< BinSampler >::tptr  s)
inlineprotected

Set the last selected bin sampler.

Definition at line 201 of file GeneralSampler.h.

References theLastSampler.

◆ maxXSec()

virtual CrossSection Herwig::GeneralSampler::maxXSec ( ) const
inlinevirtual

Return the overestimated integrated cross section.

Reimplemented from ThePEG::SamplerBase.

Definition at line 97 of file GeneralSampler.h.

References ThePEG::SamplerBase::maxXSec(), theAddUpSamplers, and theMaxWeight.

◆ operator=()

GeneralSampler & Herwig::GeneralSampler::operator= ( const GeneralSampler )
privatedelete

The assignment operator is private and must never be called.

In fact, it should not even be implemented.

◆ persistentInput()

void Herwig::GeneralSampler::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.

◆ persistentOutput()

void Herwig::GeneralSampler::persistentOutput ( PersistentOStream os) const

Function used to write out object persistently.

Parameters
osthe persistent output stream written to.

◆ prepare()

virtual void Herwig::GeneralSampler::prepare ( )
virtual

An external hook to prepare the sampler for generating events, e.g.

by combining grid files from parallel integration runs.

Reimplemented from ThePEG::SamplerBase.

◆ rebind()

virtual void Herwig::GeneralSampler::rebind ( const TranslationMap trans)
protectedvirtual

Rebind pointer to other Interfaced objects.

Called in the setup phase after all objects used in an EventGenerator has been cloned so that the pointers will refer to the cloned objects afterwards.

Parameters
transa TranslationMap relating the original objects to their respective clones.
Exceptions
RebindExceptionif no cloned object was found for a given pointer.

Reimplemented from ThePEG::InterfacedBase.

◆ rejectLast()

virtual void Herwig::GeneralSampler::rejectLast ( )
virtual

Reject the last chosen phase space point.

Implements ThePEG::SamplerBase.

◆ samplers() [1/2]

map< double, Ptr< BinSampler >::ptr > & Herwig::GeneralSampler::samplers ( )
inlineprotected

Access the samplers.

Definition at line 196 of file GeneralSampler.h.

References theSamplers.

◆ samplers() [2/2]

const map< double, Ptr< BinSampler >::ptr > & Herwig::GeneralSampler::samplers ( ) const
inline

Return the samplers.

Definition at line 134 of file GeneralSampler.h.

References theSamplers.

◆ sumWeights()

virtual double Herwig::GeneralSampler::sumWeights ( ) const
inlinevirtual

Return the sum of the weights returned by generate() so far (of the events that were not rejeted).

Implements ThePEG::SamplerBase.

Definition at line 107 of file GeneralSampler.h.

References theSumWeights.

◆ sumWeights2()

virtual double Herwig::GeneralSampler::sumWeights2 ( ) const
inlinevirtual

Return the sum of the weights squaredreturned by generate() so far (of the events that were not rejeted).

Implements ThePEG::SamplerBase.

Definition at line 113 of file GeneralSampler.h.

References theSumWeights2.

◆ weighted()

bool Herwig::GeneralSampler::weighted ( ) const
inline

True if we should do weighted events.

Definition at line 149 of file GeneralSampler.h.

References ThePEG::SamplerBase::eventHandler().

Member Data Documentation

◆ correctWeights

double Herwig::GeneralSampler::correctWeights
private

The correct cross section as one would exspect with almostUnweighted.

Definition at line 438 of file GeneralSampler.h.

◆ crossSectionCalls

size_t Herwig::GeneralSampler::crossSectionCalls
mutableprivate

The number of calls to currentCrossSections since the last update.

Definition at line 348 of file GeneralSampler.h.

◆ didReadGrids

bool Herwig::GeneralSampler::didReadGrids
private

True, if grids have already been read.

Definition at line 450 of file GeneralSampler.h.

◆ gotCrossSections

bool Herwig::GeneralSampler::gotCrossSections
mutableprivate

True, if currentCrossSections has been called since the last call to generate.

Definition at line 354 of file GeneralSampler.h.

◆ isSampling

bool Herwig::GeneralSampler::isSampling
private

True, if we are generating events.

Definition at line 405 of file GeneralSampler.h.

◆ justAfterIntegrate

bool Herwig::GeneralSampler::justAfterIntegrate
private

Indicate that initialization is only reading a grid.

Definition at line 475 of file GeneralSampler.h.

◆ maximumExceededBy

double Herwig::GeneralSampler::maximumExceededBy
private

The average relative deviation from the maximum weight.

Definition at line 431 of file GeneralSampler.h.

◆ maximumExceeds

unsigned long Herwig::GeneralSampler::maximumExceeds
private

Number of points which exceeded the maximum.

Definition at line 426 of file GeneralSampler.h.

◆ runCombinationData

bool Herwig::GeneralSampler::runCombinationData
private

True, if information for combining unnormalized runs should be printed out.

Definition at line 416 of file GeneralSampler.h.

◆ theAccepts

double Herwig::GeneralSampler::theAccepts
private

The number of accepts.

Definition at line 374 of file GeneralSampler.h.

Referenced by accepts().

◆ theAddUpSamplers

bool Herwig::GeneralSampler::theAddUpSamplers
private

True, if cross sections are to be combined from each sampler individually.

Definition at line 385 of file GeneralSampler.h.

Referenced by attempts(), and maxXSec().

◆ theAlmostUnweighted

bool Herwig::GeneralSampler::theAlmostUnweighted
private

True, if we should perform an almost unweighted sampling.

Definition at line 421 of file GeneralSampler.h.

Referenced by almostUnweighted().

◆ theAttempts

double Herwig::GeneralSampler::theAttempts
private

The number of attempts.

Definition at line 369 of file GeneralSampler.h.

Referenced by attempts().

◆ theBinSampler

Ptr<BinSampler>::ptr Herwig::GeneralSampler::theBinSampler
private

The bin sampler to use.

Definition at line 315 of file GeneralSampler.h.

Referenced by binSampler().

◆ theFlatSubprocesses

bool Herwig::GeneralSampler::theFlatSubprocesses
private

True, if subprocesses should be selected flat.

This is a debug flag, cross section information and distributions will not be correct.

Definition at line 400 of file GeneralSampler.h.

◆ theGlobalMaximumWeight

bool Herwig::GeneralSampler::theGlobalMaximumWeight
private

True, if the global maximum weight should be used as reference.

If not, the maximum weights of individual samplers are used, and selection probabilities fro the samplers are adjusted accordingly.

Definition at line 393 of file GeneralSampler.h.

◆ theGrids

XML::Element Herwig::GeneralSampler::theGrids
private

The XML element containing the grids.

Definition at line 310 of file GeneralSampler.h.

Referenced by grids().

◆ theIntegratedXSec

CrossSection Herwig::GeneralSampler::theIntegratedXSec
mutableprivate

The integrated cross section.

Definition at line 330 of file GeneralSampler.h.

Referenced by integratedXSec().

◆ theIntegratedXSecErr

CrossSection Herwig::GeneralSampler::theIntegratedXSecErr
mutableprivate

The integrated cross section error.

Definition at line 335 of file GeneralSampler.h.

Referenced by integratedXSecErr().

◆ theIntegratePerJob

unsigned int Herwig::GeneralSampler::theIntegratePerJob
private

The number of subprocesses to integrate per job.

Definition at line 460 of file GeneralSampler.h.

◆ theIntegrationJobs

unsigned int Herwig::GeneralSampler::theIntegrationJobs
private

The maximum number of integration jobs to be created.

Definition at line 465 of file GeneralSampler.h.

◆ theIntegrationJobsCreated

unsigned int Herwig::GeneralSampler::theIntegrationJobsCreated
private

The number of integration jobs which were actually created.

Definition at line 470 of file GeneralSampler.h.

Referenced by integrationJobsCreated().

◆ theLastSampler

Ptr<BinSampler>::tptr Herwig::GeneralSampler::theLastSampler
private

The last selected bin sampler.

Definition at line 325 of file GeneralSampler.h.

Referenced by lastSampler().

◆ theMaxEnhancement

double Herwig::GeneralSampler::theMaxEnhancement
private

Enhancement factor to the maximum weight.

This is to get less maximumExceeds.

Definition at line 445 of file GeneralSampler.h.

◆ theMaxWeight

double Herwig::GeneralSampler::theMaxWeight
private

The maximum weight encountered.

Definition at line 379 of file GeneralSampler.h.

Referenced by maxXSec().

◆ theMinSelection

double Herwig::GeneralSampler::theMinSelection
private

A minimum selection probability for each sampler.

Definition at line 410 of file GeneralSampler.h.

◆ theParallelIntegration

bool Herwig::GeneralSampler::theParallelIntegration
private

True, if parallel subprocess integration should be enabled.

Definition at line 455 of file GeneralSampler.h.

◆ theSamplers

map<double,Ptr<BinSampler>::ptr> Herwig::GeneralSampler::theSamplers
private

The selector map for the bin samplers.

Definition at line 320 of file GeneralSampler.h.

Referenced by samplers().

◆ theSumWeights

double Herwig::GeneralSampler::theSumWeights
private

The sum of weights.

Definition at line 359 of file GeneralSampler.h.

Referenced by sumWeights().

◆ theSumWeights2

double Herwig::GeneralSampler::theSumWeights2
private

The sum of weights squared.

Definition at line 364 of file GeneralSampler.h.

Referenced by sumWeights2().

◆ theUpdateAfter

size_t Herwig::GeneralSampler::theUpdateAfter
private

The number of events after which cross sections should truly be updated.

This is used to prevent exhaustive combination of statistics when HepMC events are written out.

Definition at line 342 of file GeneralSampler.h.

◆ theVerbose

bool Herwig::GeneralSampler::theVerbose
private

Whether or not additional information should be printed to cout.

Definition at line 305 of file GeneralSampler.h.

◆ theWriteGridsOnFinish

bool Herwig::GeneralSampler::theWriteGridsOnFinish
private

True, if grids should be written at the end of a run.

Definition at line 480 of file GeneralSampler.h.


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