The HwMEBase class serves a number of purposes. More...
#include <HwMEBase.h>
Public Member Functions | |
HwMEBase () | |
Default constructor. | |
Virtual functions required by the MEBase class. | |
virtual int | nDim () const |
The number of internal degreed of freedom used in the matrix element. | |
virtual bool | generateKinematics (const double *r) |
Generate internal degrees of freedom given 'nDim()' uniform random numbers in the interval ]0,1[. More... | |
virtual CrossSection | dSigHatDR () const |
Return the matrix element for the kinematical configuation previously provided by the last call to setKinematics(). More... | |
virtual void | setKinematics () |
Set the typed and momenta of the incoming and outgoing partons to be used in subsequent calls to me() and colourGeometries() according to the associated XComb object. | |
Functions used by the persistent I/O system. | |
void | persistentOutput (PersistentOStream &os) const |
Function used to write out object persistently. More... | |
void | persistentInput (PersistentIStream &is, int version) |
Function used to read in object persistently. More... | |
Public Member Functions inherited from ThePEG::MEBase | |
virtual unsigned int | orderInAlphaS () const=0 |
virtual unsigned int | orderInAlphaEW () const=0 |
virtual double | me2 () const=0 |
virtual Energy2 | scale () const=0 |
virtual double | alphaS () const |
virtual double | alphaEM () const |
void | setKinematics (tPPair in, const PVector &out) |
virtual void | constructVertex (tSubProPtr sub) |
virtual void | constructVertex (tSubProPtr sub, const ColourLines *cl) |
virtual bool | wantCMS () const |
virtual bool | headCuts () const |
virtual bool | ignoreCuts () const |
virtual bool | apply () const |
virtual map< string, double > | generateOptionalWeights () |
virtual bool | haveX1X2 () const |
virtual bool | havePDFWeight1 () const |
virtual bool | havePDFWeight2 () const |
virtual bool | keepRandomNumbers () const |
virtual void | generateSubCollision (SubProcess &) |
virtual void | clearKinematics () |
virtual void | getDiagrams () const=0 |
virtual bool | noMirror () const |
const DiagramVector & | diagrams () const |
virtual Selector< const ColourLines *> | colourGeometries (tcDiagPtr diag) const=0 |
virtual const ColourLines & | selectColourGeometry (tcDiagPtr diag) const |
virtual Selector< DiagramIndex > | diagrams (const DiagramVector &) const |
virtual DiagramIndex | diagram (const DiagramVector &) const |
bool | reweighted () const |
double | reWeight () const |
double | preWeight () const |
void | addReweighter (tReweightPtr rw) |
void | addPreweighter (tReweightPtr rw) |
Ptr< Amplitude >::pointer | amplitude () const |
void | amplitude (Ptr< Amplitude >::pointer amp) |
Energy2 | sHat () const |
double | preweight () const |
virtual void | flushCaches () |
virtual StdXCombPtr | makeXComb (Energy newMaxEnergy, const cPDPair &inc, tEHPtr newEventHandler, tSubHdlPtr newSubProcessHandler, tPExtrPtr newExtractor, tCascHdlPtr newCKKW, const PBPair &newPartonBins, tCutsPtr newCuts, const DiagramVector &newDiagrams, bool mir, const PartonPairVec &allPBins, tStdXCombPtr newHead=tStdXCombPtr(), tMEPtr newME=tMEPtr()) |
virtual StdXCombPtr | makeXComb (tStdXCombPtr newHead, const PBPair &newPartonBins, const DiagramVector &newDiagrams, tMEPtr newME=tMEPtr()) |
virtual void | fillProjectors () |
virtual void | setXComb (tStdXCombPtr) |
const DVector & | meInfo () const |
void | meInfo (const DVector &info) const |
virtual int | maxMultCKKW () const |
virtual int | minMultCKKW () const |
virtual void | maxMultCKKW (int mult) |
virtual void | minMultCKKW (int mult) |
virtual void | setVetoScales (tSubProPtr) const |
void | persistentOutput (PersistentOStream &os) const |
void | persistentInput (PersistentIStream &is, int version) |
virtual unsigned int | orderInAlphaS () const=0 |
virtual unsigned int | orderInAlphaEW () const=0 |
virtual double | me2 () const=0 |
virtual Energy2 | scale () const=0 |
virtual double | alphaS () const |
virtual double | alphaEM () const |
void | setKinematics (tPPair in, const PVector &out) |
virtual void | constructVertex (tSubProPtr sub) |
virtual void | constructVertex (tSubProPtr sub, const ColourLines *cl) |
virtual bool | wantCMS () const |
virtual bool | headCuts () const |
virtual bool | ignoreCuts () const |
virtual bool | apply () const |
virtual map< string, double > | generateOptionalWeights () |
virtual bool | haveX1X2 () const |
virtual bool | havePDFWeight1 () const |
virtual bool | havePDFWeight2 () const |
virtual bool | keepRandomNumbers () const |
virtual void | generateSubCollision (SubProcess &) |
virtual void | clearKinematics () |
virtual void | getDiagrams () const=0 |
virtual bool | noMirror () const |
const DiagramVector & | diagrams () const |
virtual Selector< const ColourLines *> | colourGeometries (tcDiagPtr diag) const=0 |
virtual const ColourLines & | selectColourGeometry (tcDiagPtr diag) const |
virtual Selector< DiagramIndex > | diagrams (const DiagramVector &) const |
virtual DiagramIndex | diagram (const DiagramVector &) const |
bool | reweighted () const |
double | reWeight () const |
double | preWeight () const |
void | addReweighter (tReweightPtr rw) |
void | addPreweighter (tReweightPtr rw) |
Ptr< Amplitude >::pointer | amplitude () const |
void | amplitude (Ptr< Amplitude >::pointer amp) |
Energy2 | sHat () const |
double | preweight () const |
virtual void | flushCaches () |
virtual StdXCombPtr | makeXComb (Energy newMaxEnergy, const cPDPair &inc, tEHPtr newEventHandler, tSubHdlPtr newSubProcessHandler, tPExtrPtr newExtractor, tCascHdlPtr newCKKW, const PBPair &newPartonBins, tCutsPtr newCuts, const DiagramVector &newDiagrams, bool mir, const PartonPairVec &allPBins, tStdXCombPtr newHead=tStdXCombPtr(), tMEPtr newME=tMEPtr()) |
virtual StdXCombPtr | makeXComb (tStdXCombPtr newHead, const PBPair &newPartonBins, const DiagramVector &newDiagrams, tMEPtr newME=tMEPtr()) |
virtual void | fillProjectors () |
virtual void | setXComb (tStdXCombPtr) |
const DVector & | meInfo () const |
void | meInfo (const DVector &info) const |
virtual int | maxMultCKKW () const |
virtual int | minMultCKKW () const |
virtual void | maxMultCKKW (int mult) |
virtual void | minMultCKKW (int mult) |
virtual void | setVetoScales (tSubProPtr) const |
void | persistentOutput (PersistentOStream &os) const |
void | persistentInput (PersistentIStream &is, int version) |
Public Member Functions inherited from 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 |
void | persistentOutput (PersistentOStream &os) const |
void | persistentInput (PersistentIStream &is, int version) |
Public Member Functions inherited from ThePEG::InterfacedBase | |
string | fullName () const |
string | name () const |
string | path () const |
string | comment () const |
void | setup (istream &is) |
virtual IBPtr | fullclone () const |
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 |
void | persistentOutput (PersistentOStream &os) const |
void | persistentInput (PersistentIStream &is, int version) |
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 |
void | persistentOutput (PersistentOStream &os) const |
void | persistentInput (PersistentIStream &is, int version) |
Public Member Functions inherited from ThePEG::Base | |
void | debug () 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 |
Public Member Functions inherited from ThePEG::LastXCombInfo< StandardXComb > | |
const StandardXComb & | lastXComb () const |
const StandardXComb & | lastXComb () const |
tXCPtr | lastXCombPtr () const |
tXCPtr | lastXCombPtr () const |
const StandardXComb & | lastHeadXComb () const |
const StandardXComb & | lastHeadXComb () const |
tXCPtr | lastHeadXCombPtr () const |
tXCPtr | lastHeadXCombPtr () const |
const EventHandler & | lastEventHandler () const |
const EventHandler & | lastEventHandler () const |
tPExtrPtr | lastExtractor () const |
tPExtrPtr | lastExtractor () const |
PDFT | pdf (tcPPtr parton) const |
PDFT | pdf (tcPPtr parton) const |
const Cuts & | lastCuts () const |
const Cuts & | lastCuts () const |
tCutsPtr | lastCutsPtr () const |
tCutsPtr | lastCutsPtr () const |
const PPair & | lastParticles () const |
const PPair & | lastParticles () const |
Energy2 | lastS () const |
Energy2 | lastS () const |
const PPair & | lastPartons () const |
const PPair & | lastPartons () const |
Energy2 | lastSHat () const |
Energy2 | lastSHat () const |
double | lastTau () const |
double | lastTau () const |
double | lastY () const |
double | lastY () const |
double | lastP1 () const |
double | lastP1 () const |
double | lastP2 () const |
double | lastP2 () const |
double | lastL1 () const |
double | lastL1 () const |
double | lastL2 () const |
double | lastL2 () const |
double | lastX1 () const |
double | lastX1 () const |
double | lastX2 () const |
double | lastX2 () const |
double | lastE1 () const |
double | lastE1 () const |
double | lastE2 () const |
double | lastE2 () const |
double | lastFL1L2 () const |
double | lastFL1L2 () const |
Energy2 | lastScale () const |
Energy2 | lastScale () const |
double | lastAlphaS () const |
double | lastAlphaS () const |
double | lastAlphaEM () const |
double | lastAlphaEM () const |
const vector< Lorentz5Momentum > & | meMomenta () const |
const vector< Lorentz5Momentum > & | meMomenta () const |
double | lastME2 () const |
double | lastME2 () const |
double | lastPreweight () const |
double | lastPreweight () const |
double | jacobian () const |
double | jacobian () const |
CrossSection | lastMECrossSection () const |
CrossSection | lastMECrossSection () const |
double | lastMEPDFWeight () const |
double | lastMEPDFWeight () const |
double | lastMECouplings () const |
double | lastMECouplings () const |
tSubProPtr | subProcess () const |
tSubProPtr | subProcess () const |
const cPDVector & | mePartonData () const |
const cPDVector & | mePartonData () const |
Static Public Member Functions | |
static void | Init () |
The standard Init function used to initialize the interfaces. More... | |
Static Public Member Functions inherited from ThePEG::MEBase | |
static void | Init () |
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 () |
Protected Member Functions | |
void | massOption (vector< unsigned int > iopt) |
Set the treatment of the outgoing masses. More... | |
bool | generateMasses (vector< Energy > &masses, double &mjac, const double *r) |
Generate the masses of the particles. | |
virtual double | getCosTheta (double cthmin, double cthmax, const double r) |
Used internally by generateKinematics, after calculating the limits on cos(theta). | |
Access cached values in of the last set phase space point. | |
Energy2 | tHat () const |
Return the of the last set phase space point. | |
Energy2 | uHat () const |
Return the of the last set phase space point. | |
double | phi () const |
Return the azimuth angle of the last set phase space point. | |
Set the cached values in of the last set phase space point. | |
void | tHat (Energy2 e2) |
Set the of the last set phase space point. | |
void | uHat (Energy2 e2) |
Set the of the last set phase space point. | |
void | phi (double phi) |
Set the azimuth angle of the last set phase space point. | |
void | rescalingOption (unsigned int iopt) |
Rescaled momenta for the helicity ME. More... | |
bool | rescaleMomenta (const vector< Lorentz5Momentum > &, const cPDVector &) |
rescale the momenta for the computation of the helicity matrix element | |
const vector< Lorentz5Momentum > & | rescaledMomenta () const |
Access to the rescaled momenta. | |
Protected Member Functions inherited from ThePEG::MEBase | |
void | add (DiagPtr dp) const |
vector< Lorentz5Momentum > & | meMomenta () |
void | lastME2 (double v) const |
void | lastPreweight (double w) const |
void | lastMECrossSection (CrossSection v) const |
void | lastMEPDFWeight (double v) const |
void | lastMECouplings (double v) const |
void | jacobian (double j) |
void | use (tcMEPtr other) |
void | useDiagrams (tcMEPtr other) const |
virtual void | doinit () |
virtual void | doinitrun () |
virtual void | doinit () |
virtual void | doinitrun () |
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 IBPtr | clone () const=0 |
InterfacedBase (string newName) | |
InterfacedBase (const InterfacedBase &i) | |
virtual void | readSetup (istream &is) |
virtual void | doupdate () |
virtual void | dofinish () |
virtual IVector | getReferences () |
virtual void | rebind (const TranslationMap &) |
virtual void | readSetup (istream &is) |
virtual void | doupdate () |
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 &) |
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) |
Private Member Functions | |
HwMEBase & | operator= (const HwMEBase &)=delete |
The assignment operator is private and must never be called. More... | |
Private Attributes | |
vector< unsigned int > | massOption_ |
Option for the treatment of the particle masses. | |
Energy2 | lastTHat_ |
The of the last set phase space point. | |
Energy2 | lastUHat_ |
The of the last set phase space point. | |
double | lastPhi_ |
The azimuth angle of the last set phase space point. | |
unsigned int | rescaleOption_ |
Produced to produce rescaled momenta. | |
vector< Lorentz5Momentum > | rescaledMomenta_ |
Rescaled momenta for use in ME calculations. | |
enum | POWHEGType { No, ISR, FSR, Both } |
Virtual members to be overridden by inheriting classes which implement hard corrections. More... | |
virtual POWHEGType | hasPOWHEGCorrection () |
Has a POWHEG style correction. | |
virtual bool | hasMECorrection () |
Has an old fashioned ME correction. | |
virtual void | initializeMECorrection (RealEmissionProcessPtr, double &, double &) |
Initialize the ME correction. | |
virtual RealEmissionProcessPtr | applyHardMatrixElementCorrection (RealEmissionProcessPtr) |
Apply the hard matrix element correction to a given hard process or decay. | |
virtual bool | softMatrixElementVeto (PPtr parent, PPtr progenitor, const bool &fs, const Energy &highestpT, const vector< tcPDPtr > &ids, const double &z, const Energy &scale, const Energy &pT) |
Apply the soft matrix element correction. More... | |
virtual RealEmissionProcessPtr | generateHardest (RealEmissionProcessPtr, ShowerInteraction) |
Apply the POWHEG style correction. | |
Additional Inherited Members | |
Public Types inherited from ThePEG::MEBase | |
typedef vector< DiagPtr > | DiagramVector |
typedef DiagramVector::size_type | DiagramIndex |
typedef vector< ReweightPtr > | ReweightVector |
Public Types inherited from ThePEG::InterfacedBase | |
enum | InitState |
Public Types inherited from ThePEG::Pointer::ReferenceCounted | |
typedef unsigned int | CounterType |
Public Types inherited from ThePEG::LastXCombInfo< StandardXComb > | |
typedef ThePEG::Ptr< StandardXComb >::pointer | XCPtr |
typedef ThePEG::Ptr< StandardXComb >::const_pointer | cXCPtr |
typedef ThePEG::Ptr< StandardXComb >::transient_pointer | tXCPtr |
typedef ThePEG::Ptr< StandardXComb >::transient_const_pointer | tcXCPtr |
Public Attributes inherited from ThePEG::InterfacedBase | |
initializing | |
uninitialized | |
initialized | |
runready | |
Public Attributes inherited from ThePEG::Pointer::ReferenceCounted | |
const unsigned long | uniqueId |
Static Protected Member Functions inherited from ThePEG::Interfaced | |
static void | registerRepository (IBPtr) |
static void | registerRepository (IBPtr, string newName) |
Protected Attributes inherited from ThePEG::LastXCombInfo< StandardXComb > | |
XCPtr | theLastXComb |
The HwMEBase class serves a number of purposes.
Definition at line 35 of file HwMEBase.h.
Virtual members to be overridden by inheriting classes which implement hard corrections.
Type of POWHEG correction
Definition at line 87 of file HwMEBase.h.
|
virtual |
Return the matrix element for the kinematical configuation previously provided by the last call to setKinematics().
Uses me().
Implements ThePEG::MEBase.
Reimplemented in Herwig::DISBase, Herwig::MEHiggsPairOL, Herwig::GeneralQQHiggs, Herwig::MEHiggsPair, Herwig::MEPP2GammaGammaPowheg, Herwig::MEPP2QQHiggs, Herwig::MEHiggsPairJet, Herwig::MEMinBias, Herwig::MEDiffraction, Herwig::MEfftoffH, Herwig::MEfftoVH, Herwig::MEPP2ZJet, Herwig::MEPP2WJet, Herwig::MEqq2gZ2ffPowheg, Herwig::MEqq2W2ffPowheg, Herwig::MEPP2WHPowheg, Herwig::MEPP2ZHPowheg, Herwig::MEPP2HiggsVBFPowheg, and Herwig::MEPP2Higgs.
|
virtual |
Generate internal degrees of freedom given 'nDim()' uniform random numbers in the interval ]0,1[.
To help the phase space generator, the 'dSigHatDR()' should be a smooth function of these numbers, although this is not strictly necessary. Return false if the chosen points failed the kinematical cuts.
Implements ThePEG::MEBase.
Reimplemented in Herwig::MEPP2Higgs, Herwig::DISBase, Herwig::MEHiggsPairOL, Herwig::GeneralQQHiggs, Herwig::MEHiggsPair, Herwig::MEPP2GammaGammaPowheg, Herwig::MEPP2QQHiggs, Herwig::MEMinBias, Herwig::MEHiggsPairJet, Herwig::MEDiffraction, Herwig::MEfftoffH, Herwig::MEfftoVH, Herwig::MEPP2ZJet, Herwig::MEPP2WJet, Herwig::MEPP2HiggsPowheg, Herwig::MEPP2VVPowheg, Herwig::MEqq2gZ2ffPowheg, Herwig::MEqq2W2ffPowheg, Herwig::MEPP2WHPowheg, Herwig::MEee2gZ2llPowheg, Herwig::MEPP2HiggsVBFPowheg, and Herwig::MEPP2ZHPowheg.
|
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.
|
inlineprotected |
Set the treatment of the outgoing masses.
iopt | The option for the treatment of the mass |
Definition at line 206 of file HwMEBase.h.
The assignment operator is private and must never be called.
In fact, it should not even be implemented.
void Herwig::HwMEBase::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::HwMEBase::persistentOutput | ( | PersistentOStream & | os | ) | const |
Function used to write out object persistently.
os | the persistent output stream written to. |
|
inlineprotected |
Rescaled momenta for the helicity ME.
Set the treatment of the rescaling of the momenta for the matrix element calculation
iopt | The rescaling option |
Definition at line 219 of file HwMEBase.h.
|
virtual |
Apply the soft matrix element correction.
parent | The initial particle in the current branching |
progenitor | The progenitor particle of the jet |
fs | Whether the emission is initial or final-state |
highestpT | The highest pT so far in the shower |
ids | ids of the particles produced in the branching |
z | The momentum fraction of the branching |
scale | the evolution scale of the branching |
pT | The transverse momentum of the branching |
Reimplemented in Herwig::MEPP2HiggsVBF, Herwig::MEPP2Higgs, Herwig::MEee2gZ2qq, Herwig::DrellYanBase, and Herwig::DISBase.