#include <ColourLines.h>
Public Types | |
typedef vector< int > | Line |
A single colour line. | |
typedef vector< Line > | LineVector |
A vector of colour lines. | |
typedef vector< ColinePtr > | Vertex |
A vector of ColourLine . | |
typedef vector< Vertex > | VertexVector |
A vector of vertices. | |
Public Member Functions | |
void | connect (const tPVector &partons) const |
Create the corresponding ColourLine s and connect the given partons. | |
Standard constructors and destructors. | |
ColourLines () | |
Default constructor. | |
ColourLines (string s) | |
The standard constructor. | |
Private Attributes | |
LineVector | theLines |
The vector of colour lines. |
It defines a number of colour lines and specifies which particles are connected to them.
Definition at line 23 of file ColourLines.h.
typedef vector<Line> ThePEG::ColourLines::LineVector |
typedef vector<ColinePtr> ThePEG::ColourLines::Vertex |
typedef vector<Vertex> ThePEG::ColourLines::VertexVector |
ThePEG::ColourLines::ColourLines | ( | string | s | ) |
The standard constructor.
The string s should contain a comma-separated sequence of integers. Each sequence of numbers indicates a colour line and the integer represents a parton connected to it. If the integer is negative, it means that the line is the corresponding partons anti-colour. Note that the partons are numbered from 1: The first incoming is 1, the second is 2 and the internal and outgoing are numbered 3 and upwards.
void ThePEG::ColourLines::connect | ( | const tPVector & | partons | ) | const |
Create the corresponding ColourLine
s and connect the given partons.
The partons are assumed to be in the same order as the numbers specified in the constructor.