herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
FFVDecayer.h
1 // -*- C++ -*-
2 //
3 // FFVDecayer.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_FFVDecayer_H
10 #define HERWIG_FFVDecayer_H
11 //
12 // This is the declaration of the FFVDecayer 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  virtual void setDecayInfo(PDPtr incoming, PDPair outgoing, vector<VertexBasePtr>,
91  map<ShowerInteraction,VertexBasePtr> &,
92  const vector<map<ShowerInteraction,VertexBasePtr> > &,
93  map<ShowerInteraction,VertexBasePtr>);
95 
96 public:
97 
104  void persistentOutput(PersistentOStream & os) const;
105 
111  void persistentInput(PersistentIStream & is, int version);
113 
120  static void Init();
121 
122 protected:
123 
130  virtual IBPtr clone() const;
131 
136  virtual IBPtr fullclone() const;
138 
139 private:
140 
145  FFVDecayer & operator=(const FFVDecayer &) = delete;
146 
147 private:
148 
152  vector<AbstractFFVVertexPtr> vertex_;
153 
157  vector<FFVVertexPtr> perturbativeVertex_;
158 
162  map<ShowerInteraction,AbstractFFVVertexPtr> incomingVertex_;
163 
167  map<ShowerInteraction,AbstractFFVVertexPtr> outgoingVertexF_;
168 
172  map<ShowerInteraction,AbstractVVVVertexPtr> outgoingVertexV_;
173 
177  mutable RhoDMatrix rho_;
178 
182  mutable vector<SpinorWaveFunction> wave_ ;
183 
187  mutable vector<SpinorBarWaveFunction> wavebar_;
188 
192  mutable vector<VectorWaveFunction> vector_;
193 
197  mutable RhoDMatrix rho3_;
198 
202  mutable vector<VectorWaveFunction> vector3_;
203 
207  mutable vector<SpinorWaveFunction> wave3_;
208 
212  mutable vector<SpinorBarWaveFunction> wavebar3_;
213 
217  mutable vector<VectorWaveFunction> gluon_;
218 
219 };
220 
221 }
222 
223 #endif /* HERWIG_FFVDecayer_H */
RhoDMatrix rho_
Spin density matrix.
Definition: FFVDecayer.h:177
map< ShowerInteraction, AbstractFFVVertexPtr > incomingVertex_
Abstract pointer to AbstractFFVVertex for QCD radiation from incoming (anti)fermion.
Definition: FFVDecayer.h:162
ShowerInteraction
Handy header file to be included in all Shower classes.
virtual POWHEGType hasPOWHEGCorrection()
Has a POWHEG style correction.
Definition: FFVDecayer.h:69
vector< AbstractFFVVertexPtr > vertex_
Abstract pointer to AbstractFFVVertex.
Definition: FFVDecayer.h:152
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
The GeneralTwoBodyDecayer class is designed to be the base class for 2 body decays for some general m...
pair< tcPDPtr, Energy > PMPair
A ParticleData ptr and (possible) mass pair.
RhoDMatrix rho3_
Spin density matrix for 3 body decay.
Definition: FFVDecayer.h:197
map< ShowerInteraction, AbstractFFVVertexPtr > outgoingVertexF_
Abstract pointer to AbstractFFVVertex for QCD radiation from outgoing (anti)fermion.
Definition: FFVDecayer.h:167
vector< SpinorBarWaveFunction > wavebar3_
Barred spinor wavefunction for 3 body decay.
Definition: FFVDecayer.h:212
vector< SpinorWaveFunction > wave3_
Spinor wavefunction for 3 body decay.
Definition: FFVDecayer.h:207
MEOption
Enum for the matrix element option.
vector< VectorWaveFunction > vector3_
vector wavefunction for 3 body decay
Definition: FFVDecayer.h:202
FFVDecayer()
The default constructor.
Definition: FFVDecayer.h:40
The FFVDecayer class implements the decay of a fermion to a fermion and a vector in a general model...
Definition: FFVDecayer.h:33
vector< VectorWaveFunction > gluon_
Vector wavefunction for gluon in 3 body decay.
Definition: FFVDecayer.h:217
POWHEGType
Virtual members to be overridden by inheriting classes which implement hard corrections.
Definition: HwDecayerBase.h:76
pair< PDPtr, PDPtr > PDPair
ThePEG::Ptr< ParticleData >::pointer PDPtr
vector< VectorWaveFunction > vector_
Polarization vectors.
Definition: FFVDecayer.h:192
-*- C++ -*-
vector< SpinorBarWaveFunction > wavebar_
Barred spinor wavefunction.
Definition: FFVDecayer.h:187
map< ShowerInteraction, AbstractVVVVertexPtr > outgoingVertexV_
Abstract pointer to AbstractVVVVertex for QCD radiation from outgoing vector.
Definition: FFVDecayer.h:172
vector< PPtr > ParticleVector
vector< SpinorWaveFunction > wave_
Spinor wavefunction.
Definition: FFVDecayer.h:182
vector< FFVVertexPtr > perturbativeVertex_
Pointer to the perturbative vertex.
Definition: FFVDecayer.h:157