thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.2.1
ThePEG::DiagramBase Class Referenceabstract

DiagramBase is the base class of all classes which describes Feynman diagrams which can be generated by a matrix element class inheriting from MEBase, as reported by the MEBase::includedDiagrams() method. More...

#include <DiagramBase.h>

Inheritance diagram for ThePEG::DiagramBase:

Public Member Functions

Standard constructors and destructors.
 DiagramBase ()
 Default constructor.
 
virtual ~DiagramBase ()
 Destructor.
 
Main virtual function to be overridden in sub-classes.
virtual tPVector construct (SubProPtr sb, const StandardXComb &, const ColourLines &) const =0
 Construct a sub process corresponding to this diagram. More...
 
Access the underlying information.
int nIncoming () const
 Return the number of incoming partons for this diagram. More...
 
const cPDVectorpartons () const
 Return the incoming, followed by the outgoing partons for this diagram.
 
int id () const
 Return the id number of this diagram.
 
string getTag () const
 Generate a tag which is unique for diagrams with the same type of incoming and outgoing partons.
 
virtual bool isSame (tcDiagPtr other) const
 Compare this diagram to another one modulo the ids of the diagrams.
 
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::Base
virtual ~Base ()
 The virtual destructor.
 
void debug () const
 Print out debugging information for this object on std::cerr. More...
 
virtual void debugme () const
 Print out debugging information for this object on std::cerr. More...
 
- Public Member Functions inherited from ThePEG::Pointer::ReferenceCounted
CounterType referenceCount () const
 Return the reference count.
 

Static Public Member Functions

static void Init ()
 Standard Init function.
 
- Static Public Member Functions inherited from ThePEG::Base
static void Init ()
 The standard Init function used to initialize the interfaces. More...
 

Protected Member Functions

void partons (int ninc, const cPDVector &parts, int newId)
 To be used by sub classes to report the incoming and outgoing particle types, and an id number. More...
 
void diagramInfo (int ninc, int newId)
 Complete the missing information, provided partons() has already been filled.
 
bool done () const
 Returns true if the partons(int, const cPDVector &, int) function has been called properly from the sub class.
 
void addParton (tcPDPtr pd)
 Add to the partons.
 
- Protected Member Functions inherited from ThePEG::Pointer::ReferenceCounted
 ReferenceCounted ()
 Default constructor.
 
 ReferenceCounted (const ReferenceCounted &)
 Copy-constructor.
 
ReferenceCountedoperator= (const ReferenceCounted &)
 Assignment.
 

Private Member Functions

DiagramBaseoperator= (const DiagramBase &)=delete
 Private and non-existent assignment operator.
 

Private Attributes

int theNIncoming
 The number of incoming partons for this diagram.
 
cPDVector thePartons
 The incoming, followed by the outgoing partons for this diagram.
 
int theId
 The id number of this diagram.
 

Static Private Attributes

static AbstractClassDescription< DiagramBaseinitDiagramBase
 Describe an abstract base class with persistent data.
 

Additional Inherited Members

- Public Types inherited from ThePEG::Pointer::ReferenceCounted
typedef unsigned int CounterType
 The integer type used for counting.
 
- Public Attributes inherited from ThePEG::Pointer::ReferenceCounted
const unsigned long uniqueId
 The unique ID. More...
 

Detailed Description

DiagramBase is the base class of all classes which describes Feynman diagrams which can be generated by a matrix element class inheriting from MEBase, as reported by the MEBase::includedDiagrams() method.

To work properly, a sub-class must in its constructor report the incoming and outgoing parton types with the partons(int, const cPDVector &, int) method. Also an id number should be given to be used internally by the matrix element class. In addition, the construct() method must be implemented to construct the actual partons and connect them together in a SubProcess object, also performing the colour connections using a given ColourLines object.

See also
MEBase
SubProcess
ColourLines

Definition at line 41 of file DiagramBase.h.

Member Function Documentation

◆ construct()

virtual tPVector ThePEG::DiagramBase::construct ( SubProPtr  sb,
const StandardXComb ,
const ColourLines  
) const
pure virtual

Construct a sub process corresponding to this diagram.

The incoming partons, and the momenta of the outgoing ones, are given by the XComb object. All parent/children pointers should be set correspondingly and the partons should be colour connected as specified by the ColourLines object.

Implemented in ThePEG::Tree2toNDiagram, and ThePEG::BlobDiagram.

Referenced by DiagramBase().

◆ nIncoming()

int ThePEG::DiagramBase::nIncoming ( ) const
inline

Return the number of incoming partons for this diagram.

I.e. the incoming partons plus the number of space-like lines.

Definition at line 79 of file DiagramBase.h.

References theNIncoming.

Referenced by done(), and isSame().

◆ partons()

void ThePEG::DiagramBase::partons ( int  ninc,
const cPDVector parts,
int  newId 
)
inlineprotected

To be used by sub classes to report the incoming and outgoing particle types, and an id number.

Parameters
nincthe number of incoming and other space-like lines in the diagram.
partsthe types of partons for each external line in the diagram.
newIdthe id number of this diagram.

Definition at line 123 of file DiagramBase.h.

References theId, theNIncoming, and thePartons.

◆ persistentInput()

void ThePEG::DiagramBase::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.

Referenced by addParton().

◆ persistentOutput()

void ThePEG::DiagramBase::persistentOutput ( PersistentOStream os) const

Function used to write out object persistently.

Parameters
osthe persistent output stream written to.

Referenced by addParton().


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