herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
SFFDecayer.h
1 // -*- C++ -*-
2 //
3 // SFFDecayer.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_SFFDecayer_H
10 #define HERWIG_SFFDecayer_H
11 //
12 // This is the declaration of the SFFDecayer 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 namespace Herwig {
22 using namespace ThePEG;
23 using Helicity::FFSVertexPtr;
24 
35 
36 public:
37 
42 
53  virtual double me2(const int ichan, const Particle & part,
54  const ParticleVector & decay, MEOption meopt) const;
55 
62  virtual Energy partialWidth(PMPair inpart, PMPair outa,
63  PMPair outb) const;
64 
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,
85  MEOption meopt);
86 
90  void identifyVertices(const int iferm, const int ianti,
91  const Particle & inpart, const ParticleVector & decay,
92  AbstractFFVVertexPtr & outgoingVertexF,
93  AbstractFFVVertexPtr & outgoingVertexA,
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  SFFDecayer & operator=(const SFFDecayer &) = delete;
156 
157 private:
158 
162  vector<AbstractFFSVertexPtr> vertex_;
163 
167  vector<FFSVertexPtr> perturbativeVertex_;
168 
172  map<ShowerInteraction,AbstractVSSVertexPtr> incomingVertex_;
173 
177  map<ShowerInteraction,AbstractFFVVertexPtr> outgoingVertex1_;
178 
182  map<ShowerInteraction,AbstractFFVVertexPtr> outgoingVertex2_;
183 
187  mutable RhoDMatrix rho_;
188 
193 
197  mutable vector<SpinorWaveFunction> wave_;
198 
202  mutable vector<SpinorBarWaveFunction> wavebar_;
203 
207  mutable RhoDMatrix rho3_;
208 
213 
217  mutable vector<SpinorWaveFunction> wave3_;
218 
222  mutable vector<SpinorBarWaveFunction> wavebar3_;
223 
227  mutable vector<VectorWaveFunction> gluon_;
228 
229 
230 };
231 
232 }
233 
234 #endif /* HERWIG_SFFDecayer_H */
RhoDMatrix rho_
Spin density matrix.
Definition: SFFDecayer.h:187
ShowerInteraction
Handy header file to be included in all Shower classes.
RhoDMatrix rho3_
Spin density matrix for 3 body decay.
Definition: SFFDecayer.h:207
vector< VectorWaveFunction > gluon_
Vector wavefunction for 3 body decay.
Definition: SFFDecayer.h:227
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.
ScalarWaveFunction swave3_
Scalar wavefunction for 3 body decay.
Definition: SFFDecayer.h:212
map< ShowerInteraction, AbstractVSSVertexPtr > incomingVertex_
Abstract pointer to AbstractVSSVertex for QCD radiation from incoming scalar.
Definition: SFFDecayer.h:172
MEOption
Enum for the matrix element option.
vector< SpinorWaveFunction > wave3_
Spinor wavefunction for 3 body decay.
Definition: SFFDecayer.h:217
SFFDecayer()
The default constructor.
Definition: SFFDecayer.h:41
vector< FFSVertexPtr > perturbativeVertex_
Pointer to the perturbative vertex.
Definition: SFFDecayer.h:167
POWHEGType
Virtual members to be overridden by inheriting classes which implement hard corrections.
Definition: HwDecayerBase.h:76
pair< PDPtr, PDPtr > PDPair
map< ShowerInteraction, AbstractFFVVertexPtr > outgoingVertex2_
Abstract pointer to AbstractFFVVertex for QCD radiation from outgoing (anti)fermion.
Definition: SFFDecayer.h:182
vector< SpinorBarWaveFunction > wavebar_
Barred spinor wavefunction.
Definition: SFFDecayer.h:202
ThePEG::Ptr< ParticleData >::pointer PDPtr
vector< SpinorWaveFunction > wave_
Spinor wavefunction.
Definition: SFFDecayer.h:197
The SFFDecayer class implements the decay of a scalar to 2 fermions in a general model.
Definition: SFFDecayer.h:34
vector< SpinorBarWaveFunction > wavebar3_
Barred spinor wavefunction for 3 body decay.
Definition: SFFDecayer.h:222
-*- C++ -*-
map< ShowerInteraction, AbstractFFVVertexPtr > outgoingVertex1_
Abstract pointer to AbstractFFVVertex for QCD radiation from outgoing (anti)fermion.
Definition: SFFDecayer.h:177
vector< PPtr > ParticleVector
vector< AbstractFFSVertexPtr > vertex_
Abstract pointer to AbstractFFSVertex.
Definition: SFFDecayer.h:162
ScalarWaveFunction swave_
Scalar wavefunction.
Definition: SFFDecayer.h:192
virtual POWHEGType hasPOWHEGCorrection()
Has a POWHEG style correction.
Definition: SFFDecayer.h:68