herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
MEfv2fs.h
1// -*- C++ -*-
2//
3// MEfv2fs.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_MEfv2fs_H
10#define HERWIG_MEfv2fs_H
11//
12// This is the declaration of the MEfv2fs class.
13//
14
15#include "GeneralHardME.h"
16#include "ThePEG/Helicity/WaveFunction/SpinorWaveFunction.h"
17#include "ThePEG/Helicity/WaveFunction/SpinorBarWaveFunction.h"
18#include "ThePEG/Helicity/WaveFunction/VectorWaveFunction.h"
19#include "ThePEG/Helicity/WaveFunction/ScalarWaveFunction.h"
20#include "Herwig/MatrixElement/ProductionMatrixElement.h"
21#include "ThePEG/Helicity/Vertex/AbstractFFVVertex.h"
22#include "ThePEG/Helicity/Vertex/AbstractFFSVertex.h"
23#include "ThePEG/Helicity/Vertex/AbstractRFVVertex.h"
24#include "ThePEG/Helicity/Vertex/AbstractRFSVertex.h"
25#include "ThePEG/Helicity/Vertex/AbstractVSSVertex.h"
26#include "ThePEG/Helicity/Vertex/AbstractVVSVertex.h"
27#include "ThePEG/Helicity/Vertex/AbstractFFVSVertex.h"
28
29namespace Herwig {
30using namespace ThePEG;
35
36
44class MEfv2fs: public GeneralHardME {
45
47 typedef vector<SpinorWaveFunction> SpinorVector;
48
50 typedef vector<SpinorBarWaveFunction> SpinorBarVector;
51
53 typedef vector<VectorWaveFunction> VecWFVector;
54
55public:
56
66 virtual double me2() const;
68
73 virtual void constructVertex(tSubProPtr subp);
74
75private:
76
90 const VecWFVector & vecIn,
91 const SpinorBarVector & spbOut,
92 const ScalarWaveFunction & scaOut,
93 double & full_me, bool first) const;
94
106 const VecWFVector & vecIn,
107 const SpinorVector & spOut,
108 const ScalarWaveFunction & scaOut,
109 double & full_me, bool first) const;
111
112protected:
113
119 virtual void debug(double me2) const;
120
121public:
122
130
136 void persistentInput(PersistentIStream & is, int version);
138
145 static void Init();
146
147protected:
148
156 void doinit();
158
159protected:
160
167 virtual IBPtr clone() const {return new_ptr(*this);}
168
173 virtual IBPtr fullclone() const {return new_ptr(*this);}
175
176private:
177
182 MEfv2fs & operator=(const MEfv2fs &) = delete;
183
184private:
185
189 vector<pair<AbstractFFSVertexPtr, AbstractVSSVertexPtr> > scalar_;
190
194 vector<pair<AbstractFFSVertexPtr, AbstractFFVVertexPtr> > fermion_;
195
199 vector<pair<AbstractFFVVertexPtr,AbstractVVSVertexPtr> > vector_;
200
204 vector<pair<AbstractRFSVertexPtr, AbstractRFVVertexPtr> > RSfermion_;
205
209 vector<AbstractFFVSVertexPtr> four_;
210};
211
212}
213
214#endif /* HERWIG_MEfv2fs_H */
This defines the GeneralHardME class that is designed to serve as a base class for matrix elements of...
Definition: GeneralHardME.h:40
This class is designed to implement the matrix element for fermion-vector to fermion scalar.
Definition: MEfv2fs.h:44
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
Definition: MEfv2fs.h:173
ProductionMatrixElement fbv2fsHeME(const SpinorBarVector &spbIn, const VecWFVector &vecIn, const SpinorVector &spOut, const ScalarWaveFunction &scaOut, double &full_me, bool first) const
Calculate me2 and the production matrix element for the cc mode.
ProductionMatrixElement fv2fbsHeME(const SpinorVector &spIn, const VecWFVector &vecIn, const SpinorBarVector &spbOut, const ScalarWaveFunction &scaOut, double &full_me, bool first) const
Calculate me2 and the production matrix element for the normal mode.
MEfv2fs & operator=(const MEfv2fs &)=delete
The assignment operator is private and must never be called.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
virtual double me2() const
The matrix element for the kinematical configuration previously provided by the last call to setKinem...
vector< pair< AbstractFFSVertexPtr, AbstractVSSVertexPtr > > scalar_
Store a pair of FFSVertex and VSSVertex pointers
Definition: MEfv2fs.h:189
vector< SpinorWaveFunction > SpinorVector
Vector of SpinorWaveFunctions.
Definition: MEfv2fs.h:47
vector< SpinorBarWaveFunction > SpinorBarVector
Vector of SpinorBarWaveFunctions.
Definition: MEfv2fs.h:50
virtual IBPtr clone() const
Make a simple clone of this object.
Definition: MEfv2fs.h:167
vector< VectorWaveFunction > VecWFVector
Vector of VectorWaveFunctions.
Definition: MEfv2fs.h:53
static void Init()
The standard Init function used to initialize the interfaces.
vector< pair< AbstractRFSVertexPtr, AbstractRFVVertexPtr > > RSfermion_
Store a pair of FFSVertex and FFVVertex pointers
Definition: MEfv2fs.h:204
vector< pair< AbstractFFVVertexPtr, AbstractVVSVertexPtr > > vector_
Store a pair of VVSVertex and FFVVertex pointers
Definition: MEfv2fs.h:199
virtual void constructVertex(tSubProPtr subp)
Construct the vertex information for the spin correlations.
vector< AbstractFFVSVertexPtr > four_
Store any 4-point vertices.
Definition: MEfv2fs.h:209
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.
vector< pair< AbstractFFSVertexPtr, AbstractFFVVertexPtr > > fermion_
Store a pair of FFSVertex and FFVVertex pointers
Definition: MEfv2fs.h:194
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