herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Spin3Meson2PScalarDecayer.h
1// -*- C++ -*-
2//
3// Spin3Meson2PScalarDecayer.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_Spin3Meson2PScalarDecayer_H
10#define HERWIG_Spin3Meson2PScalarDecayer_H
11//
12// This is the declaration of the Spin3Meson2PScalarDecayer class.
13//
14#include "Herwig/Decay/DecayIntegrator.h"
15#include "Herwig/Decay/PhaseSpaceMode.h"
16
17namespace Herwig {
18using namespace ThePEG;
19
43
44public:
45
52 virtual int modeNumber(bool & cc, tcPDPtr parent,
53 const tPDVector & children) const;
54
64 double me2(const int ichan,const Particle & part,
65 const tPDVector & outgoing,
66 const vector<Lorentz5Momentum> & momenta,
67 MEOption meopt) const;
68
72 virtual void constructSpinInfo(const Particle & part,
74
83 bool twoBodyMEcode(const DecayMode & dm, int & mecode, double & coupling) const;
84
90 virtual void dataBaseOutput(ofstream & os,bool header) const;
91
92public:
93
101
107 void persistentInput(PersistentIStream & is, int version);
109
113 static void Init();
114
115protected:
116
123 virtual IBPtr clone() const {return new_ptr(*this);}
124
129 virtual IBPtr fullclone() const {return new_ptr(*this);}
131
132protected:
133
141 virtual void doinit();
142
146 virtual void doinitrun();
148
149private:
150
155
156public:
157
161 string setUpDecayMode(string arg);
162
163private:
164
168 vector<int> incoming_;
169
173 vector<pair<long,long> > outgoing_;
174
178 vector<InvEnergy2> coupling_;
179
183 vector<double> maxWeight_;
184
189 mutable vector<Helicity::LorentzRank3Tensor<double> > tensors_;
190
195
196};
197
198}
199
200#endif /* HERWIG_Spin3Meson2PScalarDecayer_H */
Main class for Decayers implementing multi-channel phase space integration.
MEOption
Enum for the matrix element option.
The Spin3Meson2PScalarDecayer class is designed for the decay of a rank 3 tensor meson to two pseudos...
vector< double > maxWeight_
the maximum weight for the decay
vector< InvEnergy2 > coupling_
the coupling for the decay
vector< Helicity::LorentzRank3Tensor< double > > tensors_
Storage of polarization tensors to try and increase speed.
vector< int > incoming_
the PDG codes for the incoming particles
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
double me2(const int ichan, const Particle &part, const tPDVector &outgoing, const vector< Lorentz5Momentum > &momenta, MEOption meopt) const
Return the matrix element squared for a given mode and phase-space channel.
virtual void dataBaseOutput(ofstream &os, bool header) const
Output the setup information for the particle database.
RhoDMatrix rho_
Storage of the matrix.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
Spin3Meson2PScalarDecayer & operator=(const Spin3Meson2PScalarDecayer &)=delete
Private and non-existent assignment operator.
vector< pair< long, long > > outgoing_
the PDG codes the outgoing particles
virtual IBPtr clone() const
Make a simple clone of this object.
virtual void doinitrun()
Initialize this object to the begining of the run phase.
virtual int modeNumber(bool &cc, tcPDPtr parent, const tPDVector &children) const
Which of the possible decays is required.
static void Init()
Standard Init function used to initialize the interfaces.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
virtual void constructSpinInfo(const Particle &part, ParticleVector outgoing) const
Construct the SpinInfos for the particles produced in the decay.
virtual void doinit()
Initialize this object after the setup phase before saving and EventGenerator to disk.
string setUpDecayMode(string arg)
Set the parameters for a decay mode.
bool twoBodyMEcode(const DecayMode &dm, int &mecode, double &coupling) const
Specify the matrix element to be used in the running width calculation.
-*- C++ -*-
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< tPDPtr > tPDVector
vector< PPtr > ParticleVector
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr