herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
MatrixElement
Matchbox
Utility
SimpleColourBasis.h
1
// -*- C++ -*-
2
//
3
// SimpleColourBasis.h is a part of Herwig - A multi-purpose Monte Carlo event generator
4
// Copyright (C) 2002-2019 The Herwig Collaboration
5
//
6
// Herwig 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 Herwig_SimpleColourBasis_H
10
#define Herwig_SimpleColourBasis_H
11
//
12
// This is the declaration of the SimpleColourBasis class.
13
//
14
15
#include "Herwig/MatrixElement/Matchbox/Utility/ColourBasis.h"
16
17
namespace
Herwig
{
18
19
using namespace
ThePEG
;
20
30
class
SimpleColourBasis
:
public
ColourBasis
{
31
32
public
:
33
38
virtual
size_t
prepareBasis
(
const
vector<PDT::Colour>&);
39
44
virtual
double
scalarProduct
(
size_t
a,
size_t
b,
45
const
vector<PDT::Colour>& abBasis)
const
;
46
52
virtual
double
tMatrixElement
(
size_t
i,
size_t
a,
size_t
b,
53
const
vector<PDT::Colour>& aBasis,
54
const
vector<PDT::Colour>& bBasis,
55
size_t
k,
size_t
l,
56
const
map<size_t,size_t>& dict
57
)
const
;
58
59
virtual
double
sMatrixElement(
size_t
,
size_t
,
size_t
,
60
const
vector<PDT::Colour>&,
61
const
vector<PDT::Colour>&,
62
size_t
,
size_t
,
63
const
map<size_t,size_t>&
64
)
const
{
65
assert( 0 == 1 );
66
return
0;
67
}
68
72
virtual
bool
canSplitGluons
()
const
{
73
return
false
;
74
}
75
80
virtual
bool
colourConnected
(
const
cPDVector
&,
81
const
vector<PDT::Colour>&,
82
const
pair<int,bool>&,
83
const
pair<int,bool>&,
84
size_t
)
const
;
85
90
virtual
bool
haveColourFlows
()
const
{
return
true
; }
91
95
void
makeIds
()
const
;
96
97
public
:
98
105
void
persistentOutput
(
PersistentOStream
& os)
const
;
106
112
void
persistentInput
(
PersistentIStream
& is,
int
version);
114
121
static
void
Init
();
122
123
protected
:
124
131
virtual
IBPtr
clone
()
const
;
132
137
virtual
IBPtr
fullclone
()
const
;
139
140
141
// If needed, insert declarations of virtual function defined in the
142
// InterfacedBase class here (using ThePEG-interfaced-decl in Emacs).
143
144
145
private
:
146
150
mutable
vector<PDT::Colour>
id88
;
151
155
mutable
vector<PDT::Colour>
id33bar
;
156
160
mutable
vector<PDT::Colour>
id888
;
161
165
mutable
vector<PDT::Colour>
id33bar8
;
166
170
mutable
vector<PDT::Colour>
id8888
;
171
175
mutable
vector<PDT::Colour>
id33bar88
;
176
180
mutable
vector<PDT::Colour>
id33bar33bar
;
181
182
private
:
183
188
SimpleColourBasis
&
operator=
(
const
SimpleColourBasis
&) =
delete
;
189
190
};
191
192
}
193
194
#endif
/* Herwig_SimpleColourBasis_H */
Herwig::ColourBasis
ColourBasis is an interface to a colour basis implementation.
Definition:
ColourBasis.h:46
Herwig::SimpleColourBasis
SimpleColourBasis implements the colour algebra needed for electroweak boson and electroweak boson + ...
Definition:
SimpleColourBasis.h:30
Herwig::SimpleColourBasis::id33bar8
vector< PDT::Colour > id33bar8
id for 33bar8
Definition:
SimpleColourBasis.h:165
Herwig::SimpleColourBasis::haveColourFlows
virtual bool haveColourFlows() const
Return true, if the colour basis is capable of assigning colour flows.
Definition:
SimpleColourBasis.h:90
Herwig::SimpleColourBasis::clone
virtual IBPtr clone() const
Make a simple clone of this object.
Herwig::SimpleColourBasis::operator=
SimpleColourBasis & operator=(const SimpleColourBasis &)=delete
The assignment operator is private and must never be called.
Herwig::SimpleColourBasis::prepareBasis
virtual size_t prepareBasis(const vector< PDT::Colour > &)
Prepare the basis for the normal ordered legs and return the dimensionality of the basis.
Herwig::SimpleColourBasis::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.
Herwig::SimpleColourBasis::id33bar
vector< PDT::Colour > id33bar
id for 33bar
Definition:
SimpleColourBasis.h:155
Herwig::SimpleColourBasis::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...
Herwig::SimpleColourBasis::canSplitGluons
virtual bool canSplitGluons() const
Return true, if this colour basis supports gluon splittings.
Definition:
SimpleColourBasis.h:72
Herwig::SimpleColourBasis::id33bar33bar
vector< PDT::Colour > id33bar33bar
id for 33bar33bar
Definition:
SimpleColourBasis.h:180
Herwig::SimpleColourBasis::id8888
vector< PDT::Colour > id8888
id for 8888
Definition:
SimpleColourBasis.h:170
Herwig::SimpleColourBasis::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
Herwig::SimpleColourBasis::makeIds
void makeIds() const
Create ids for bases.
Herwig::SimpleColourBasis::Init
static void Init()
The standard Init function used to initialize the interfaces.
Herwig::SimpleColourBasis::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
Herwig::SimpleColourBasis::id88
vector< PDT::Colour > id88
id for 88
Definition:
SimpleColourBasis.h:150
Herwig::SimpleColourBasis::id33bar88
vector< PDT::Colour > id33bar88
id for 33bar88
Definition:
SimpleColourBasis.h:175
Herwig::SimpleColourBasis::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
Herwig::SimpleColourBasis::id888
vector< PDT::Colour > id888
id for 888
Definition:
SimpleColourBasis.h:160
Herwig::SimpleColourBasis::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,...
ThePEG::PersistentIStream
ThePEG::PersistentOStream
Herwig
-*- C++ -*-
Definition:
BasicConsistency.h:17
ThePEG
ThePEG::IBPtr
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
ThePEG::cPDVector
vector< cPDPtr > cPDVector
Generated on Thu Jun 20 2024 17:50:53 for Herwig by
1.9.6