herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
VectorMesonPVectorPScalarDecayer.h
1 // -*- C++ -*-
2 //
3 // VectorMesonPVectorPScalarDecayer.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_VectorMesonPVectorPScalarDecayer_H
10 #define HERWIG_VectorMesonPVectorPScalarDecayer_H
11 // This is the declaration of the VectorMesonPVectorPScalarDecayer class.
12 
13 #include "Herwig/Decay/DecayIntegrator.h"
14 #include "Herwig/Decay/DecayPhaseSpaceMode.h"
15 #include "ThePEG/Helicity/LorentzPolarizationVector.h"
16 
17 namespace Herwig {
18 using namespace ThePEG;
19 
36 
37 public:
38 
43 
50  virtual int modeNumber(bool & cc, tcPDPtr parent,
51  const tPDVector & children) const;
52 
61  double me2(const int ichan,const Particle & part,
62  const ParticleVector & decay, MEOption meopt) const;
63 
69  virtual void dataBaseOutput(ofstream & os,bool header) const;
70 
71 public:
72 
79  void persistentOutput(PersistentOStream & os) const;
80 
86  void persistentInput(PersistentIStream & is, int version);
88 
92  static void Init();
93 
102  bool twoBodyMEcode(const DecayMode & dm, int & mecode, double & coupling) const;
103 
104 protected:
105 
112  virtual IBPtr clone() const {return new_ptr(*this);}
113 
118  virtual IBPtr fullclone() const {return new_ptr(*this);}
120 
121 protected:
122 
130  virtual void doinit();
131 
135  virtual void doinitrun();
137 
138 private:
139 
144 
145 private:
146 
150  vector<InvEnergy> _coupling;
151 
155  vector<int> _incoming;
156 
160  vector<int> _outgoingA;
161 
165  vector<int> _outgoingP;
166 
170  vector<double> _maxweight;
171 
175  unsigned int _initsize;
176 
180  mutable RhoDMatrix _rho;
181 
185  mutable vector<Helicity::LorentzPolarizationVector> _vectors[2];
186 
187 };
188 
189 }
190 
191 
192 #endif /* HERWIG_VectorMesonPVectorPScalarDecayer_H */
unsigned int _initsize
Initial size of the vectors.
vector< int > _outgoingA
PDG codes for the outgoing pseudo-vector.
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
This class is designed for the decay of a vector meson to a pseudovector meson and a pseudoscalar mes...
MEOption
Enum for the matrix element option.
vector< int > _outgoingP
PDG codes for the outgoing pseudoscalar mesons.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
vector< tPDPtr > tPDVector
virtual IBPtr clone() const
Make a simple clone of this object.
Main class for Decayers implementing multi-channel phase space integration.
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr
vector< InvEnergy > _coupling
coupling for a decay
vector< int > _incoming
PDG codes for the incoming particles.
-*- C++ -*-
vector< double > _maxweight
maximum weight for a decay
vector< PPtr > ParticleVector