herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
TensorMesonVectorPScalarDecayer.h
1 // -*- C++ -*-
2 //
3 // TensorMesonVectorPScalarDecayer.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_TensorMesonVectorPScalarDecayer_H
10 #define HERWIG_TensorMesonVectorPScalarDecayer_H
11 //
12 // This is the declaration of the TensorMesonVectorPScalarDecayer class.
13 //
14 #include "Herwig/Decay/DecayIntegrator.h"
15 #include "ThePEG/Helicity/LorentzPolarizationVector.h"
16 #include "Herwig/Decay/DecayPhaseSpaceMode.h"
17 
18 namespace Herwig {
19 using namespace ThePEG;
20 
48 
49 public:
50 
55 
62  virtual int modeNumber(bool & cc, tcPDPtr parent,
63  const tPDVector & children) const;
64 
65 
74  double me2(const int ichan,const Particle & part,
75  const ParticleVector & decay, MEOption meopt) const;
76 
85  bool twoBodyMEcode(const DecayMode & dm, int & mecode, double & coupling) const;
86 
92  virtual void dataBaseOutput(ofstream & os,bool header) const;
93 
94 public:
95 
102  void persistentOutput(PersistentOStream & os) const;
103 
109  void persistentInput(PersistentIStream & is, int version);
111 
115  static void Init();
116 
117 protected:
118 
125  virtual IBPtr clone() const {return new_ptr(*this);}
126 
131  virtual IBPtr fullclone() const {return new_ptr(*this);}
133 
134 protected:
135 
138 
144  virtual void doinit();
145 
149  virtual void doinitrun();
151 
152 private:
153 
158 
159 private:
160 
164  vector<int> _incoming;
165 
169  vector<int> _outgoingV;
170 
174  vector<int> _outgoingP;
175 
179  vector<InvEnergy2> _coupling;
180 
184  vector<double> _maxweight;
185 
189  unsigned int _initsize;
190 
195  mutable vector<Helicity::LorentzTensor<double> > _tensors;
196 
200  mutable vector<Helicity::LorentzPolarizationVector> _vectors;
201 
205  mutable RhoDMatrix _rho;
206 };
207 
208 }
209 
210 
211 #endif /* HERWIG_TensorMesonVectorPScalarDecayer_H */
virtual IBPtr clone() const
Make a simple clone of this object.
The TensorMesonVectorPScalarDecayer class handles the decay of a tensor meson to a vector and a pseud...
vector< InvEnergy2 > _coupling
coupling for the decay
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< double > _maxweight
max weight ofr the decay
vector< int > _outgoingV
PDG codes for the outgoing vector.
vector< Helicity::LorentzTensor< double > > _tensors
Storage of polarization tensors to try and increase speed.
vector< int > _outgoingP
PDG codes for the outgoing pseudoscalar.
MEOption
Enum for the matrix element option.
vector< tPDPtr > tPDVector
vector< int > _incoming
PDG codes for the incoming particles.
vector< Helicity::LorentzPolarizationVector > _vectors
Storage of the polarization vectors.
Main class for Decayers implementing multi-channel phase space integration.
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
-*- C++ -*-
vector< PPtr > ParticleVector
unsigned int _initsize
Initial size of the vectors.