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

Here is the documentation of the PowhegHandler class. More...

#include <PowhegHandler.h>

Inheritance diagram for Herwig::PowhegHandler:

Public Member Functions

 PowhegHandler ()
 The default constructor.
 
virtual double reweightCKKW (int minMult, int maxMult)
 Perform CKKW reweighting.
 
virtual HardTreePtr generateCKKW (ShowerTreePtr tree) const
 Generate hard emissions for CKKW etc.
 
- Public Member Functions inherited from Herwig::MatchingHandler
 MatchingHandler (bool reWeight=false)
 The default constructor.
 
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.
 
- 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.
 
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.
 
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.
 
bool doesSplitHardProcess () const
 Information if the Showerhandler splits the hard process.
 
tDMPtr decay (PerturbativeProcessPtr, DecayProcessMap &decay, bool radPhotons=false) const
 Decay a particle.
 
tDMPtr findDecayMode (const string &tag) const
 Cached lookup of decay modes.
 
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.
 
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.
 
unsigned int spinCorrelations () const
 Access to switches for spin correlations.
 
virtual bool correlations () const
 Any correlations.
 
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.
 
bool decaysInShower (long id) const
 Check if a particle decays in the shower.
 
- Public Member Functions inherited from ThePEG::CascadeHandler
virtual void handle (EventHandler &eh, const tPVector &tagged, const Hint &hint)
 
virtual void cascade ()=0
 
virtual double reweightCKKW (int minMult, int maxMult)
 
const tPVectortagged () const
 
const Hinthint () const
 
const PDFfirstPDF () const
 
const PDFsecondPDF () 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)
 
virtual bool isReshuffling () const
 
bool didRunCascade () const
 
virtual void handle (EventHandler &eh, const tPVector &tagged, const Hint &hint)
 
virtual void cascade ()=0
 
virtual double reweightCKKW (int minMult, int maxMult)
 
- Public Member Functions inherited from ThePEG::StepHandler
virtual void handle (EventHandler &eh, const tPVector &tagged, const Hint &hint)=0
 
tEHPtr eventHandler () const
 
void eventHandler (tEHPtr)
 
tStepPtr newStep ()
 
tStepPtr currentStep ()
 
virtual void handle (EventHandler &eh, const tPVector &tagged, const Hint &hint)=0
 
- 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 StandardModelBaseSM () 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
 
- Public Member Functions inherited from ThePEG::LastXCombInfo< typename XC >
const XC & lastXComb () const
 
tXCPtr lastXCombPtr () const
 
const XC & lastHeadXComb () const
 
tXCPtr lastHeadXCombPtr () const
 
const EventHandlerlastEventHandler () const
 
tPExtrPtr lastExtractor () const
 
PDFT pdf (tcPPtr parton) const
 
const CutslastCuts () const
 
tCutsPtr lastCutsPtr () const
 
const PPairlastParticles () const
 
Energy2 lastS () const
 
const PPairlastPartons () const
 
Energy2 lastSHat () const
 
double lastTau () const
 
double lastY () const
 
double lastP1 () const
 
double lastP2 () const
 
double lastL1 () const
 
double lastL2 () const
 
double lastX1 () const
 
double lastX2 () const
 
double lastE1 () const
 
double lastE2 () const
 
double lastFL1L2 () const
 
Energy2 lastScale () const
 
double lastAlphaS () const
 
double lastAlphaEM () const
 
const vector< Lorentz5Momentum > & meMomenta () const
 
double lastME2 () const
 
double lastPreweight () const
 
double jacobian () const
 
CrossSection lastMECrossSection () const
 
double lastMEPDFWeight () const
 
double lastMECouplings () const
 
tSubProPtr subProcess () const
 
const cPDVectormePartonData () const
 
const XC & lastXComb () const
 
tXCPtr lastXCombPtr () const
 
const XC & lastHeadXComb () const
 
tXCPtr lastHeadXCombPtr () const
 
const EventHandlerlastEventHandler () const
 
tPExtrPtr lastExtractor () const
 
PDFT pdf (tcPPtr parton) const
 
const CutslastCuts () const
 
tCutsPtr lastCutsPtr () const
 
const PPairlastParticles () const
 
Energy2 lastS () const
 
const PPairlastPartons () const
 
Energy2 lastSHat () const
 
double lastTau () const
 
double lastY () const
 
double lastP1 () const
 
double lastP2 () const
 
double lastL1 () const
 
double lastL2 () const
 
double lastX1 () const
 
double lastX2 () const
 
double lastE1 () const
 
double lastE2 () const
 
double lastFL1L2 () const
 

Clone Methods.

unsigned int pTDefinition_
 Control over the selection of the maximum \(p_T\) for emission.
 
