Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
Private Member Functions |
Static Private Member Functions |
Private Attributes |
Static Private Attributes |
List of all members
ThePEG::SamplerBase Class Referenceabstract This is the base class for all phase space sampler classes to be used by the EventHandler class to sample the phase space according to the cross sections for the processes in the EventHandler. More...
Inheritance diagram for ThePEG::SamplerBase:
Detailed DescriptionThis is the base class for all phase space sampler classes to be used by the EventHandler class to sample the phase space according to the cross sections for the processes in the EventHandler. The class should be able to sample a unit hyper-cube in arbitrary dimensions. The points need not necessarily be sampled with unit weight. The virtual methods to be implemented by concrete sub-classes are initialize(), generate() and rejectLast().
Definition at line 35 of file SamplerBase.h. Member Function Documentation◆ attempts()
Return the number of attempts. When not provided directly, this will be determined effectively from the sum of weights and sum of weights squared to match up the standard definition of a Monte Carlo cross section along with the cross section and error quoted. Definition at line 132 of file SamplerBase.h. References integratedXSec(), integratedXSecErr(), sumWeights(), and sumWeights2(). Referenced by maxXSec(). ◆ generate()
Generarate a new phase space point and return a weight associated with it. This weight should preferably be 1. Implemented in ThePEG::ACDCSampler. Referenced by prepare(). ◆ lastBin()
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 in ThePEG::ACDCSampler. Definition at line 99 of file SamplerBase.h. References integratedXSec(), and integratedXSecErr(). ◆ maxXSec()
Return the reference cross section, a.k.a. maximum weight. When not provided directly, this will be determined effectively from the sum of weights and sum of weights squared to match up the standard definition of a Monte Carlo cross section along with the cross section and error quoted. Definition at line 120 of file SamplerBase.h. References attempts(), integratedXSec(), sumWeights(), sumWeights2(), and ThePEG::ZERO. ◆ persistentInput()
Function used to read in object persistently.
Referenced by eventHandler(). ◆ persistentOutput()
Function used to write out object persistently.
Referenced by eventHandler(). ◆ prepare()
An external hook to prepare the sampler for generating events, e.g. by combining grid files from parallel integration runs. Definition at line 76 of file SamplerBase.h. References generate(), and rejectLast(). The documentation for this class was generated from the following file: Generated on Thu Jun 28 2018 14:42:06 for ThePEG by 1.8.13 |