herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
PVectorMesonVectorPScalarDecayer.h
1 // -*- C++ -*-
2 //
3 // PVectorMesonVectorPScalarDecayer.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_PVectorMesonVectorPScalarDecayer_H
10 #define HERWIG_PVectorMesonVectorPScalarDecayer_H
11 //
12 // This is the declaration of the PVectorMesonVectorPScalarDecayer class.
13 //
14 #include "Herwig/Decay/DecayIntegrator.h"
15 #include "Herwig/Decay/DecayPhaseSpaceMode.h"
16 #include "ThePEG/Helicity/LorentzPolarizationVector.h"
17 
18 namespace Herwig {
19 using namespace ThePEG;
20 
42 
43 public:
44 
49 
56  virtual int modeNumber(bool & cc, tcPDPtr parent,
57  const tPDVector & children) const;
58 
67  double me2(const int ichan,const Particle & part,
68  const ParticleVector & decay, MEOption meopt) const;
69 
75  virtual void dataBaseOutput(ofstream & os,bool header) const;
76 
77 public:
78 
85  void persistentOutput(PersistentOStream & os) const;
86 
92  void persistentInput(PersistentIStream & is, int version);
94 
98  static void Init();
99 
108  bool twoBodyMEcode(const DecayMode & dm, int & mecode, double & coupling) const;
109 
110 protected:
111 
118  virtual IBPtr clone() const {return new_ptr(*this);}
119 
124  virtual IBPtr fullclone() const {return new_ptr(*this);}
126 
127 protected:
128 
136  virtual void doinit();
137 
141  virtual void doinitrun();
143 
144 private:
145 
150 
151 private:
152 
156  vector<InvEnergy> _coupling;
157 
161  vector<int> _incoming;
162 
166  vector<int> _outgoingV;
167 
171  vector<int> _outgoingP;
172 
176  vector<double> _maxweight;
177 
181  unsigned int _initsize;
182 
186  mutable RhoDMatrix _rho;
187 
191  mutable vector<Helicity::LorentzPolarizationVector> _vectors[2];
192 
193 };
194 
195 }
196 
197 
198 #endif /* HERWIG_PVectorMesonVectorPScalarDecayer_H */
vector< int > _outgoingP
PDG codes for the outgoing pseudoscalar mesons.
virtual IBPtr clone() const
Make a simple clone of this object.
unsigned int _initsize
Initial size of the vectors.
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< double > _maxweight
maximum weight for a decay
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
MEOption
Enum for the matrix element option.
vector< tPDPtr > tPDVector
Main class for Decayers implementing multi-channel phase space integration.
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr
vector< int > _incoming
PDG codes for the incoming particles.
-*- C++ -*-
This class is designed for the decay of a pseudovector meson to a spin-1 particle, either a vector meson or a photon, and a pseudoscalar meson.
vector< PPtr > ParticleVector
vector< int > _outgoingV
PDG codes for the outgoing vector.
vector< InvEnergy > _coupling
Coupling for a decay.