herwig is hosted by Hepforge, IPPP Durham
Herwig  7.1.5
VectorMesonVectorScalarDecayer.h
1 // -*- C++ -*-
2 //
3 // VectorMesonVectorScalarDecayer.h is a part of Herwig - A multi-purpose Monte Carlo event generator
4 // Copyright (C) 2002-2017 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_VectorMesonVectorScalarDecayer_H
10 #define HERWIG_VectorMesonVectorScalarDecayer_H
11 //
12 // This is the declaration of the VectorMesonVectorScalarDecayer 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 Herwig;
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 
155 
156 private:
157 
161  vector<InvEnergy> _coupling;
162 
166  vector<int> _incoming;
167 
171  vector<int> _outgoingV;
172 
176  vector<int> _outgoingS;
177 
181  vector<double> _maxweight;
182 
186  unsigned int _initsize;
187 
191  mutable RhoDMatrix _rho;
192 
196  mutable vector<Helicity::LorentzPolarizationVector> _vectors[2];
197 
198 };
199 
200 }
201 
202 
203 #include "ThePEG/Utilities/ClassTraits.h"
204 
205 namespace ThePEG {
206 
213 template <>
216  typedef Herwig::DecayIntegrator NthBase;
217 };
218 
223 template <>
225  : public ClassTraitsBase<Herwig::VectorMesonVectorScalarDecayer> {
227  static string className() { return "Herwig::VectorMesonVectorScalarDecayer"; }
233  static string library() { return "HwVMDecay.so"; }
234 
235 };
236 
239 }
240 
241 #endif /* HERWIG_VectorMesonVectorScalarDecayer_H */
virtual IBPtr clone() const
Make a simple clone of this object.
This class is designed for the decay of a vector meson to a spin-1 particle, either a vector meson or...
bool twoBodyMEcode(const DecayMode &dm, int &mecode, double &coupling) const
Specify the matrix element to be used in the running width calculation.
vector< InvEnergy > _coupling
coupling for a decay
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< int > _outgoingS
PDG codes for the outgoing scalar mesons.
unsigned int _initsize
Initial size of the vectors.
VectorMesonVectorScalarDecayer & operator=(const VectorMesonVectorScalarDecayer &)=delete
Private and non-existent assignment operator.
double me2(const int ichan, const Particle &part, const ParticleVector &decay, MEOption meopt) const
Return the matrix element squared for a given mode and phase-space channel.
MEOption
Enum for the matrix element option.
vector< int > _incoming
PDG codes for the incoming particles.
vector< double > _maxweight
maximum weight for a decay
vector< tPDPtr > tPDVector
static void Init()
Standard Init function used to initialize the interfaces.
Main class for Decayers implementing multi-channel phase space integration.
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
virtual ParticleVector decay(const Particle &parent, const tPDVector &children) const
For a given decay mode and a given particle instance, perform the decay and return the decay products...
virtual void dataBaseOutput(ofstream &os, bool header) const
Output the setup information for the particle database.
vector< Helicity::LorentzPolarizationVector > _vectors[2]
Polarization vectors.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
virtual void doinitrun()
Initialize this object to the begining of the run phase.
-*- C++ -*-
virtual void doinit()
Initialize this object after the setup phase before saving and EventGenerator to disk.
VectorMesonVectorScalarDecayer()
Default constructor.
vector< int > _outgoingV
PDG codes for the outgoing vector.
static ClassDescription< VectorMesonVectorScalarDecayer > initVectorMesonVectorScalarDecayer
Describe a concrete class with persistent data.
vector< PPtr > ParticleVector
virtual int modeNumber(bool &cc, tcPDPtr parent, const tPDVector &children) const
Which of the possible decays is required.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.