herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
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 
24 namespace Herwig {
25 using namespace ThePEG;
28 
36 class MEff2ff: public GeneralHardME {
37 
38 public:
39 
41  typedef vector<SpinorWaveFunction> SpinorVector;
42 
44  typedef vector<SpinorBarWaveFunction> SpinorBarVector;
45 
46 public:
47 
57  virtual double me2() const;
59 
60 private:
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 
113 protected:
114 
120  virtual void debug(double me2) const;
121 
122 public:
123 
130  void persistentOutput(PersistentOStream & os) const;
131 
137  void persistentInput(PersistentIStream & is, int version);
139 
146  static void Init();
147 
148 protected:
149 
157  virtual void doinit();
159 
160 protected:
161 
168  virtual IBPtr clone() const {return new_ptr(*this);}
169 
174  virtual IBPtr fullclone() const {return new_ptr(*this);}
176 
177 private:
178 
183  MEff2ff & operator=(const MEff2ff &) = delete;
184 
185 private:
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
std::array< SpinorVector, 4 > spin_
Spinors.
Definition: MEff2ff.h:210
virtual IBPtr clone() const
Make a simple clone of this object.
Definition: MEff2ff.h:168
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< SpinorBarWaveFunction > SpinorBarVector
Vector of SpinorBarWaveFunctions.
Definition: MEff2ff.h:44
std::array< SpinorBarVector, 4 > sbar_
Barred spinors.
Definition: MEff2ff.h:215
vector< pair< AbstractFFVVertexPtr, AbstractFFVVertexPtr > > vector_
Store the vector of FFVVertex pairs.
Definition: MEff2ff.h:195
The storage of the helicity amplitude expression for the matrix element of a hard process...
vector< SpinorWaveFunction > SpinorVector
Vector of SpinorWaveFunctions.
Definition: MEff2ff.h:41
This is the implementation of the matrix element for a process.
Definition: MEff2ff.h:36
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
Definition: MEff2ff.h:174
ThePEG::Ptr< SubProcess >::transient_pointer tSubProPtr
vector< pair< AbstractFFTVertexPtr, AbstractFFTVertexPtr > > tensor_
Store the vector of FFTVertex pairs.
Definition: MEff2ff.h:200
-*- C++ -*-
vector< AbstractFFFFVertexPtr > four_
Store any 4-point vertices.
Definition: MEff2ff.h:205
vector< pair< AbstractFFSVertexPtr, AbstractFFSVertexPtr > > scalar_
Store the vector of FFSVertex pairs.
Definition: MEff2ff.h:190