Herwig 7.3.0
|
ShowerApproximationKernel generates emissions according to a shower approximation entering a NLO matching. More...
#include <ShowerApproximationKernel.h>
Classes | |
struct | MaxTryException |
Exception to communicate sampler maxtry events. More... | |
Public Member Functions | |
ShowerApproximationKernel () | |
The default constructor. | |
void | setBornXComb (tStdXCombPtr xc) |
Set the XComb object describing the Born process. | |
tcStdXCombPtr | bornCXComb () const |
Return the XComb object describing the Born process. | |
tStdXCombPtr | bornXComb () const |
Return the XComb object describing the Born process. | |
void | setRealXComb (tStdXCombPtr xc) |
Set the XComb object describing the real emission process. | |
tcStdXCombPtr | realCXComb () const |
Return the XComb object describing the real emission process. | |
tStdXCombPtr | realXComb () const |
Return the XComb object describing the real emission process. | |
void | setTildeXCombs (const vector< StdXCombPtr > &xc) |
Set the tilde xcomb objects associated to the real xcomb. | |
const vector< StdXCombPtr > & | tildeXCombs () const |
Return the tilde xcomb objects associated to the real xcomb. | |
void | setDipole (Ptr< SubtractionDipole >::tptr dip) |
Set the dipole in charge for the emission. | |
Ptr< SubtractionDipole >::tptr | dipole () const |
Return the dipole in charge for the emission. | |
void | showerApproximation (Ptr< ShowerApproximation >::tptr app) |
Set the shower approximation. | |
Ptr< ShowerApproximation >::tptr | showerApproximation () const |
Return the shower approximation. | |
void | showerApproximationGenerator (Ptr< ShowerApproximationGenerator >::tptr) |
Set the shower approximation generator. | |
Ptr< ShowerApproximationGenerator >::tptr | showerApproximationGenerator () const |
Return the shower approximation generator. | |
double | generate () |
Generate the next emission. | |
void | ptCut (Energy pt) |
Set a pt cut on the dipole to generate the radiation. | |
int | nDim () const |
Return the number of random numbers needed to sample this kernel. | |
int | nDimBorn () const |
Return the number of random numbers needed to sample the Born process. | |
const vector< bool > & | sampleFlags () |
Flag, which variables are free variables. | |
const pair< vector< double >, vector< double > > & | support () |
Return the support of the splitting kernel. | |
const vector< double > & | parameterPoint () |
Return the parameter point associated to the splitting previously supplied through fixParameters. | |
void | startPresampling () |
Indicate that presampling of this kernel will be performed in the next calls to evaluate until stopPresampling() is called. | |
void | stopPresampling () |
Indicate that presampling of this kernel is done until startPresampling() is called. | |
void | veto (const vector< double > &, double, double) |
Indicate that a veto with the given kernel value and overestimate has occured. | |
void | accept (const vector< double > &, double, double) |
Indicate that an accept with the given kernel value and overestimate has occured. | |
bool | presampling () const |
Return true, if currently being presampled. | |
unsigned long | presamplingPoints () const |
Return the number of points to presample this splitting generator. | |
unsigned long | maxtry () const |
Return the maximum number of trials to generate a splitting. | |
unsigned long | freezeGrid () const |
Return the number of accepted points after which the grid should be frozen. | |
void | presamplingPoints (unsigned long p) |
Set the number of points to presample this splitting generator. | |
void | maxtry (unsigned long p) |
Set the maximum number of trials to generate a splitting. | |
void | freezeGrid (unsigned long n) |
Set the number of accepted points after which the grid should be frozen. | |
double | evaluate (const vector< double > &) |
Evalute the splitting kernel. | |
int | evolutionVariable () const |
Return the index of the random number corresponding to the evolution variable. | |
double | evolutionCutoff () const |
Return the cutoff on the evolution random number corresponding to the pt cut. | |
void | doCompensate (bool yes=true) |
True, if sampler should apply compensation. | |
Wrap to the exsample2 interface until this is finally cleaned up. | |
const vector< bool > & | variable_flags () |
size_t | evolution_variable () const |
double | evolution_cutoff () const |
const vector< double > & | parameter_point () |
void | start_presampling () |
void | stop_presampling () |
size_t | dimension () const |
unsigned long | presampling_points () const |
Public Member Functions inherited from ThePEG::HandlerBaseT< UseRandom > | |
double | rnd () const |
double | rnd (double xu) const |
double | rnd (double xl, double xu) const |
bool | rndbool () const |
bool | rndbool (double p) const |
bool | rndbool (double p1, double p2) const |
int | rndsign (double p1, double p2, double p3) const |
int | rnd2 (double p0, double p1) const |
int | rnd3 (double p0, double p1, double p2) const |
int | rnd4 (double p0, double p1, double p2, double p3) const |
long | irnd (long xu=2) const |
long | irnd (long xl, long xu) const |
const StandardModelBase & | SM () const |
tSMPtr | standardModel () 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. | |
typedef exsample::exponential_generator< ShowerApproximationKernel, UseRandom > | ExponentialGenerator |
Define the Sudakov sampler. | |
typedef exsample::exponential_generator< ShowerApproximationKernel, UseRandom > * | ExponentialGeneratorPtr |
Define a pointer to the Sudakov sampler. | |
Ptr< SubtractionDipole >::ptr | theDipole |
The dipole in charge of the emission. | |
Ptr< ShowerApproximation >::ptr | theShowerApproximation |
The shower approximation to consider. | |
StdXCombPtr | theBornXComb |
The XComb off which radiation will be generated. | |
StdXCombPtr | theRealXComb |
The XComb describing the process after radiation. | |
vector< StdXCombPtr > | theTildeXCombs |
The tilde xcomb objects associated to the real xcomb. | |
bool | thePresampling |
True, if currently being presampled. | |
unsigned long | thePresamplingPoints |
The number of points to presample this splitting generator. | |
unsigned long | theMaxTry |
The maximum number of trials to generate a splitting. | |
unsigned long | theFreezeGrid |
Return the number of accepted points after which the grid should be frozen. | |
vector< bool > | theFlags |
The sampling flags. | |
pair< vector< double >, vector< double > > | theSupport |
The support. | |
Ptr< ShowerApproximationGenerator >::tptr | theShowerApproximationGenerator |
The shower approximation generator. | |
vector< double > | theLastParameterPoint |
The last parameter point. | |
vector< double > | theLastBornPoint |
The last random numbers used for Born sampling. | |
ExponentialGeneratorPtr | sampler |
The Sudakov sampler. | |
bool | theDoCompensate |
True, if sampler should apply compensation. | |
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. | |
ShowerApproximationKernel & | operator= (const ShowerApproximationKernel &)=delete |
The assignment operator is private and must never be called. | |
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::InterfacedBase | |
enum | InitState |
Public Types inherited from ThePEG::Pointer::ReferenceCounted | |
typedef unsigned int | CounterType |
Static Public Member Functions inherited from ThePEG::HandlerBase | |
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::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 &) | |
ReferenceCounted & | operator= (const ReferenceCounted &) |
Protected Member Functions inherited from ThePEG::Named | |
const Named & | operator= (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) |
ShowerApproximationKernel generates emissions according to a shower approximation entering a NLO matching.
Definition at line 36 of file ShowerApproximationKernel.h.
|
private |
Define the Sudakov sampler.
Definition at line 441 of file ShowerApproximationKernel.h.
|
private |
Define a pointer to the Sudakov sampler.
Definition at line 448 of file ShowerApproximationKernel.h.
|
inline |
Indicate that an accept with the given kernel value and overestimate has occured.
use born and real xcombs in here to figure out what we need to reweight; it should have its kinematic variables completed at this step
Definition at line 197 of file ShowerApproximationKernel.h.
|
inline |
Return the XComb object describing the Born process.
Definition at line 62 of file ShowerApproximationKernel.h.
References theBornXComb.
Referenced by nDimBorn().
|
inline |
Return the XComb object describing the Born process.
Definition at line 67 of file ShowerApproximationKernel.h.
References theBornXComb.
|
protectedvirtual |
Make a simple clone of this object.
Implements ThePEG::InterfacedBase.
|
inline |
Definition at line 303 of file ShowerApproximationKernel.h.
|
inline |
Return the dipole in charge for the emission.
Definition at line 102 of file ShowerApproximationKernel.h.
References theDipole.
Referenced by evolutionCutoff(), evolutionVariable(), nDim(), and ptCut().
|
inline |
True, if sampler should apply compensation.
Definition at line 274 of file ShowerApproximationKernel.h.
References theDoCompensate.
|
inline |
Definition at line 287 of file ShowerApproximationKernel.h.
|
inline |
Definition at line 285 of file ShowerApproximationKernel.h.
|
inline |
Return the cutoff on the evolution random number corresponding to the pt cut.
Definition at line 264 of file ShowerApproximationKernel.h.
References dipole(), and showerApproximation().
|
inline |
Return the index of the random number corresponding to the evolution variable.
Definition at line 252 of file ShowerApproximationKernel.h.
References dipole(), nDimBorn(), and showerApproximation().
|
inline |
Return the number of accepted points after which the grid should be frozen.
Definition at line 223 of file ShowerApproximationKernel.h.
References theFreezeGrid.
|
inline |
Set the number of accepted points after which the grid should be frozen.
Definition at line 241 of file ShowerApproximationKernel.h.
References theFreezeGrid.
|
protectedvirtual |
Make a clone of this object, possibly modifying the cloned object to make it sane.
Reimplemented from ThePEG::InterfacedBase.
|
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.
|
inline |
Return the maximum number of trials to generate a splitting.
Definition at line 217 of file ShowerApproximationKernel.h.
References theMaxTry.
|
inline |
Set the maximum number of trials to generate a splitting.
Definition at line 235 of file ShowerApproximationKernel.h.
References theMaxTry.
|
inline |
Return the number of random numbers needed to sample this kernel.
Definition at line 140 of file ShowerApproximationKernel.h.
References dipole(), and nDimBorn().
|
inline |
Return the number of random numbers needed to sample the Born process.
Definition at line 150 of file ShowerApproximationKernel.h.
References bornCXComb().
Referenced by evolutionVariable(), and nDim().
|
privatedelete |
The assignment operator is private and must never be called.
In fact, it should not even be implemented.
|
inline |
Definition at line 291 of file ShowerApproximationKernel.h.
void Herwig::ShowerApproximationKernel::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. |
void Herwig::ShowerApproximationKernel::persistentOutput | ( | PersistentOStream & | os | ) | const |
Function used to write out object persistently.
os | the persistent output stream written to. |
|
inline |
Return true, if currently being presampled.
Definition at line 205 of file ShowerApproximationKernel.h.
References thePresampling.
|
inline |
Definition at line 307 of file ShowerApproximationKernel.h.
|
inline |
Return the number of points to presample this splitting generator.
Definition at line 211 of file ShowerApproximationKernel.h.
References thePresamplingPoints.
|
inline |
Set the number of points to presample this splitting generator.
Definition at line 229 of file ShowerApproximationKernel.h.
References thePresamplingPoints.
|
inline |
Set a pt cut on the dipole to generate the radiation.
Definition at line 134 of file ShowerApproximationKernel.h.
References dipole().
|
inline |
Return the XComb object describing the real emission process.
Definition at line 77 of file ShowerApproximationKernel.h.
References theRealXComb.
|
inline |
Return the XComb object describing the real emission process.
Definition at line 82 of file ShowerApproximationKernel.h.
References theRealXComb.
|
inline |
Set the XComb object describing the Born process.
Definition at line 57 of file ShowerApproximationKernel.h.
References theBornXComb.
|
inline |
Set the dipole in charge for the emission.
Definition at line 97 of file ShowerApproximationKernel.h.
References theDipole.
|
inline |
Set the XComb object describing the real emission process.
Definition at line 72 of file ShowerApproximationKernel.h.
References theRealXComb.
|
inline |
Set the tilde xcomb objects associated to the real xcomb.
Definition at line 87 of file ShowerApproximationKernel.h.
References theTildeXCombs.
|
inline |
Return the shower approximation.
Definition at line 112 of file ShowerApproximationKernel.h.
References theShowerApproximation.
Referenced by evolutionCutoff(), and evolutionVariable().
|
inline |
Set the shower approximation.
Definition at line 107 of file ShowerApproximationKernel.h.
References theShowerApproximation.
|
inline |
Definition at line 295 of file ShowerApproximationKernel.h.
|
inline |
Definition at line 299 of file ShowerApproximationKernel.h.
const pair< vector< double >, vector< double > > & Herwig::ShowerApproximationKernel::support | ( | ) |
Return the support of the splitting kernel.
The lower bound on the first variable is assumed to correspond to the cutoff on the evolution variable.
|
inline |
Return the tilde xcomb objects associated to the real xcomb.
Definition at line 92 of file ShowerApproximationKernel.h.
References theTildeXCombs.
|
inline |
Definition at line 281 of file ShowerApproximationKernel.h.
|
inline |
Indicate that a veto with the given kernel value and overestimate has occured.
use born and real xcombs in here to figure out what we need to reweight; it should have its kinematic variables completed at this step
Definition at line 189 of file ShowerApproximationKernel.h.
|
private |
The Sudakov sampler.
Definition at line 453 of file ShowerApproximationKernel.h.
|
private |
The XComb off which radiation will be generated.
Definition at line 376 of file ShowerApproximationKernel.h.
Referenced by bornCXComb(), bornXComb(), and setBornXComb().
|
private |
The dipole in charge of the emission.
Definition at line 366 of file ShowerApproximationKernel.h.
Referenced by dipole(), and setDipole().
|
private |
True, if sampler should apply compensation.
Definition at line 458 of file ShowerApproximationKernel.h.
Referenced by doCompensate().
|
private |
The sampling flags.
Definition at line 414 of file ShowerApproximationKernel.h.
|
private |
Return the number of accepted points after which the grid should be frozen.
Definition at line 409 of file ShowerApproximationKernel.h.
Referenced by freezeGrid().
|
private |
The last random numbers used for Born sampling.
Definition at line 434 of file ShowerApproximationKernel.h.
|
private |
The last parameter point.
Definition at line 429 of file ShowerApproximationKernel.h.
|
private |
The maximum number of trials to generate a splitting.
Definition at line 403 of file ShowerApproximationKernel.h.
Referenced by maxtry().
|
private |
True, if currently being presampled.
Definition at line 391 of file ShowerApproximationKernel.h.
Referenced by presampling().
|
private |
The number of points to presample this splitting generator.
Definition at line 397 of file ShowerApproximationKernel.h.
Referenced by presamplingPoints().
|
private |
The XComb describing the process after radiation.
Definition at line 381 of file ShowerApproximationKernel.h.
Referenced by realCXComb(), realXComb(), and setRealXComb().
|
private |
The shower approximation to consider.
Definition at line 371 of file ShowerApproximationKernel.h.
Referenced by showerApproximation().
|
private |
The shower approximation generator.
Definition at line 424 of file ShowerApproximationKernel.h.
|
private |
The support.
Definition at line 419 of file ShowerApproximationKernel.h.
|
private |
The tilde xcomb objects associated to the real xcomb.
Definition at line 386 of file ShowerApproximationKernel.h.
Referenced by setTildeXCombs(), and tildeXCombs().