herwig is hosted by Hepforge, IPPP Durham
Herwig  7.1.5
VectorMesonPVectorPScalarDecayer.h
1 // -*- C++ -*-
2 //
3 // VectorMesonPVectorPScalarDecayer.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_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 
149 
150 private:
151 
155  vector<InvEnergy> _coupling;
156 
160  vector<int> _incoming;
161 
165  vector<int> _outgoingA;
166 
170  vector<int> _outgoingP;
171 
175  vector<double> _maxweight;
176 
180  unsigned int _initsize;
181 
185  mutable RhoDMatrix _rho;
186 
190  mutable vector<Helicity::LorentzPolarizationVector> _vectors[2];
191 
192 };
193 
194 }
195 
196 
197 #include "ThePEG/Utilities/ClassTraits.h"
198 
199 namespace ThePEG {
200 
207 template <>
210  typedef Herwig::DecayIntegrator NthBase;
211 };
212 
217 template <>
219  : public ClassTraitsBase<Herwig::VectorMesonPVectorPScalarDecayer> {
221  static string className() { return "Herwig::VectorMesonPVectorPScalarDecayer"; }
227  static string library() { return "HwVMDecay.so"; }
228 
229 };
230 
233 }
234 
235 #endif /* HERWIG_VectorMesonPVectorPScalarDecayer_H */
unsigned int _initsize
Initial size of the vectors.
vector< int > _outgoingA
PDG codes for the outgoing pseudo-vector.
static ClassDescription< VectorMesonPVectorPScalarDecayer > initVectorMesonPVectorPScalarDecayer
Describe a concrete class with persistent data.
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