thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.2.1
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 
13 #include "ThePEG/Config/ThePEG.h"
14 
15 namespace ThePEG {
16 
23 class ColourLines: public Base {
24 
25 public:
26 
28  typedef vector<pair<int,int> > Line;
30  typedef vector<Line> LineVector;
32  typedef vector<ColinePtr> Vertex;
34  typedef vector<Vertex> VertexVector;
35 
36 public:
37 
44 
55  ColourLines(string s);
57 
67  void reset(string s);
68 
69 public:
70 
76  void connect(const tPVector & partons) const;
77 
78 private:
79 
83  LineVector theLines;
84 
85 };
86 
87 }
88 
89 #endif /* ThePEG_ColourLines_H */
vector< pair< int, int > > Line
A single colour line.
Definition: ColourLines.h:28
Define the base class from which all (polymorphic) classes in ThePEG are derived. ...
Definition: ThePEG.h:54
vector< ColinePtr > Vertex
A vector of ColourLine.
Definition: ColourLines.h:32
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
This is the main config header file for ThePEG.
void connect(const tPVector &partons) const
Create the corresponding ColourLines and connect the given partons.
void reset(string s)
Reset this ColourLines object.
ColourLines()
Default constructor.
Definition: ColourLines.h:43
vector< Line > LineVector
A vector of colour lines.
Definition: ColourLines.h:30
vector< Vertex > VertexVector
A vector of vertices.
Definition: ColourLines.h:34
The ColourLines class defines the colour flow in a SubProcess.
Definition: ColourLines.h:23
vector< tPPtr > tPVector
A vector of transient pointers to Particle objects.
Definition: Containers.h:82
LineVector theLines
The vector of colour lines.
Definition: ColourLines.h:83