herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
VFFDecayer.h
1 // -*- C++ -*-
2 //
3 // VFFDecayer.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_VFFDecayer_H
10 #define HERWIG_VFFDecayer_H
11 //
12 // This is the declaration of the VFFDecayer class.
13 //
14 
15 #include "GeneralTwoBodyDecayer.h"
16 #include "ThePEG/Repository/EventGenerator.h"
17 #include "ThePEG/Helicity/Vertex/Vector/FFVVertex.h"
18 #include "ThePEG/Helicity/Vertex/Vector/VVVVertex.h"
19 
20 namespace Herwig {
21 using namespace ThePEG;
22 using Helicity::FFVVertexPtr;
23 
34 
35 public:
36 
41 
42 public:
43 
54  virtual double me2(const int ichan, const Particle & part,
55  const ParticleVector & decay, MEOption meopt) const;
56 
63  virtual Energy partialWidth(PMPair inpart, PMPair outa,
64  PMPair outb) const;
65 
70  POWHEGType output = FSR;
71  for(auto vertex : vertex_) {
72  if(vertex->orderInAllCouplings()!=1) {
73  output = No;
74  break;
75  }
76  }
77  return output;
78  }
79 
83  virtual double threeBodyME(const int , const Particle & inpart,
84  const ParticleVector & decay,
85  ShowerInteraction inter, MEOption meopt);
86 
90  void identifyVertices(const int iferm, const int ianti,
91  const Particle & inpart, const ParticleVector & decay,
92  AbstractFFVVertexPtr & abstractOutgoingVertexF,
93  AbstractFFVVertexPtr & abstractOutgoingVertexA,
94  ShowerInteraction inter);
95 
99  virtual void setDecayInfo(PDPtr incoming, PDPair outgoing,
100  vector<VertexBasePtr>,
101  map<ShowerInteraction,VertexBasePtr> &,
102  const vector<map<ShowerInteraction,VertexBasePtr> > &,
103  map<ShowerInteraction,VertexBasePtr>);
105 
106 public:
107 
114  void persistentOutput(PersistentOStream & os) const;
115 
121  void persistentInput(PersistentIStream & is, int version);
123 
130  static void Init();
131 
132 protected:
133 
140  virtual IBPtr clone() const;
141 
146  virtual IBPtr fullclone() const;
148 
149 private:
150 
155  VFFDecayer & operator=(const VFFDecayer &) = delete;
156 
157 private:
158 
162  vector<AbstractFFVVertexPtr> vertex_;
163 
167  vector<FFVVertexPtr> perturbativeVertex_;
168 
172  map<ShowerInteraction,AbstractVVVVertexPtr> incomingVertex_;
173 
177  map<ShowerInteraction,AbstractFFVVertexPtr> outgoingVertex1_;
178 
182  map<ShowerInteraction,AbstractFFVVertexPtr> outgoingVertex2_;
183 
187  mutable RhoDMatrix rho_;
188 
192  mutable vector<VectorWaveFunction> vectors_;
193 
197  mutable vector<SpinorWaveFunction> wave_;
198 
202  mutable vector<SpinorBarWaveFunction> wavebar_;
206  mutable RhoDMatrix rho3_;
207 
211  mutable vector<VectorWaveFunction> vector3_;
212 
216  mutable vector<SpinorWaveFunction> wave3_;
217 
221  mutable vector<SpinorBarWaveFunction> wavebar3_;
222 
226  mutable vector<VectorWaveFunction> gluon_;
227 
228 };
229 
230 }
231 
232 #endif /* HERWIG_VFFDecayer_H */
The VFFDecayer class implements the decay of a vector to 2 fermions in a general model.
Definition: VFFDecayer.h:33
ShowerInteraction
Handy header file to be included in all Shower classes.
RhoDMatrix rho3_
Spin density matrix for 3 body decay.
Definition: VFFDecayer.h:206
vector< SpinorBarWaveFunction > wavebar3_
Barred spinor wavefunction for 3 body decay.
Definition: VFFDecayer.h:221
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
map< ShowerInteraction, AbstractFFVVertexPtr > outgoingVertex2_
Abstract pointer to AbstractFFVVertex for QCD radiation from outgoing (anti)fermion.
Definition: VFFDecayer.h:182
vector< SpinorWaveFunction > wave_
Spinors for the decay products.
Definition: VFFDecayer.h:197
The GeneralTwoBodyDecayer class is designed to be the base class for 2 body decays for some general m...
VFFDecayer()
The default constructor.
Definition: VFFDecayer.h:40
pair< tcPDPtr, Energy > PMPair
A ParticleData ptr and (possible) mass pair.
vector< SpinorWaveFunction > wave3_
Spinor wavefunction for 3 body decay.
Definition: VFFDecayer.h:216
MEOption
Enum for the matrix element option.
POWHEGType
Virtual members to be overridden by inheriting classes which implement hard corrections.
Definition: HwDecayerBase.h:76
pair< PDPtr, PDPtr > PDPair
map< ShowerInteraction, AbstractFFVVertexPtr > outgoingVertex1_
Abstract pointer to AbstractFFVVertex for QCD radiation from outgoing (anti)fermion.
Definition: VFFDecayer.h:177
vector< VectorWaveFunction > vectors_
Polarization vectors for the decaying particle.
Definition: VFFDecayer.h:192
ThePEG::Ptr< ParticleData >::pointer PDPtr
vector< VectorWaveFunction > gluon_
Vector wavefunction for 3 body decay.
Definition: VFFDecayer.h:226
map< ShowerInteraction, AbstractVVVVertexPtr > incomingVertex_
Abstract pointer to AbstractVVVVertex for QCD radiation from incoming vector.
Definition: VFFDecayer.h:172
vector< AbstractFFVVertexPtr > vertex_
Abstract pointer to AbstractFFVVertex.
Definition: VFFDecayer.h:162
-*- C++ -*-
vector< FFVVertexPtr > perturbativeVertex_
Pointer to the perturbative vertex.
Definition: VFFDecayer.h:167
RhoDMatrix rho_
Spin density matrix.
Definition: VFFDecayer.h:187
virtual POWHEGType hasPOWHEGCorrection()
Has a POWHEG style correction.
Definition: VFFDecayer.h:69
vector< PPtr > ParticleVector
vector< SpinorBarWaveFunction > wavebar_
Barred spinors for the decay products.
Definition: VFFDecayer.h:202
vector< VectorWaveFunction > vector3_
Scalar wavefunction for 3 body decay.
Definition: VFFDecayer.h:211