herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
SSSDecayer.h
1 // -*- C++ -*-
2 //
3 // SSSDecayer.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_SSSDecayer_H
10 #define HERWIG_SSSDecayer_H
11 //
12 // This is the declaration of the SSSDecayer class.
13 //
14 
15 #include "GeneralTwoBodyDecayer.h"
16 #include "ThePEG/Repository/EventGenerator.h"
17 #include "ThePEG/Helicity/Vertex/Scalar/SSSVertex.h"
18 #include "ThePEG/Helicity/Vertex/Scalar/VSSVertex.h"
19 
20 namespace Herwig {
21 using namespace ThePEG;
22 using Helicity::SSSVertexPtr;
23 
34 
35 public:
36 
41 
52  virtual double me2(const int ichan, const Particle & part,
53  const ParticleVector & decay, MEOption meopt) const;
54 
61  virtual Energy partialWidth(PMPair inpart, PMPair outa,
62  PMPair outb) const;
63 
68  POWHEGType output = FSR;
69  for(auto vertex : vertex_) {
70  if(vertex->orderInAllCouplings()!=1) {
71  output = No;
72  break;
73  }
74  }
75  return output;
76  }
77 
81  virtual double threeBodyME(const int , const Particle & inpart,
82  const ParticleVector & decay,
83  ShowerInteraction inter, MEOption meopt);
84 
88  void identifyVertices(const int iscal, const int ianti,
89  const Particle & inpart, const ParticleVector & decay,
90  AbstractVSSVertexPtr & abstractOutgoingVertexS,
91  AbstractVSSVertexPtr & abstractOutgoingVertexA,
92  ShowerInteraction inter);
93 
97  virtual void setDecayInfo(PDPtr incoming, PDPair outgoing,
98  vector<VertexBasePtr>,
99  map<ShowerInteraction,VertexBasePtr> &,
100  const vector<map<ShowerInteraction,VertexBasePtr> > &,
101  map<ShowerInteraction,VertexBasePtr>);
103 
104 public:
105 
112  void persistentOutput(PersistentOStream & os) const;
113 
119  void persistentInput(PersistentIStream & is, int version);
121 
128  static void Init();
129 
130 protected:
131 
138  virtual IBPtr clone() const;
139 
144  virtual IBPtr fullclone() const;
146 
147 private:
148 
153  SSSDecayer & operator=(const SSSDecayer &) = delete;
154 
155 private:
156 
160  vector<AbstractSSSVertexPtr> vertex_;
161 
165  vector<SSSVertexPtr> perturbativeVertex_;
166 
170  map<ShowerInteraction,AbstractVSSVertexPtr> incomingVertex_;
171 
175  map<ShowerInteraction,AbstractVSSVertexPtr> outgoingVertex1_;
176 
180  map<ShowerInteraction,AbstractVSSVertexPtr> outgoingVertex2_;
181 
185  mutable RhoDMatrix rho_;
186 
191 
195  mutable RhoDMatrix rho3_;
196 
201 
205  mutable vector<Helicity::VectorWaveFunction> gluon_;
206 
207 };
208 
209 }
210 
211 #endif /* HERWIG_SSSDecayer_H */
vector< AbstractSSSVertexPtr > vertex_
Abstract pointer to AbstractSSSVertex.
Definition: SSSDecayer.h:160
SSSDecayer()
The default constructor.
Definition: SSSDecayer.h:40
The SSDecayer class implements the decay of a scalar to 2 scalars in a general model.
Definition: SSSDecayer.h:33
ShowerInteraction
Handy header file to be included in all Shower classes.
Helicity::ScalarWaveFunction swave_
Scalar wavefunctions.
Definition: SSSDecayer.h:190
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< SSSVertexPtr > perturbativeVertex_
Pointer to the perturbative vertex.
Definition: SSSDecayer.h:165
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.
map< ShowerInteraction, AbstractVSSVertexPtr > outgoingVertex2_
Abstract pointer to AbstractVSSVertex for QCD radiation from outgoing scalar.
Definition: SSSDecayer.h:180
map< ShowerInteraction, AbstractVSSVertexPtr > incomingVertex_
Abstract pointer to AbstractVSSVertex for QCD radiation from incoming scalar.
Definition: SSSDecayer.h:170
MEOption
Enum for the matrix element option.
vector< Helicity::VectorWaveFunction > gluon_
Vector wavefunction for 3 body decay.
Definition: SSSDecayer.h:205
Helicity::ScalarWaveFunction swave3_
Scalar wavefunction for 3 body decay.
Definition: SSSDecayer.h:200
POWHEGType
Virtual members to be overridden by inheriting classes which implement hard corrections.
Definition: HwDecayerBase.h:76
map< ShowerInteraction, AbstractVSSVertexPtr > outgoingVertex1_
Abstract pointer to AbstractVSSVertex for QCD radiation from outgoing scalar.
Definition: SSSDecayer.h:175
pair< PDPtr, PDPtr > PDPair
ThePEG::Ptr< ParticleData >::pointer PDPtr
virtual POWHEGType hasPOWHEGCorrection()
Has a POWHEG style correction.
Definition: SSSDecayer.h:67
-*- C++ -*-
RhoDMatrix rho_
Spin density matrix.
Definition: SSSDecayer.h:185
vector< PPtr > ParticleVector
RhoDMatrix rho3_
Spin density matrix for 3 body decay.
Definition: SSSDecayer.h:195