herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
MEff2ff.h
1// -*- C++ -*-
2//
3// MEff2ff.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_MEff2ff_H
10#define HERWIG_MEff2ff_H
11//
12// This is the declaration of the MEff2ff class.
13//
14
15#include "GeneralHardME.h"
16#include "ThePEG/Helicity/WaveFunction/SpinorWaveFunction.h"
17#include "ThePEG/Helicity/WaveFunction/SpinorBarWaveFunction.h"
18#include "Herwig/MatrixElement/ProductionMatrixElement.h"
19#include "ThePEG/Helicity/Vertex/AbstractFFSVertex.h"
20#include "ThePEG/Helicity/Vertex/AbstractFFVVertex.h"
21#include "ThePEG/Helicity/Vertex/AbstractFFTVertex.h"
22#include "ThePEG/Helicity/Vertex/AbstractFFFFVertex.h"
23
24namespace Herwig {
25using namespace ThePEG;
28
36class MEff2ff: public GeneralHardME {
37
38public:
39
41 typedef vector<SpinorWaveFunction> SpinorVector;
42
44 typedef vector<SpinorBarWaveFunction> SpinorBarVector;
45
46public:
47
57 virtual double me2() const;
59
60private:
61
73 ffb2ffbHeME(double & me2, bool first) const;
74
82 ProductionMatrixElement ff2ffHeME(double & me2, bool first) const;
83
93 ProductionMatrixElement fbfb2fbfbHeME(double & me2, bool first) const;
94
104 ffb2mfmfHeME(double & me2, bool first) const;
106
111 virtual void constructVertex(tSubProPtr sub);
112
113protected:
114
120 virtual void debug(double me2) const;
121
122public:
123
131
137 void persistentInput(PersistentIStream & is, int version);
139
146 static void Init();
147
148protected:
149
157 virtual void doinit();
159
160protected:
161
168 virtual IBPtr clone() const {return new_ptr(*this);}
169
174 virtual IBPtr fullclone() const {return new_ptr(*this);}
176
177private:
178
183 MEff2ff & operator=(const MEff2ff &) = delete;
184
185private:
186
190 vector<pair<AbstractFFSVertexPtr, AbstractFFSVertexPtr> > scalar_;
191
195 vector<pair<AbstractFFVVertexPtr, AbstractFFVVertexPtr> > vector_;
196
200 vector<pair<AbstractFFTVertexPtr, AbstractFFTVertexPtr> > tensor_;
201
205 vector<AbstractFFFFVertexPtr> four_;
206
210 mutable std::array<SpinorVector,4> spin_;
211
215 mutable std::array<SpinorBarVector,4> sbar_;
216};
217
218}
219
220#endif /* HERWIG_MEff2ff_H */
This defines the GeneralHardME class that is designed to serve as a base class for matrix elements of...
Definition: GeneralHardME.h:40
This is the implementation of the matrix element for a process.
Definition: MEff2ff.h:36
vector< pair< AbstractFFTVertexPtr, AbstractFFTVertexPtr > > tensor_
Store the vector of FFTVertex pairs.
Definition: MEff2ff.h:200
virtual double me2() const
The matrix element for the kinematical configuration previously provided by the last call to setKinem...
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
Definition: MEff2ff.h:174
ProductionMatrixElement ffb2ffbHeME(double &me2, bool first) const
Compute the matrix element for .
ProductionMatrixElement ffb2mfmfHeME(double &me2, bool first) const
Compute the matrix element for .
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
vector< pair< AbstractFFVVertexPtr, AbstractFFVVertexPtr > > vector_
Store the vector of FFVVertex pairs.
Definition: MEff2ff.h:195
static void Init()
The standard Init function used to initialize the interfaces.
virtual IBPtr clone() const
Make a simple clone of this object.
Definition: MEff2ff.h:168
ProductionMatrixElement ff2ffHeME(double &me2, bool first) const
Compute the matrix element for .
std::array< SpinorVector, 4 > spin_
Spinors.
Definition: MEff2ff.h:210
vector< SpinorWaveFunction > SpinorVector
Vector of SpinorWaveFunctions.
Definition: MEff2ff.h:41
virtual void doinit()
Initialize this object after the setup phase before saving an EventGenerator to disk.
virtual void debug(double me2) const
A debugging function to test the value of me2 against an analytic function.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
vector< SpinorBarWaveFunction > SpinorBarVector
Vector of SpinorBarWaveFunctions.
Definition: MEff2ff.h:44
MEff2ff & operator=(const MEff2ff &)=delete
The assignment operator is private and must never be called.
std::array< SpinorBarVector, 4 > sbar_
Barred spinors.
Definition: MEff2ff.h:215
ProductionMatrixElement fbfb2fbfbHeME(double &me2, bool first) const
Compute the matrix element for .
virtual void constructVertex(tSubProPtr sub)
Construct the vertex information for the spin correlations.
vector< pair< AbstractFFSVertexPtr, AbstractFFSVertexPtr > > scalar_
Store the vector of FFSVertex pairs.
Definition: MEff2ff.h:190
vector< AbstractFFFFVertexPtr > four_
Store any 4-point vertices.
Definition: MEff2ff.h:205
The storage of the helicity amplitude expression for the matrix element of a hard process.
-*- C++ -*-
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
ThePEG::Ptr< SubProcess >::transient_pointer tSubProPtr