herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::GeneralHardME Class Referenceabstract

This defines the GeneralHardME class that is designed to serve as a base class for matrix elements of specific spin structures when those structures are created by a a general model, i.e. More...

#include <GeneralHardME.h>

Inheritance diagram for Herwig::GeneralHardME:

Public Types

enum  ColourStructure {
  UNDEFINED , Colour11to11 , Colour11to33bar , Colour11to88 ,
  Colour33to33 , Colour33barto11 , Colour33barto33bar , Colour33barto66bar ,
  Colour33barto6bar6 , Colour33to61 , Colour3bar3barto6bar1 , Colour33to16 ,
  Colour3bar3barto16bar , Colour38to3bar6 , Colour38to63bar , Colour33barto18 ,
  Colour33barto81 , Colour33barto88 , Colour38to13 , Colour38to31 ,
  Colour38to83 , Colour38to38 , Colour3bar3barto3bar3bar , Colour3bar8to13bar ,
  Colour3bar8to3bar1 , Colour3bar8to83bar , Colour3bar8to3bar8 , Colour88to11 ,
  Colour88to33bar , Colour88to66bar , Colour88to88 , Colour88to18 ,
  Colour88to81 , Colour33to13bar , Colour33to3bar1 , Colour33to83bar ,
  Colour33to3bar8 , Colour3bar3barto13 , Colour3bar3barto31 , Colour3bar3barto83 ,
  Colour3bar3barto38 , Colour38to3bar3bar , Colour3bar8to33
}
 Enum for the possible colour structures. More...
 
typedef vector< HPDiagram >::size_type HPCount
 Convenient typedef for size_type of HPDiagram vector.
 
- Public Types inherited from Herwig::HwMEBase
enum  POWHEGType { No , ISR , FSR , Both }
 Virtual members to be overridden by inheriting classes which implement hard corrections. More...
 
- Public Types inherited from ThePEG::MEBase
typedef vector< DiagPtr > DiagramVector
 
typedef DiagramVector::size_type DiagramIndex
 
typedef vector< ReweightPtrReweightVector
 
- 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< 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 Member Functions

 GeneralHardME ()
 The default constructor.
 
Virtual functions required by the MEBase class.
virtual unsigned int orderInAlphaS () const
 Return the order in \(\alpha_S\) in which this matrix element is given.
 
virtual unsigned int orderInAlphaEW () const
 Return the order in \(\alpha_{EW}\) in which this matrix element is given.
 
virtual double me2 () const =0
 The matrix element for the kinematical configuration previously provided by the last call to setKinematics(), suitably scaled by sHat() to give a dimension-less number.
 
virtual Energy2 scale () const
 Return the scale associated with the last set phase space point.
 
virtual void getDiagrams () const
 Add all possible diagrams with the add() function.
 
virtual Selector< DiagramIndexdiagrams (const DiagramVector &dv) const
 Get diagram selector.
 
virtual Selector< const ColourLines * > colourGeometries (tcDiagPtr diag) const
 Return a Selector with possible colour geometries for the selected diagram weighted by their relative probabilities.
 
void setProcessInfo (const vector< HPDiagram > &process, ColourStructure colour, bool debug, unsigned int scaleOption, double scaleFactor)
 Set the diagrams and matrix of colour factors.
 
