herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
FFSDecayer.h
1 // -*- C++ -*-
2 //
3 // FFSDecayer.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_FFSDecayer_H
10 #define HERWIG_FFSDecayer_H
11 //
12 // This is the declaration of the FFSDecayer class.
13 //
14 
15 #include "GeneralTwoBodyDecayer.h"
16 #include "ThePEG/Repository/EventGenerator.h"
17 #include "ThePEG/Helicity/Vertex/Scalar/FFSVertex.h"
18 #include "ThePEG/Helicity/Vertex/Scalar/VSSVertex.h"
19 #include "ThePEG/Helicity/Vertex/Vector/FFVVertex.h"
20 
21 
22 namespace Herwig {
23 using namespace ThePEG;
24 using Helicity::FFSVertexPtr;
25 
36 
37 public:
38 
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;
69  POWHEGType output = FSR;
70  for(auto vertex : vertex_) {
71  if(vertex->orderInAllCouplings()!=1) {
72  output = No;
73  break;
74  }
75  }
76  return output;
77  }
78 
82  virtual double threeBodyME(const int , const Particle & inpart,
83  const ParticleVector & decay,
84  ShowerInteraction inter, MEOption meopt);
85 
89  virtual void setDecayInfo(PDPtr incoming, PDPair outgoing,
90  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  FFSDecayer & operator=(const FFSDecayer &) = delete;
146 
147 private:
148 
152  vector<AbstractFFSVertexPtr> vertex_;
153 
157  vector<FFSVertexPtr> perturbativeVertex_;
158 
162  map<ShowerInteraction,AbstractFFVVertexPtr> incomingVertex_;
163 
167  map<ShowerInteraction,AbstractFFVVertexPtr> outgoingVertexF_;
168 
172  map<ShowerInteraction,AbstractVSSVertexPtr> outgoingVertexS_;
173 
177  mutable RhoDMatrix rho_;
178 
182  mutable vector<SpinorWaveFunction> wave_ ;
183 
187  mutable vector<SpinorBarWaveFunction> wavebar_;
188 
192  mutable RhoDMatrix rho3_;
193 
198 
202  mutable vector<SpinorWaveFunction> wave3_;
203 
207  mutable vector<SpinorBarWaveFunction> wavebar3_;
208 
212  mutable vector<VectorWaveFunction> gluon_;
213 
214 };
215 
216 }
217 
218 #endif /* HERWIG_FFSDecayer_H */
vector< FFSVertexPtr > perturbativeVertex_
Pointer to the perturbative vertex.
Definition: FFSDecayer.h:157
ShowerInteraction
Handy header file to be included in all Shower classes.
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.
vector< AbstractFFSVertexPtr > vertex_
Abstract pointer to AbstractFFSVertex.
Definition: FFSDecayer.h:152
vector< SpinorWaveFunction > wave_
Spinor wavefunctions.
Definition: FFSDecayer.h:182
MEOption
Enum for the matrix element option.
The FFSDecayer class implements the decay of a fermion to a fermion and a vector in a general model...
Definition: FFSDecayer.h:35
map< ShowerInteraction, AbstractFFVVertexPtr > outgoingVertexF_
Abstract pointer to AbstractFFVVertex for QCD radiation from outgoing (anti)fermion.
Definition: FFSDecayer.h:167
virtual POWHEGType hasPOWHEGCorrection()
Has a POWHEG style correction.
Definition: FFSDecayer.h:68
map< ShowerInteraction, AbstractVSSVertexPtr > outgoingVertexS_
Abstract pointer to AbstractVSSVertex for QCD radiation from outgoing scalar.
Definition: FFSDecayer.h:172
POWHEGType
Virtual members to be overridden by inheriting classes which implement hard corrections.
Definition: HwDecayerBase.h:76
map< ShowerInteraction, AbstractFFVVertexPtr > incomingVertex_
Abstract pointer to AbstractFFVVertex for QCD radiation from incoming (anti)fermion.
Definition: FFSDecayer.h:162
vector< VectorWaveFunction > gluon_
Vector wavefunction for 3 body decay.
Definition: FFSDecayer.h:212
pair< PDPtr, PDPtr > PDPair
FFSDecayer()
The default constructor.
Definition: FFSDecayer.h:42
ThePEG::Ptr< ParticleData >::pointer PDPtr
RhoDMatrix rho_
Spin density matrix.
Definition: FFSDecayer.h:177
RhoDMatrix rho3_
Spin density matrix for 3 body decay.
Definition: FFSDecayer.h:192
vector< SpinorBarWaveFunction > wavebar3_
Barred spinor wavefunction for 3 body decay.
Definition: FFSDecayer.h:207
-*- C++ -*-
vector< PPtr > ParticleVector
ScalarWaveFunction swave3_
Scalar wavefunction for 3 body decay.
Definition: FFSDecayer.h:197
vector< SpinorWaveFunction > wave3_
Spinor wavefunction for 3 body decay.
Definition: FFSDecayer.h:202
vector< SpinorBarWaveFunction > wavebar_
Barred spinor wavefunctions.
Definition: FFSDecayer.h:187