thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ColourLines.h
1// -*- C++ -*-
2//
3// ColourLines.h is a part of ThePEG - Toolkit for HEP Event Generation
4// Copyright (C) 1999-2019 Leif Lonnblad
5//
6// ThePEG is licenced under version 3 of the GPL, see COPYING for details.
7// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8//
9#ifndef ThePEG_ColourLines_H
10#define ThePEG_ColourLines_H
11// This is the declaration of the ColourLines class.
12
14
15namespace ThePEG {
16
23class ColourLines: public Base {
24
25public:
26
28 typedef vector<pair<int,int> > Line;
30 typedef vector<Line> LineVector;
32 typedef vector<ColinePtr> Vertex;
34 typedef vector<Vertex> VertexVector;
35
36public:
37
44
55 ColourLines(string s);
57
67 void reset(string s);
68
69public:
70
76 void connect(const tPVector & partons) const;
77
78private:
79
84
85};
86
87}
88
89#endif /* ThePEG_ColourLines_H */
This is the main config header file for ThePEG.
The ColourLines class defines the colour flow in a SubProcess.
Definition: ColourLines.h:23
void connect(const tPVector &partons) const
Create the corresponding ColourLines and connect the given partons.
void reset(string s)
Reset this ColourLines object.
vector< ColinePtr > Vertex
A vector of ColourLine.
Definition: ColourLines.h:32
vector< Line > LineVector
A vector of colour lines.
Definition: ColourLines.h:30
LineVector theLines
The vector of colour lines.
Definition: ColourLines.h:83
ColourLines()
Default constructor.
Definition: ColourLines.h:43
ColourLines(string s)
The standard constructor.
vector< Vertex > VertexVector
A vector of vertices.
Definition: ColourLines.h:34
vector< pair< int, int > > Line
A single colour line.
Definition: ColourLines.h:28
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
vector< tPPtr > tPVector
A vector of transient pointers to Particle objects.
Definition: Containers.h:82
Define the base class from which all (polymorphic) classes in ThePEG are derived.
Definition: ThePEG.h:54