herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
TensorMesonVectorVectorDecayer.h
1 // -*- C++ -*-
2 //
3 // TensorMesonVectorVectorDecayer.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_TensorMesonVectorVectorDecayer_H
10 #define HERWIG_TensorMesonVectorVectorDecayer_H
11 //
12 // This is the declaration of the TensorMesonVectorVectorDecayer class.
13 //
14 #include "Herwig/Decay/DecayIntegrator.h"
15 #include "Herwig/Decay/DecayPhaseSpaceMode.h"
16 #include "ThePEG/Helicity/LorentzTensor.h"
17 
18 namespace Herwig {
19 using namespace ThePEG;
20 
59 
60 public:
61 
66 
73  virtual int modeNumber(bool & cc, tcPDPtr parent,
74  const tPDVector & children) const;
75 
84  double me2(const int ichan,const Particle & part,
85  const ParticleVector & decay, MEOption meopt) const;
86 
95  bool twoBodyMEcode(const DecayMode & dm, int & mecode, double & coupling) const;
96 
102  virtual void dataBaseOutput(ofstream & os,bool header) const;
103 
104 public:
105 
112  void persistentOutput(PersistentOStream & os) const;
113 
119  void persistentInput(PersistentIStream & is, int version);
121 
125  static void Init();
126 
127 protected:
128 
135  virtual IBPtr clone() const {return new_ptr(*this);}
136 
141  virtual IBPtr fullclone() const {return new_ptr(*this);}
143 
144 protected:
145 
153  virtual void doinit();
154 
158  virtual void doinitrun();
160 
161 private:
162 
167 
168 private:
169 
173  vector<int> _incoming;
174 
178  vector<int> _outgoing1;
179 
183  vector<int> _outgoing2;
184 
188  vector<InvEnergy> _coupling;
189 
193  vector<double> _maxweight;
194 
198  unsigned int _initsize;
199 
204  mutable vector<Helicity::LorentzTensor<double> > _tensors;
205 
209  mutable vector<Helicity::LorentzPolarizationVector > _vectors[2];
210 
214  mutable RhoDMatrix _rho;
215 
216 };
217 
218 }
219 
220 #endif /* HERWIG_TensorMesonVectorVectorDecayer_H */
unsigned int _initsize
Initial size of the vectors.
The TensorMesonVectorVectorDecayer class is designed to simulate the decay of a tensor meson to two s...
vector< int > _outgoing1
the PDG codes for the first outgoing particle
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< int > _incoming
the PDG codes for the incoming particles
MEOption
Enum for the matrix element option.
virtual IBPtr clone() const
Make a simple clone of this object.
vector< tPDPtr > tPDVector
Main class for Decayers implementing multi-channel phase space integration.
vector< Helicity::LorentzTensor< double > > _tensors
Storage of polarization tensors to try and increase speed.
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr
vector< double > _maxweight
the maximum weight for the decay
vector< InvEnergy > _coupling
the coupling for the decay
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
-*- C++ -*-
vector< int > _outgoing2
the PDG codes for the second outgoing particle
vector< PPtr > ParticleVector