Energy maxpT_
 Maximum pT for the shower for non-emission events.
 
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.
 
PowhegHandleroperator= (const PowhegHandler &)=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.
 
virtual double sudakovWeight (CKKWTreePtr)
 Calculate the Sudakov weight.
 
virtual PotentialTree chooseHardTree (double totalWeight, double nonOrderedWeight)
 Select the hard tree.
 

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, ParticleOrderingOrderedParticles
 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< typename XC >
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
 
- Static Public Member Functions inherited from Herwig::MatchingHandler
static void Init ()
 The standard Init function used to initialize the interfaces.
 
- 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.
 
- Static Public Member Functions inherited from ThePEG::CascadeHandler
static void setDidRunCascade (bool c)
 
static void Init ()
 
- 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 ()
 
- 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 Herwig::MatchingHandler
virtual void doinit ()
 Initialize this object after the setup phase before saving an EventGenerator to disk.
 
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
 
Energy2 sHat () const
 Access to basic info on the event.
 
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.
 
set< ProtoTreePtr > & protoTrees ()
 The ProtoTrees which will become CKKWTrees.
 
PotentialTreehardTree ()
 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.
 
double getDiagram (PotentialTree &)
 Returns the diagram corresponding to the (leading-order) hardTree.
 
void fillProtoTrees (ProtoTreePtr)
 Recursive function to find all possible clustered trees.
 
bool updateSubProcess ()
 update sub process based on the CKKWTree and Diagram
 
PotentialTree doClustering ()
 Creates all (ordered) cluster histories and selects one.
 
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.
 
- Protected Member Functions inherited from Herwig::ShowerHandler
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.
 
void unSetCurrentHandler ()
 Unset the current handler.
 
tSubProPtr currentSubProcess () const
 Return the currently used SubProcess.
 
tPPair incomingBeams () const
 Access to the incoming beam particles.
 
void combineWeights ()
 Weight handling for shower variations.
 
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.
 
bool includeSpaceTime () const
 Parameters for the space-time model.
 
Energy2 vMin () const
 The minimum virtuality for the space-time model.
 
virtual void doinitrun ()
 Initialize this object.
 
virtual void dofinish ()
 Finalize this object.
 
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.
 
void createDecayProcess (PPtr parent, PerturbativeProcessPtr hard, DecayProcessMap &decay) const
 Find decay products from the hard process and create decay processes.
 
- 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
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)
 
- Protected Attributes inherited from ThePEG::LastXCombInfo< typename XC >
XCPtr theLastXComb
 

Detailed Description

Here is the documentation of the PowhegHandler class.

See also
The interfaces defined for PowhegHandler.

Definition at line 20 of file PowhegHandler.h.

Constructor & Destructor Documentation

◆ PowhegHandler()

Herwig::PowhegHandler::PowhegHandler ( )
inline

The default constructor.

Definition at line 27 of file PowhegHandler.h.

Member Function Documentation

◆ chooseHardTree()

virtual PotentialTree Herwig::PowhegHandler::chooseHardTree ( double  totalWeight,
double  nonOrderedWeight 
)
protectedvirtual

Select the hard tree.

Implements Herwig::MatchingHandler.

◆ clone()

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

Make a simple clone of this object.

Returns
a pointer to the new object.

Reimplemented from Herwig::ShowerHandler.

◆ fullclone()

virtual IBPtr Herwig::PowhegHandler::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 Herwig::ShowerHandler.

◆ Init()

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

◆ operator=()

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

The assignment operator is private and must never be called.

In fact, it should not even be implemented.

◆ persistentInput()

void Herwig::PowhegHandler::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::PowhegHandler::persistentOutput ( PersistentOStream os) const

Function used to write out object persistently.

Parameters
osthe persistent output stream written to.

◆ reweightCKKW()

virtual double Herwig::PowhegHandler::reweightCKKW ( int  minMult,
int  maxMult 
)
virtual

Perform CKKW reweighting.

Reimplemented from ThePEG::CascadeHandler.

◆ sudakovWeight()

virtual double Herwig::PowhegHandler::sudakovWeight ( CKKWTreePtr  )
inlineprotectedvirtual

Calculate the Sudakov weight.

Implements Herwig::MatchingHandler.

Definition at line 69 of file PowhegHandler.h.

Member Data Documentation

◆ maxpT_

Energy Herwig::PowhegHandler::maxpT_
private

Maximum pT for the shower for non-emission events.

Definition at line 111 of file PowhegHandler.h.

◆ pTDefinition_

unsigned int Herwig::PowhegHandler::pTDefinition_
private

Control over the selection of the maximum \(p_T\) for emission.

Definition at line 106 of file PowhegHandler.h.


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