ThePEG  1.8.0
Public Types | Public Member Functions | Private Attributes
ThePEG::ColourLines Class Reference

The ColourLines class defines the colour flow in a SubProcess. More...

#include <ColourLines.h>

Inheritance diagram for ThePEG::ColourLines:
Inheritance graph
[legend]

List of all members.

Public Types

typedef vector< pair< int, 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 reset (string s)
 Reset this ColourLines object.
void connect (const tPVector &partons) const
 Create the corresponding ColourLines and connect the given partons.
Standard constructors and destructors.
 ColourLines ()
 Default constructor.
 ColourLines (string s)
 The standard constructor.
- 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.
virtual void debugme () const
 Print out debugging information for this object on std::cerr.
- Public Member Functions inherited from ThePEG::Pointer::ReferenceCounted
CounterType referenceCount () const
 Return the reference count.

Private Attributes

LineVector theLines
 The vector of colour lines.

Additional Inherited Members

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

Detailed Description

The ColourLines class defines the colour flow in a SubProcess.

It defines a number of colour lines and specifies which particles are connected to them.

Definition at line 23 of file ColourLines.h.


Member Typedef Documentation

A vector of colour lines.

Definition at line 30 of file ColourLines.h.

A vector of ColourLine.

Definition at line 32 of file ColourLines.h.

A vector of vertices.

Definition at line 34 of file ColourLines.h.


Constructor & Destructor Documentation

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 spacelike particle is 1, the second is 2 and the internal time-like and outgoing are numbered after all the spacelike particles.


Member Function Documentation

void ThePEG::ColourLines::connect ( const tPVector &  partons) const

Create the corresponding ColourLines and connect the given partons.

The partons are assumed to be in the same order as the numbers specified in the constructor.

void ThePEG::ColourLines::reset ( string  s)

Reset this ColourLines object.

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.


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