herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
PScalarVectorVectorDecayer.h
1 // -*- C++ -*-
2 //
3 // PScalarVectorVectorDecayer.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_PScalarVectorVectorDecayer_H
10 #define HERWIG_PScalarVectorVectorDecayer_H
11 // This is the declaration of the PScalarVectorVectorDecayer class.
12 #include "Herwig/Decay/DecayPhaseSpaceMode.h"
13 #include "Herwig/Decay/DecayIntegrator.h"
14 #include "ThePEG/Helicity/LorentzPolarizationVector.h"
15 
16 namespace Herwig {
17 using namespace ThePEG;
18 
48 
49 public:
50 
55 
62  virtual int modeNumber(bool & cc, tcPDPtr parent,
63  const tPDVector & children) const;
64 
73  double me2( const int ichan,const Particle & part,
74  const ParticleVector & decay, MEOption meopt) const;
75 
84  bool twoBodyMEcode(const DecayMode & dm, int & mecode, double & coupling) const;
85 
91  virtual void dataBaseOutput(ofstream & os,bool header) const;
92 
93 public:
94 
101  void persistentOutput(PersistentOStream & os) const;
102 
108  void persistentInput(PersistentIStream & is, int version);
110 
114  static void Init();
115 
116 protected:
117 
124  virtual IBPtr clone() const {return new_ptr(*this);}
125 
130  virtual IBPtr fullclone() const {return new_ptr(*this);}
132 
133 protected:
134 
142  virtual void doinit();
143 
147  virtual void doinitrun();
149 
150 private:
151 
155  PScalarVectorVectorDecayer & operator=(const PScalarVectorVectorDecayer &) = delete;
156 
157 private:
158 
162  vector<int> _incoming;
163 
167  vector<int> _outgoing1;
168 
172  vector<int> _outgoing2;
173 
177  vector<InvEnergy> _coupling;
178 
182  vector<double> _maxweight;
183 
187  unsigned int _initsize;
188 
192  mutable RhoDMatrix _rho;
193 
197  mutable vector<Helicity::LorentzPolarizationVector> _vectors[2];
198 };
199 
200 }
201 
202 
203 #endif /* HERWIG_PScalarVectorVectorDecayer_H */
vector< int > _incoming
the PDG code for the incoming particle
unsigned int _initsize
initial number of modes
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< InvEnergy > _coupling
the coupling for the decay, .
The PScalarVectorVectorDecayer class is designed to perform the decay of a pseudoscalar meson to two ...
MEOption
Enum for the matrix element option.
RhoDMatrix _rho
Spin density matrix.
virtual IBPtr clone() const
Make a simple clone of this object.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
vector< tPDPtr > tPDVector
vector< int > _outgoing2
the PDG code for the second outgoing particle
Main class for Decayers implementing multi-channel phase space integration.
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr
vector< int > _outgoing1
the PDG code for the first outgoing particle
-*- C++ -*-
vector< PPtr > ParticleVector
vector< double > _maxweight
the maximum weight for the decay