herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
MatrixElement
Matchbox
CVolver
ColourFlowBasis.h
1
// -*- C++ -*-
2
//
3
// ColourFlowBasis.h is a part of CVolver
4
// Copyright (C) 2013-2019 Simon Platzer, The Herwig Collaboration
5
//
6
// CVolver 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 CVOLVER_ColourFlowBasis_H
10
#define CVOLVER_ColourFlowBasis_H
11
//
12
// This is the declaration of the ColourFlowBasis class.
13
//
14
15
#include "Herwig/MatrixElement/Matchbox/Utility/ColourBasis.h"
16
#include "ColourFlows.h"
17
18
namespace
CVolver {
19
20
using namespace
ThePEG
;
21
using namespace
Herwig
;
22
26
template
<>
27
struct
ParticleDataTraits
<
ThePEG
::
PDT::Colour
> {
28
32
static
bool
isSinglet
(
const
ThePEG::PDT::Colour
& pd) {
33
return
pd ==
PDT::Colour0
;
34
}
35
39
static
bool
isAntiFundamental
(
const
ThePEG::PDT::Colour
& pd) {
40
return
pd ==
PDT::Colour3bar
;
41
}
42
46
static
bool
isFundamental
(
const
ThePEG::PDT::Colour
& pd) {
47
return
pd ==
PDT::Colour3
;
48
}
49
53
static
bool
isAdjoint
(
const
ThePEG::PDT::Colour
& pd) {
54
return
pd ==
PDT::Colour8
;
55
}
56
57
};
58
65
class
ColourFlowBasis
:
public
Herwig::ColourBasis
{
66
67
public
:
68
74
ColourFlowBasis
();
75
79
virtual
~ColourFlowBasis
();
81
82
public
:
83
87
virtual
void
clear
();
88
94
virtual
map<size_t,vector<vector<size_t> > >
basisList
(
const
vector<PDT::Colour>&)
const
;
95
100
virtual
size_t
prepareBasis
(
const
vector<PDT::Colour>&);
101
105
virtual
void
readBasisDetails
(
const
vector<PDT::Colour>&);
106
111
virtual
double
scalarProduct
(
size_t
a,
size_t
b,
112
const
vector<PDT::Colour>& abBasis)
const
;
113
119
virtual
double
tMatrixElement
(
size_t
i,
size_t
a,
size_t
b,
120
const
vector<PDT::Colour>& aBasis,
121
const
vector<PDT::Colour>& bBasis,
122
size_t
k,
size_t
l,
123
const
map<size_t,size_t>& dict)
const
;
124
128
virtual
bool
canSplitGluons
()
const
{
129
return
false
;
130
}
131
137
virtual
double
sMatrixElement
(
size_t
i,
size_t
a,
size_t
b,
138
const
vector<PDT::Colour>& aBasis,
139
const
vector<PDT::Colour>& bBasis,
140
size_t
k,
size_t
l,
141
const
map<size_t,size_t>& dict)
const
;
142
147
virtual
bool
haveColourFlows
()
const
{
return
true
; }
148
153
virtual
bool
colourConnected
(
const
cPDVector
&,
154
const
vector<PDT::Colour>&,
155
const
pair<int,bool>&,
156
const
pair<int,bool>&,
157
size_t
)
const
;
158
159
public
:
160
167
void
persistentOutput
(
PersistentOStream
& os)
const
;
168
174
void
persistentInput
(
PersistentIStream
& is,
int
version);
176
183
static
void
Init
();
184
185
protected
:
186
193
virtual
IBPtr
clone
()
const
;
194
199
virtual
IBPtr
fullclone
()
const
;
201
202
203
// If needed, insert declarations of virtual function defined in the
204
// InterfacedBase class here (using ThePEG-interfaced-decl in Emacs).
205
206
private
:
207
211
map<vector<PDT::Colour>,
ColourFlowCrossing
>
theCrossings
;
212
217
map<size_t,vector<ColourFlow> >
theFlows
;
218
219
private
:
220
225
ColourFlowBasis
&
operator=
(
const
ColourFlowBasis
&) =
delete
;
226
227
};
228
229
}
230
231
#endif
/* CVOLVER_ColourFlowBasis_H */
CVolver::ColourFlowBasis
ColourFlowBasis implements the colour flow basis.
Definition:
ColourFlowBasis.h:65
CVolver::ColourFlowBasis::operator=
ColourFlowBasis & operator=(const ColourFlowBasis &)=delete
The assignment operator is private and must never be called.
CVolver::ColourFlowBasis::Init
static void Init()
The standard Init function used to initialize the interfaces.
CVolver::ColourFlowBasis::haveColourFlows
virtual bool haveColourFlows() const
Return true, if the colour basis is capable of assigning colour flows.
Definition:
ColourFlowBasis.h:147
CVolver::ColourFlowBasis::tMatrixElement
virtual double tMatrixElement(size_t i, size_t a, size_t b, const vector< PDT::Colour > &aBasis, const vector< PDT::Colour > &bBasis, size_t k, size_t l, const map< size_t, size_t > &dict) const
Return the matrix element of a colour charge <c_{n+1,a}|T_i|c_{n,b}> between basis tensors a and b,...
CVolver::ColourFlowBasis::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
CVolver::ColourFlowBasis::colourConnected
virtual bool colourConnected(const cPDVector &, const vector< PDT::Colour > &, const pair< int, bool > &, const pair< int, bool > &, size_t) const
Return true, if a large-N colour connection exists for the given external legs and basis tensor.
CVolver::ColourFlowBasis::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
CVolver::ColourFlowBasis::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
CVolver::ColourFlowBasis::scalarProduct
virtual double scalarProduct(size_t a, size_t b, const vector< PDT::Colour > &abBasis) const
Return the scalar product of basis tensors labelled a and b in the basis used for the given normal or...
CVolver::ColourFlowBasis::sMatrixElement
virtual double sMatrixElement(size_t i, size_t a, size_t b, const vector< PDT::Colour > &aBasis, const vector< PDT::Colour > &bBasis, size_t k, size_t l, const map< size_t, size_t > &dict) const
Return the matrix element of a quark splitting matrix <c_{n+1,a}|T_i|c_{n,b}> between basis tensors a...
CVolver::ColourFlowBasis::clone
virtual IBPtr clone() const
Make a simple clone of this object.
CVolver::ColourFlowBasis::~ColourFlowBasis
virtual ~ColourFlowBasis()
The destructor.
CVolver::ColourFlowBasis::basisList
virtual map< size_t, vector< vector< size_t > > > basisList(const vector< PDT::Colour > &) const
Return a map of basis tensor indices to vectors identifying a certain ordering corresponding to the g...
CVolver::ColourFlowBasis::ColourFlowBasis
ColourFlowBasis()
The default constructor.
CVolver::ColourFlowBasis::prepareBasis
virtual size_t prepareBasis(const vector< PDT::Colour > &)
Prepare the basis for the normal ordered legs and return the dimensionality of the basis.
CVolver::ColourFlowBasis::theFlows
map< size_t, vector< ColourFlow > > theFlows
Colour flows indexed by basis size; note this is a unique assignment.
Definition:
ColourFlowBasis.h:217
CVolver::ColourFlowBasis::canSplitGluons
virtual bool canSplitGluons() const
Return true, if this colour basis supports gluon splittings.
Definition:
ColourFlowBasis.h:128
CVolver::ColourFlowBasis::clear
virtual void clear()
Clear this colour basis.
CVolver::ColourFlowBasis::readBasisDetails
virtual void readBasisDetails(const vector< PDT::Colour > &)
Gather any implementation dependend details when reading a basis.
CVolver::ColourFlowBasis::theCrossings
map< vector< PDT::Colour >, ColourFlowCrossing > theCrossings
Map colour signatures to colour crossings.
Definition:
ColourFlowBasis.h:211
CVolver::ColourFlowCrossing
The crossing of a physical process to a colour flow basis.
Definition:
ColourFlows.h:245
Herwig::ColourBasis
ColourBasis is an interface to a colour basis implementation.
Definition:
ColourBasis.h:46
ThePEG::PDT::Colour
Colour
ThePEG::PDT::Colour3
Colour3
ThePEG::PDT::Colour8
Colour8
ThePEG::PDT::Colour0
Colour0
ThePEG::PDT::Colour3bar
Colour3bar
ThePEG::PersistentIStream
ThePEG::PersistentOStream
Herwig
-*- C++ -*-
Definition:
BasicConsistency.h:17
ThePEG
ThePEG::IBPtr
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
ThePEG::cPDVector
vector< cPDPtr > cPDVector
CVolver::ParticleDataTraits< ThePEG::PDT::Colour >::isFundamental
static bool isFundamental(const ThePEG::PDT::Colour &pd)
Return true, if fundamental.
Definition:
ColourFlowBasis.h:46
CVolver::ParticleDataTraits< ThePEG::PDT::Colour >::isAdjoint
static bool isAdjoint(const ThePEG::PDT::Colour &pd)
Return true, if adjoint.
Definition:
ColourFlowBasis.h:53
CVolver::ParticleDataTraits< ThePEG::PDT::Colour >::isSinglet
static bool isSinglet(const ThePEG::PDT::Colour &pd)
Return true, if singlet.
Definition:
ColourFlowBasis.h:32
CVolver::ParticleDataTraits< ThePEG::PDT::Colour >::isAntiFundamental
static bool isAntiFundamental(const ThePEG::PDT::Colour &pd)
Return true, if anti-fundamental.
Definition:
ColourFlowBasis.h:39
CVolver::ParticleDataTraits
ParticleData traits.
Definition:
ColourFlows.h:218
Generated on Thu Jun 20 2024 17:50:52 for Herwig by
1.9.6