herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
TensorMeson2PScalarDecayer.h
1 // -*- C++ -*-
2 //
3 // TensorMeson2PScalarDecayer.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_TensorMeson2PScalarDecayer_H
10 #define HERWIG_TensorMeson2PScalarDecayer_H
11 //
12 // This is the declaration of the TensorMeson2PScalarDecayer class.
13 //
14 #include "Herwig/Decay/DecayIntegrator.h"
15 #include "Herwig/Decay/DecayPhaseSpaceMode.h"
16 
17 namespace Herwig {
18 using namespace ThePEG;
19 
47 
48 public:
49 
54 
61  virtual int modeNumber(bool & cc, tcPDPtr parent,
62  const tPDVector & children) const;
63 
72  double me2(const int ichan,const Particle & part,
73  const ParticleVector & decay, MEOption meopt) const;
74 
83  bool twoBodyMEcode(const DecayMode & dm, int & mecode, double & coupling) const;
84 
90  virtual void dataBaseOutput(ofstream & os,bool header) const;
91 
92 public:
93 
100  void persistentOutput(PersistentOStream & os) const;
101 
107  void persistentInput(PersistentIStream & is, int version);
109 
113  static void Init();
114 
115 protected:
116 
123  virtual IBPtr clone() const {return new_ptr(*this);}
124 
129  virtual IBPtr fullclone() const {return new_ptr(*this);}
131 
132 protected:
133 
141  virtual void doinit();
142 
146  virtual void doinitrun();
148 
149 private:
150 
154  TensorMeson2PScalarDecayer & operator=(const TensorMeson2PScalarDecayer &) = delete;
155 
156 private:
157 
161  vector<int> _incoming;
162 
166  vector<int> _outgoing1;
167 
171  vector<int> _outgoing2;
172 
176  vector<InvEnergy> _coupling;
177 
181  vector<double> _maxweight;
182 
186  unsigned int _initsize;
187 
192  mutable vector<Helicity::LorentzTensor<double> > _tensors;
193 
197  mutable RhoDMatrix _rho;
198 
199 };
200 
201 }
202 
203 
204 #endif /* HERWIG_TensorMeson2PScalarDecayer_H */
vector< Helicity::LorentzTensor< double > > _tensors
Storage of polarization tensors to try and increase speed.
The TensorMeson2PScalarDecayer class is designed for the decay of a tensor meson to two pseudoscalars...
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< int > _outgoing2
the PDG codes for second outgoing particle
MEOption
Enum for the matrix element option.
vector< InvEnergy > _coupling
the coupling for the decay
vector< tPDPtr > tPDVector
vector< int > _incoming
the PDG codes for the incoming particles
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< double > _maxweight
the maximum weight for the decay
vector< int > _outgoing1
the PDG codes for first outgoing particle
RhoDMatrix _rho
Storage of the matrix.
-*- C++ -*-
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
vector< PPtr > ParticleVector
unsigned int _initsize
Initial size of the vectors.