herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::Tree2toNGenerator::Vertex Struct Reference

A node in internally used trees. More...

#include <Tree2toNGenerator.h>

Public Member Functions

 Vertex ()
 The default constructor.
 
void print (ostream &os, const string &prefix="") const
 Debug printout.
 
int nspace () const
 Count the number of spacelike lines.
 
void update (Tree2toNDiagram &diag, map< int, pair< int, PDPtr > > &outgoing, int &lastUsed)
 Update diagram returning a map of external ids to diagram id parents.
 
Tree2toNDiagram generate (int id)
 Generate a diagram of given id.
 

Public Attributes

vector< Vertexchildren
 The outgoing particles.
 
PDPtr parent
 The incoming line at this node.
 
bool spacelike
 True, if this is spacelike node.
 
int externalId
 The external leg id.
 
int parentId
 The parent diagram id.
 

Detailed Description

A node in internally used trees.

Definition at line 106 of file Tree2toNGenerator.h.

Constructor & Destructor Documentation

◆ Vertex()

Herwig::Tree2toNGenerator::Vertex::Vertex ( )
inline

The default constructor.

Definition at line 138 of file Tree2toNGenerator.h.

Member Function Documentation

◆ generate()

Tree2toNDiagram Herwig::Tree2toNGenerator::Vertex::generate ( int  id)
inline

Generate a diagram of given id.

Definition at line 220 of file Tree2toNGenerator.h.

References nspace(), and ThePEG::InterfacedBase::update().

◆ nspace()

int Herwig::Tree2toNGenerator::Vertex::nspace ( ) const
inline

Count the number of spacelike lines.

Definition at line 162 of file Tree2toNGenerator.h.

References children.

Referenced by generate().

◆ print()

void Herwig::Tree2toNGenerator::Vertex::print ( ostream &  os,
const string &  prefix = "" 
) const
inline

Debug printout.

Definition at line 144 of file Tree2toNGenerator.h.

References children, externalId, parent, and spacelike.

◆ update()

void Herwig::Tree2toNGenerator::Vertex::update ( Tree2toNDiagram diag,
map< int, pair< int, PDPtr > > &  outgoing,
int &  lastUsed 
)
inline

Update diagram returning a map of external ids to diagram id parents.

Definition at line 174 of file Tree2toNGenerator.h.

References children, externalId, ThePEG::Helicity::outgoing, parent, parentId, and spacelike.

Member Data Documentation

◆ children

vector<Vertex> Herwig::Tree2toNGenerator::Vertex::children

The outgoing particles.

If this is a spacelike node, the first child is considered the next spacelike (or second incoming) line. If children are empty, this is an external line.

Definition at line 113 of file Tree2toNGenerator.h.

Referenced by nspace(), print(), and update().

◆ externalId

int Herwig::Tree2toNGenerator::Vertex::externalId

The external leg id.

Definition at line 128 of file Tree2toNGenerator.h.

Referenced by print(), and update().

◆ parent

PDPtr Herwig::Tree2toNGenerator::Vertex::parent

The incoming line at this node.

Definition at line 118 of file Tree2toNGenerator.h.

Referenced by print(), and update().

◆ parentId

int Herwig::Tree2toNGenerator::Vertex::parentId

The parent diagram id.

Definition at line 133 of file Tree2toNGenerator.h.

Referenced by update().

◆ spacelike

bool Herwig::Tree2toNGenerator::Vertex::spacelike

True, if this is spacelike node.

Definition at line 123 of file Tree2toNGenerator.h.

Referenced by print(), and update().


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