- Public Member Functions inherited from Herwig::HwMEBase
 HwMEBase ()
 Default constructor.
 
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[.
 
virtual CrossSection dSigHatDR () const
 Return the matrix element for the kinematical configuation previously provided by the last call to setKinematics().
 
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.
 
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.
 
virtual RealEmissionProcessPtr generateHardest (RealEmissionProcessPtr, ShowerInteraction)
 Apply the POWHEG style correction.
 
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 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 setKinematics ()
 
virtual void constructVertex (tSubProPtr sub)
 
virtual void constructVertex (tSubProPtr sub, const ColourLines *cl)
 
virtual int nDim () const
 
virtual bool generateKinematics (const double *r)=0
 
virtual bool wantCMS () const
 
virtual bool headCuts () const
 
virtual bool ignoreCuts () const
 
virtual bool apply () const
 
virtual CrossSection dSigHatDR () const=0
 
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 DiagramVectordiagrams () const
 
virtual Selector< const ColourLines * > colourGeometries (tcDiagPtr diag) const=0
 
virtual const ColourLinesselectColourGeometry (tcDiagPtr diag) const
 
virtual Selector< DiagramIndexdiagrams (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 DVectormeInfo () 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
 
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 setKinematics ()
 
virtual void constructVertex (tSubProPtr sub)
 
virtual void constructVertex (tSubProPtr sub, const ColourLines *cl)
 
virtual int nDim () const
 
virtual bool generateKinematics (const double *r)=0
 
virtual bool wantCMS () const
 
virtual bool headCuts () const
 
virtual bool ignoreCuts () const
 
virtual bool apply () const
 
virtual CrossSection dSigHatDR () const=0
 
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 DiagramVectordiagrams () const
 
virtual Selector< const ColourLines * > colourGeometries (tcDiagPtr diag) const=0
 
virtual const ColourLinesselectColourGeometry (tcDiagPtr diag) const
 
virtual Selector< DiagramIndexdiagrams (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 DVectormeInfo () 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 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< StandardXComb >
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 EventHandlerlastEventHandler () const
 
const EventHandlerlastEventHandler () const
 
tPExtrPtr lastExtractor () const
 
tPExtrPtr lastExtractor () const
 
PDFT pdf (tcPPtr parton) const
 
PDFT pdf (tcPPtr parton) const
 
const CutslastCuts () const
 
const CutslastCuts () const
 
tCutsPtr lastCutsPtr () const
 
tCutsPtr lastCutsPtr () const
 
const PPairlastParticles () const
 
const PPairlastParticles () const
 
Energy2 lastS () const
 
Energy2 lastS () const
 
const PPairlastPartons () const
 
const PPairlastPartons () 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
 
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
 

Standard Interfaced functions.

pair< long, long > incoming_
 External particles.
 
pair< long, long > outgoing_
 Store the outgoing particles.
 
vector< HPDiagramdiagrams_
 Diagrams.
 
HPCount numberOfDiagrams_
 Store the number of diagrams for fast retrieval.
 
ColourStructure colourStructure_
 Colour information.
 
vector< DVectorcolour_
 Store colour factors for ME calc.
 
unsigned int numberOfFlows_
 The number of colourflows.
 
bool debug_
 Whether to test the value of me2 against the analytical function.
 
unsigned int scaleChoice_
 The scale chocie.
 
double scaleFactor_
 The scale factor.
 
unsigned int flow_
 Info on the selected diagram and colour flow.
 
unsigned int diagram_
 Diagram.
 
vector< ProductionMatrixElementflowME_
 Storage of the matrix elements.
 
vector< ProductionMatrixElementdiagramME_
 Matrix elements for the different Feynman diagrams.
 
virtual void doinitrun ()
 Initialize this object.
 
virtual void debug (double) const
 A debugging function to test the value of me2 against an analytic function.
 
const vector< HPDiagram > & getProcessInfo () const
 Access the HPDiagrams that store the required information to create the diagrams.
 
pair< long, long > getIncoming () const
 Return the incoming pair.
 
pair< long, long > getOutgoing () const
 Return the outgoing pair.
 
const vector< DVector > & getColourFactors () const
 Return the matrix of colour factors.
 
HPCount numberOfDiags () const
 Get the number of diagrams in this process.
 
size_t numberOfFlows () const
 Access number of colour flows.
 
bool debugME () const
 Whether to print the debug information.
 
unsigned int colourFlow () const
 Set/Get Info on the selected diagram and colour flow.
 
void colourFlow (unsigned int flow) const
 Colour flow.
 
unsigned int diagram () const
 Diagram.
 
void diagram (unsigned int diag) const
 Diagram.
 
double selectColourFlow (vector< double > &flow, vector< double > &me, double average) const
 Calculate weight and select colour flow.
 
vector< ProductionMatrixElement > & flowME () const
 Access to the colour flow matrix element.
 
vector< ProductionMatrixElement > & diagramME () const
 Access to the diagram matrix element.
 
ColourStructure colour () const
 Access to the colour structure.
 
ParticleVector hardParticles (tSubProPtr subp)
 Extract the paricles from the subprocess.
 
void setRescaledMomenta (const ParticleVector &external)
 Set the rescaled momenta.
 
void createVertex (ProductionMatrixElement &me, ParticleVector &external)
 Create the vertes.
 
void initializeMatrixElements (PDT::Spin in1, PDT::Spin in2, PDT::Spin out1, PDT::Spin out2)
 Initialize the storage of the helicity matrix elements.
 
GeneralHardMEoperator= (const GeneralHardME &)=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

- Static Public Member Functions inherited from Herwig::HwMEBase
static void Init ()
 The standard Init function used to initialize the interfaces.
 
- 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 ()
 
- 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::HwMEBase
Energy2 tHat () const
 Return the \(\hat{t}\) of the last set phase space point.
 
Energy2 uHat () const
 Return the \(\hat{u}\) of the last set phase space point.
 
double phi () const
 Return the azimuth angle of the last set phase space point.
 
void tHat (Energy2 e2)
 Set the \(\hat{t}\) of the last set phase space point.
 
void uHat (Energy2 e2)
 Set the \(\hat{u}\) of the last set phase space point.
 
void phi (double phi)
 Set the azimuth angle of the last set phase space point.
 
void massOption (vector< unsigned int > iopt)
 Set the treatment of the outgoing masses.
 
void rescalingOption (unsigned int iopt)
 Rescaled momenta for the helicity ME.
 
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.
 
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).
 
- Protected Member Functions inherited from ThePEG::MEBase
virtual void doinit ()
 
virtual void doinitrun ()
 
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
 
- 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< StandardXComb >
XCPtr theLastXComb
 

Detailed Description

This defines the GeneralHardME class that is designed to serve as a base class for matrix elements of specific spin structures when those structures are created by a a general model, i.e.

a SUSY production ME. It stores a vector of diagram structures that contain the required to calculate the matrix element.

See also
HwMEBase

Definition at line 40 of file GeneralHardME.h.

Member Typedef Documentation

◆ HPCount

typedef vector<HPDiagram>::size_type Herwig::GeneralHardME::HPCount

Convenient typedef for size_type of HPDiagram vector.

Definition at line 47 of file GeneralHardME.h.

Member Enumeration Documentation

◆ ColourStructure

Enum for the possible colour structures.

Definition at line 52 of file GeneralHardME.h.

Member Function Documentation

◆ colour()

ColourStructure Herwig::GeneralHardME::colour ( ) const
inlineprotected

Access to the colour structure.

Definition at line 321 of file GeneralHardME.h.

References colourStructure_.

◆ colourFlow() [1/2]

unsigned int Herwig::GeneralHardME::colourFlow ( ) const
inlineprotected

Set/Get Info on the selected diagram and colour flow.

Colour flow

Definition at line 280 of file GeneralHardME.h.

References flow_.

◆ colourFlow() [2/2]

void Herwig::GeneralHardME::colourFlow ( unsigned int  flow) const
inlineprotected

Colour flow.

Definition at line 285 of file GeneralHardME.h.

References flow_.

◆ colourGeometries()

virtual Selector< const ColourLines * > Herwig::GeneralHardME::colourGeometries ( tcDiagPtr  diag) const
virtual

Return a Selector with possible colour geometries for the selected diagram weighted by their relative probabilities.

Parameters
diagthe diagram chosen.
Returns
the possible colour geometries weighted by their relative probabilities.

Implements ThePEG::MEBase.

◆ createVertex()

void Herwig::GeneralHardME::createVertex ( ProductionMatrixElement me,
ParticleVector external 
)
inlineprotected

Create the vertes.

Definition at line 358 of file GeneralHardME.h.

◆ debug()

virtual void Herwig::GeneralHardME::debug ( double  ) const
inlineprotectedvirtual

A debugging function to test the value of me2 against an analytic function.

This is to be overidden in an inheriting class.

Reimplemented in Herwig::MEff2ff, Herwig::MEff2ss, Herwig::MEff2tv, Herwig::MEff2vv, Herwig::MEfv2fs, Herwig::MEfv2tf, Herwig::MEfv2vf, Herwig::MEvv2ff, Herwig::MEvv2ss, Herwig::MEvv2tv, and Herwig::MEvv2vv.

Definition at line 217 of file GeneralHardME.h.

◆ debugME()

bool Herwig::GeneralHardME::debugME ( ) const
inlineprotected

Whether to print the debug information.

Definition at line 269 of file GeneralHardME.h.

References debug_.

◆ diagram() [1/2]

unsigned int Herwig::GeneralHardME::diagram ( ) const
inlineprotected

Diagram.

Definition at line 290 of file GeneralHardME.h.

References diagram_.

◆ diagram() [2/2]

void Herwig::GeneralHardME::diagram ( unsigned int  diag) const
inlineprotected

Diagram.

Definition at line 295 of file GeneralHardME.h.

References diagram_.

◆ diagramME()

vector< ProductionMatrixElement > & Herwig::GeneralHardME::diagramME ( ) const
inlineprotected

Access to the diagram matrix element.

Definition at line 314 of file GeneralHardME.h.

References diagramME_.

Referenced by initializeMatrixElements().

◆ diagrams()

virtual Selector< DiagramIndex > Herwig::GeneralHardME::diagrams ( const DiagramVector dv) const
virtual

Get diagram selector.

With the information previously supplied with the setKinematics method, a derived class may optionally override this method to weight the given diagrams with their (although certainly not physical) relative probabilities.

Parameters
dvthe diagrams to be weighted.
Returns
a Selector relating the given diagrams to their weights.

Reimplemented from ThePEG::MEBase.

◆ doinitrun()

virtual void Herwig::GeneralHardME::doinitrun ( )
protectedvirtual

Initialize this object.

Called in the run phase just before a run begins.

Reimplemented from ThePEG::MEBase.

◆ flowME()

vector< ProductionMatrixElement > & Herwig::GeneralHardME::flowME ( ) const
inlineprotected

Access to the colour flow matrix element.

Definition at line 307 of file GeneralHardME.h.

References flowME_.

Referenced by initializeMatrixElements().

◆ getColourFactors()

const vector< DVector > & Herwig::GeneralHardME::getColourFactors ( ) const
inlineprotected

Return the matrix of colour factors.

Definition at line 248 of file GeneralHardME.h.

References colour_.

◆ getDiagrams()

virtual void Herwig::GeneralHardME::getDiagrams ( ) const
virtual

Add all possible diagrams with the add() function.

Implements ThePEG::MEBase.

◆ getIncoming()

pair< long, long > Herwig::GeneralHardME::getIncoming ( ) const
inlineprotected

Return the incoming pair.

Returns
Pair of particle ids for the incoming particles

Definition at line 233 of file GeneralHardME.h.

References incoming_.

Referenced by hardParticles().

◆ getOutgoing()

pair< long, long > Herwig::GeneralHardME::getOutgoing ( ) const
inlineprotected

Return the outgoing pair.

Returns
Pair of particle ids for the outgoing particles

Definition at line 241 of file GeneralHardME.h.

References outgoing_.

Referenced by hardParticles().

◆ getProcessInfo()

const vector< HPDiagram > & Herwig::GeneralHardME::getProcessInfo ( ) const
inlineprotected

Access the HPDiagrams that store the required information to create the diagrams.

Definition at line 225 of file GeneralHardME.h.

References diagrams_.

◆ hardParticles()

ParticleVector Herwig::GeneralHardME::hardParticles ( tSubProPtr  subp)
inlineprotected

Extract the paricles from the subprocess.

Definition at line 326 of file GeneralHardME.h.

References getIncoming(), and getOutgoing().

◆ Init()

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

◆ initializeMatrixElements()

void Herwig::GeneralHardME::initializeMatrixElements ( PDT::Spin  in1,
PDT::Spin  in2,
PDT::Spin  out1,
PDT::Spin  out2 
)
inlineprotected

Initialize the storage of the helicity matrix elements.

Definition at line 376 of file GeneralHardME.h.

References diagramME(), flowME(), numberOfDiags(), and numberOfFlows().

◆ me2()

virtual double Herwig::GeneralHardME::me2 ( ) const
pure virtual

The matrix element for the kinematical configuration previously provided by the last call to setKinematics(), suitably scaled by sHat() to give a dimension-less number.

Returns
the matrix element scaled with sHat() to give a dimensionless number.

Implements ThePEG::MEBase.

Implemented in Herwig::MEff2ff, Herwig::MEff2rf, Herwig::MEff2ss, Herwig::MEff2ts, Herwig::MEff2tv, Herwig::MEff2vs, Herwig::MEff2vv, Herwig::MEfv2fs, Herwig::MEfv2rs, Herwig::MEfv2rv, Herwig::MEfv2tf, Herwig::MEfv2vf, Herwig::MEvv2ff, Herwig::MEvv2rf, Herwig::MEvv2ss, Herwig::MEvv2tv, Herwig::MEvv2vs, and Herwig::MEvv2vv.

◆ numberOfDiags()

HPCount Herwig::GeneralHardME::numberOfDiags ( ) const
inlineprotected

Get the number of diagrams in this process.

Definition at line 255 of file GeneralHardME.h.

References numberOfDiagrams_.

Referenced by initializeMatrixElements().

◆ numberOfFlows()

size_t Herwig::GeneralHardME::numberOfFlows ( ) const
inlineprotected

Access number of colour flows.

Definition at line 262 of file GeneralHardME.h.

References numberOfFlows_.

Referenced by initializeMatrixElements().

◆ operator=()

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

The assignment operator is private and must never be called.

In fact, it should not even be implemented.

◆ orderInAlphaEW()

virtual unsigned int Herwig::GeneralHardME::orderInAlphaEW ( ) const
virtual

Return the order in \(\alpha_{EW}\) in which this matrix element is given.

Implements ThePEG::MEBase.

◆ orderInAlphaS()

virtual unsigned int Herwig::GeneralHardME::orderInAlphaS ( ) const
virtual

Return the order in \(\alpha_S\) in which this matrix element is given.

Implements ThePEG::MEBase.

◆ persistentInput()

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

Function used to write out object persistently.

Parameters
osthe persistent output stream written to.

◆ scale()

virtual Energy2 Herwig::GeneralHardME::scale ( ) const
inlinevirtual

Return the scale associated with the last set phase space point.

Implements ThePEG::MEBase.

Definition at line 109 of file GeneralHardME.h.

References ThePEG::MEBase::meMomenta(), scaleChoice_, scaleFactor_, ThePEG::MEBase::sHat(), Herwig::HwMEBase::tHat(), Herwig::HwMEBase::uHat(), and ThePEG::ZERO.

◆ setProcessInfo()

void Herwig::GeneralHardME::setProcessInfo ( const vector< HPDiagram > &  process,
ColourStructure  colour,
bool  debug,
unsigned int  scaleOption,
double  scaleFactor 
)

Set the diagrams and matrix of colour factors.

Parameters
processvector of MEDiagram with information that will allow the diagrams to be created in the specific matrix element
colourThe colour structure for the process
debugWhether to compare the numerical answer to an analytical formula (This is only stored for certain processes. It is intended for quick checks of the matrix elements).
scaleOptionThe option of what scale to use
scaleFactorThe prefactor for the scale

◆ setRescaledMomenta()

void Herwig::GeneralHardME::setRescaledMomenta ( const ParticleVector external)
inlineprotected

Set the rescaled momenta.

Definition at line 345 of file GeneralHardME.h.

References Herwig::HwMEBase::rescaleMomenta().

Member Data Documentation

◆ colour_

vector<DVector> Herwig::GeneralHardME::colour_
private

Store colour factors for ME calc.

Definition at line 436 of file GeneralHardME.h.

Referenced by getColourFactors().

◆ colourStructure_

ColourStructure Herwig::GeneralHardME::colourStructure_
private

Colour information.

The colour structure

Definition at line 431 of file GeneralHardME.h.

Referenced by colour().

◆ debug_

bool Herwig::GeneralHardME::debug_
private

Whether to test the value of me2 against the analytical function.

Definition at line 447 of file GeneralHardME.h.

Referenced by debugME().

◆ diagram_

unsigned int Herwig::GeneralHardME::diagram_
mutableprivate

Diagram.

Definition at line 471 of file GeneralHardME.h.

Referenced by diagram().

◆ diagramME_

vector<ProductionMatrixElement> Herwig::GeneralHardME::diagramME_
mutableprivate

Matrix elements for the different Feynman diagrams.

Definition at line 486 of file GeneralHardME.h.

Referenced by diagramME().

◆ diagrams_

vector<HPDiagram> Herwig::GeneralHardME::diagrams_
private

Diagrams.

Store all diagrams as a vector of structures

Definition at line 416 of file GeneralHardME.h.

Referenced by getProcessInfo().

◆ flow_

unsigned int Herwig::GeneralHardME::flow_
mutableprivate

Info on the selected diagram and colour flow.

Colour flow

Definition at line 466 of file GeneralHardME.h.

Referenced by colourFlow().

◆ flowME_

vector<ProductionMatrixElement> Herwig::GeneralHardME::flowME_
mutableprivate

Storage of the matrix elements.

Matrix elements for the different colour flows

Definition at line 481 of file GeneralHardME.h.

Referenced by flowME().

◆ incoming_

pair<long, long> Herwig::GeneralHardME::incoming_
private

External particles.

Store incoming particles

Definition at line 401 of file GeneralHardME.h.

Referenced by getIncoming().

◆ numberOfDiagrams_

HPCount Herwig::GeneralHardME::numberOfDiagrams_
private

Store the number of diagrams for fast retrieval.

Definition at line 421 of file GeneralHardME.h.

Referenced by numberOfDiags().

◆ numberOfFlows_

unsigned int Herwig::GeneralHardME::numberOfFlows_
private

The number of colourflows.

Definition at line 441 of file GeneralHardME.h.

Referenced by numberOfFlows().

◆ outgoing_

pair<long, long> Herwig::GeneralHardME::outgoing_
private

Store the outgoing particles.

Definition at line 406 of file GeneralHardME.h.

Referenced by getOutgoing().

◆ scaleChoice_

unsigned int Herwig::GeneralHardME::scaleChoice_
private

The scale chocie.

Definition at line 452 of file GeneralHardME.h.

Referenced by scale().

◆ scaleFactor_

double Herwig::GeneralHardME::scaleFactor_
private

The scale factor.

Definition at line 457 of file GeneralHardME.h.

Referenced by scale().


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