Herwig
7.2.1
|
Here is the documentation of the MatchingHandler class. More...
#include <MatchingHandler.h>
Public Member Functions | |
MatchingHandler (bool reWeight=false) | |
The default constructor. | |
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 Herwig::ShowerHandler | |
ShowerHandler () | |
Default constructor. | |
virtual | ~ShowerHandler () |
Destructor. | |
virtual void | cascade () |
The main method which manages the multiple interactions and starts the shower by calling cascade(sub, lastXC). | |
virtual bool | showerHardProcessVeto () const |
Hook to allow vetoing of event after showering hard sub-process as in e.g. More... | |
virtual bool | isReshuffling () const |
Return true, if this cascade handler will perform reshuffling from hard process masses. | |
virtual bool | retConstituentMasses () const |
Return true, if this cascade handler will put the final state particles to their constituent mass. More... | |
virtual bool | canHandleMatchboxTrunc () const |
Return true, if the shower handler can generate a truncated shower for POWHEG style events generated using Matchbox. | |
Energy | pdfFreezingScale () const |
Get the PDF freezing scale. | |
PDFPtr | getPDFA () const |
Get the local PDFs. | |
PDFPtr | getPDFB () const |
Get the local PDFs. | |
bool | firstInteraction () const |
Return true if currently the primary subprocess is showered. | |
tHwRemDecPtr | remnantDecayer () const |
Return the remnant decayer. | |
void | splitHardProcess (tPVector tagged, PerturbativeProcessPtr &hard, DecayProcessMap &decay) const |
Split the hard process into production and decays. More... | |
bool | doesSplitHardProcess () const |
Information if the Showerhandler splits the hard process. | |
tDMPtr | decay (PerturbativeProcessPtr, DecayProcessMap &decay, bool radPhotons=false) const |
Decay a particle. More... | |
tDMPtr | findDecayMode (const string &tag) const |
Cached lookup of decay modes. More... | |
map< string, ShowerVariation > & | showerVariations () |
Access the shower variations. | |
const map< string, ShowerVariation > & | showerVariations () const |
Return the shower variations. | |
map< string, double > & | currentWeights () |
Access the current Weights. | |
const map< string, double > & | currentWeights () const |
Return the current Weights. | |
void | reweight (double w) |
Change the current reweighting factor. | |
double | reweight () const |
Return the current reweighting factor. | |
bool | decaysInShower (long id) const |
Check if a particle decays in the shower. More... | |
bool | doRadiation () const |
Switch for any radiation. | |
bool | doFSR () const |
Switch on or off final state radiation. | |
bool | doISR () const |
Switch on or off initial state radiation. | |
bool | hardScaleIsMuF () const |
Return true if maximum pt should be deduced from the factorization scale. | |
double | factorizationScaleFactor () const |
The factorization scale factor. | |
double | renFac () const |
The renormalization scale factor. | |
double | facFac () const |
The factorization scale factor. | |
double | renormalizationScaleFactor () const |
The renormalization scale factor. | |
double | hardScaleFactor () const |
The scale factor for the hard scale. | |
bool | restrictPhasespace () const |
Return true, if the phase space restrictions of the dipole shower should be applied. | |
Ptr< HardScaleProfile >::tptr | profileScales () const |
Return profile scales. | |
virtual Energy | hardScale () const |
Return the relevant hard scale to be used in the profile scales. | |
virtual int | showerPhaseSpaceOption () const |
Return information about shower phase space choices. | |
unsigned int | spinCorrelations () const |
Access to switches for spin correlations. More... | |
virtual bool | correlations () const |
Any correlations. | |
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::CascadeHandler | |
virtual double | reweightCKKW (int minMult, int maxMult) |
virtual void | handle (EventHandler &eh, const tPVector &tagged, const Hint &hint) |
virtual void | handle (EventHandler &eh, const tPVector &tagged, const Hint &hint) |
const tPVector & | tagged () const |
const Hint & | hint () const |
const PDF & | firstPDF () const |
const PDF & | secondPDF () const |
const pair< PDF, PDF > & | pdfs () const |
void | resetPDFs (const pair< tcPDFPtr, tcPDFPtr > &pdfpair) |
void | resetPDFs (const pair< tcPDFPtr, tcPDFPtr > &pdfpair, PBPair ppair) |
void | setXComb (tXCombPtr xc) |
bool | didRunCascade () const |
Public Member Functions inherited from ThePEG::StepHandler | |
tEHPtr | eventHandler () const |
void | eventHandler (tEHPtr) |
tStepPtr | newStep () |
tStepPtr | currentStep () |
tEHPtr | eventHandler () const |
void | eventHandler (tEHPtr) |
tStepPtr | newStep () |
tStepPtr | currentStep () |
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 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<> | |
const XC & | lastXComb () const |
const XC & | lastXComb () const |
tXCPtr | lastXCombPtr () const |
tXCPtr | lastXCombPtr () const |
const XC & | lastHeadXComb () const |
const XC & | 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 Herwig::ShowerHandler | |
static const tShowerHandlerPtr | currentHandler () |
pointer to "this", the current ShowerHandler. | |
static bool | currentHandlerIsSet () |
pointer to "this", the current ShowerHandler. | |
static void | Init () |
The standard Init function used to initialize the interfaces. More... | |
Static Public Member Functions inherited from ThePEG::CascadeHandler | |
static void | Init () |
static void | setDidRunCascade (bool c) |
Static Public Member Functions inherited from ThePEG::StepHandler | |
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 | |
MEPtr | matrixElement () const |
Access to the core matrix element. | |
HwMEBasePtr | HWMatrixElement () const |
Access to the core Hw++ matrix element. | |
PExtrPtr | partonExtractor () |
The PartonExtractor object used to construct remnants. | |
PartonPairVec | partonBins () |
The pairs of PartonBin objects describing the partons which can be extracted by the PartonExtractor object. | |
void | partonBins (PartonPairVec bins) |
The pairs of PartonBin objects describing the partons which can be extracted by the PartonExtractor object. | |
CutsPtr & | cuts () |
The Cuts object to be used for this reader. | |
void | initialiseMatching (int minMult, int maxMult) |
Initialise the matching. | |
ShowerAlphaPtr | alphaS () |
Pointer to the object calculating the strong coupling. | |
bool | rejectNonAngularOrdered () |
whether to just reject event if there are no angular ordered histories (true) or to choose one of the non angular ordered histories (false) | |
bool | rejectNoShowerHistory () |
whether to reject events (true) for which there is no parton shower interpretation or just shower them with no reweighting | |
double | getDiagram (PotentialTree &) |
Returns the diagram corresponding to the (leading-order) hardTree. | |
void | fillProtoTrees (ProtoTreePtr) |
Recursive function to find all possible clustered trees. More... | |
bool | updateSubProcess () |
update sub process based on the CKKWTree and Diagram | |
PotentialTree | doClustering () |
Creates all (ordered) cluster histories and selects one. | |
virtual double | sudakovWeight (CKKWTreePtr)=0 |
Calculate the Sudakov weight. | |
virtual PotentialTree | chooseHardTree (double totalWeight, double nonOrderedWeight)=0 |
Select the hard tree. | |
tProtoBranchingPtr | getCluster (tProtoBranchingPtr, tProtoBranchingPtr) |
Function looks to see if a cluster of the branchings already exists in protoBranchings_ if so returns the pointer to that protoBranching if not creates the hardBranchings, adds it to protoBranchings and returns the pointer. | |
bool | repeatProtoTree (ProtoTreePtr currentProtoTree) |
Checks whether a ProtoTree containing the same branchings already exists in protoTrees_ in which case the current tree is a repeat and should be removed (and not recursed) | |
BranchingElement | allowedFinalStateBranching (tProtoBranchingPtr &, tProtoBranchingPtr &) |
Returns the branching element for an FS-FS clustering. | |
BranchingElement | allowedInitialStateBranching (tProtoBranchingPtr &, tProtoBranchingPtr &) |
Returns the branching element for an IS-FS clustering. | |
void | findDecayingParticles (PPtr parent) |
Find decaying particles. | |
map< PPtr, ParticleVector >::const_iterator | parent (PPtr parent) |
Check if a decayed particle. | |
void | addDecayProducts (SubProPtr subProcess, PPtr parent, map< PPtr, ParticleVector >::const_iterator decay, const LorentzRotation &boost) const |
Add the decay products of a particle to the new SubProcess. | |
Standard Interfaced functions. | |
virtual void | doinit () |
Initialize this object after the setup phase before saving an EventGenerator to disk. More... | |
Energy2 | sHat () const |
Access to basic info on the event. More... | |
void | sHat (Energy2 in) |
Centre of mass energy. | |
Energy | pdfScale () const |
The fixed factorization scale used in the MEs. | |
void | pdfScale (Energy in) |
The fixed factorization scale used in the MEs. | |
double | alphaSMG () const |
The fixed alphaS value that was used to generate parton configurations. | |
void | alphaSMG (double in) |
The fixed alphaS value that was used to generate parton configurations. | |
bool | noShowerHistory () |
Whether we are treating an event with no shower interpretation. | |
bool | highestMult () const |
whether the current event is a highest multiplicity event. | |
bool | lowestMult () const |
whether the current event is a lowest multiplicity event | |
set< ProtoBranchingPtr > & | protoBranchings () |
Storage of potential shower interpretations. More... | |
set< ProtoTreePtr > & | protoTrees () |
The ProtoTrees which will become CKKWTrees. | |
PotentialTree & | hardTree () |
Access to the select tree. | |
void | hardTree (PotentialTree in) |
Access to the select tree. | |
CKKWTreePtr | getCKKWTree () const |
access to the hard tree object | |
vector< pair< PotentialTree, double > > & | hardTrees () |
The possible shower configurations that are angular-ordered. | |
vector< pair< PotentialTree, double > > & | nonOrderedTrees () |
The possible shower configurations that are not angular-ordered. | |
Protected Member Functions inherited from Herwig::ShowerHandler | |
void | combineWeights () |
Weight handling for shower variations. More... | |
void | initializeWeights () |
Initialise the weights in currentEvent() | |
void | resetWeights () |
Reset the current weights. | |
unsigned int | maxtry () const |
Return the maximum number of attempts for showering a given subprocess. | |
virtual tPPair | cascade (tSubProPtr sub, XCPtr xcomb) |
The main method which manages the showering of a subprocess. | |
void | prepareCascade (tSubProPtr sub) |
Set up for the cascade. | |
void | boostCollision (bool boost) |
Boost all the particles in the collision so that the collision always occurs in the rest frame with the incoming particles along the z axis. | |
void | setCurrentHandler () |
Set/unset the current shower handler. More... | |
void | unSetCurrentHandler () |
Unset the current handler. | |
bool | isMPIOn () const |
Return true if multiple parton interactions are switched on and can be used for this beam setup. | |
tUEBasePtr | getMPIHandler () const |
Access function for the MPIHandler, it should only be called after checking with isMPIOn. | |
bool | isResolvedHadron (tPPtr) |
Is a beam particle where hadronic structure is resolved. | |
RemPair | getRemnants (PBIPair incbins) |
Get the remnants from the ThePEG::PartonBinInstance es and do some checks. | |
void | setMPIPDFs () |
Reset the PDF's after the hard collision has been showered. | |
void | findDecayProducts (PPtr parent, PerturbativeProcessPtr hard, DecayProcessMap &decay) const |
Members to handle splitting up of hard process and decays. More... | |
void | createDecayProcess (PPtr parent, PerturbativeProcessPtr hard, DecayProcessMap &decay) const |
Find decay products from the hard process and create decay processes. More... | |
tSubProPtr | currentSubProcess () const |
Return the currently used SubProcess. | |
tPPair | incomingBeams () const |
Access to the incoming beam particles. | |
bool | includeSpaceTime () const |
Parameters for the space-time model. More... | |
Energy2 | vMin () const |
The minimum virtuality for the space-time model. | |
virtual IBPtr | clone () const |
Make a simple clone of this object. More... | |
virtual IBPtr | fullclone () const |
Make a clone of this object, possibly modifying the cloned object to make it sane. More... | |
virtual void | doinitrun () |
Initialize this object. More... | |
virtual void | dofinish () |
Finalize this object. More... | |
Protected Member Functions inherited from ThePEG::StepHandler | |
void | createNewStep () |
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 | |
InterfacedBase (string newName) | |
InterfacedBase (const InterfacedBase &i) | |
virtual void | readSetup (istream &is) |
virtual void | doupdate () |
virtual IVector | getReferences () |
virtual void | rebind (const TranslationMap &) |
virtual void | readSetup (istream &is) |
virtual void | doupdate () |
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 | |
MatchingHandler & | operator= (const MatchingHandler &)=delete |
The assignment operator is private and must never be called. More... | |
Private Attributes | |
bool | reWeight_ |
Whether or not to reweight. | |
bool | rejectNonAO_ |
whether to just reject event if there are no angular ordered histories (true) or to choose one of the non angular ordered histories (false) | |
bool | rejectNOHistories_ |
whether to reject events (true) for which there is no parton shower interpretation or just shower them with no reweighting | |
bool | includeDecays_ |
Include decaying particles. | |
MEPtr | matrixElement_ |
The matrix element for the core process. | |
HwMEBasePtr | HWmatrixElement_ |
The cast matrix element. | |
PExtrPtr | partonExtractor_ |
The PartonExtractor object used to construct remnants. | |
PartonPairVec | partonBins_ |
The pairs of PartonBin objects describing the partons which can be extracted by the PartonExtractor object. | |
CutsPtr | cuts_ |
The Cuts object to be used for this reader. | |
Energy2 | sHat_ |
Centre of mass energy. | |
ShowerAlphaPtr | alphaS_ |
Pointer to the object calculating the strong coupling. | |
Energy | pdfScale_ |
The fixed factorization scale used in the MEs. | |
double | alphaSMG_ |
The fixed alphaS value that was used to generate parton configurations. | |
set< ProtoBranchingPtr > | protoBranchings_ |
Storage of the potential shower interpretation. More... | |
set< ProtoTreePtr > | protoTrees_ |
The ProtoTrees which will become CKKWTrees. | |
PotentialTree | hardTree_ |
The chosen hard tree. | |
vector< pair< PotentialTree, double > > | hardTrees_ |
The possible shower configurations that are angular-ordered. | |
vector< pair< PotentialTree, double > > | nonOrderedTrees_ |
The possible shower configurations that are not angular-ordered. | |
map< PPtr, ParticleVector > | decayingParticles_ |
Any decays. | |
bool | noShowerHists_ |
Whether we are treating an event with no shower interpretation. | |
bool | highestMult_ |
Whether we are treating the highest multiplicity contribution. | |
bool | lowestMult_ |
Whether we are treating the lowest multiplicity contribution. | |
map< pair< long, long >, pair< SudakovPtr, IdList > > | allowedFinal_ |
Which branchings are allowed? More... | |
multimap< long, pair< SudakovPtr, IdList > > | allowedInitial_ |
The allowed initial-state branchings. | |
Additional Inherited Members | |
Public Types inherited from Herwig::ShowerHandler | |
typedef pair< tRemPPtr, tRemPPtr > | RemPair |
Typedef for a pair of ThePEG::RemnantParticle pointers. | |
typedef multiset< tcPDPtr, ParticleOrdering > | OrderedParticles |
A container for ordered particles required for constructing tags for decay mode lookup. | |
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<> | |
typedef ThePEG::Ptr< XC >::pointer | XCPtr |
typedef ThePEG::Ptr< XC >::const_pointer | cXCPtr |
typedef ThePEG::Ptr< XC >::transient_pointer | tXCPtr |
typedef ThePEG::Ptr< XC >::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<> | |
XCPtr | theLastXComb |
Here is the documentation of the MatchingHandler class.
Definition at line 27 of file MatchingHandler.h.
|
protectedvirtual |
Initialize this object after the setup phase before saving an EventGenerator to disk.
InitException | if object could not be initialized properly. |
Reimplemented from Herwig::ShowerHandler.
|
protected |
Recursive function to find all possible clustered trees.
Does not produce any repeated trees.
|
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.
|
privatedelete |
The assignment operator is private and must never be called.
In fact, it should not even be implemented.
void Herwig::MatchingHandler::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::MatchingHandler::persistentOutput | ( | PersistentOStream & | os | ) | const |
Function used to write out object persistently.
os | the persistent output stream written to. |
|
inlineprotected |
Storage of potential shower interpretations.
Access to the potential branchings
Definition at line 187 of file MatchingHandler.h.
|
inlineprotected |
Access to basic info on the event.
Centre of mass energy
Definition at line 137 of file MatchingHandler.h.
|
private |
Which branchings are allowed?
The allowed final-state branchings
Definition at line 437 of file MatchingHandler.h.
|
private |
Storage of the potential shower interpretation.
All the Protobranchings used in finding the shower histories
Definition at line 387 of file MatchingHandler.h.