herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
ScalarMesonTensorScalarDecayer.h
1// -*- C++ -*-
2//
3// ScalarMesonTensorScalarDecayer.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_ScalarMesonTensorScalarDecayer_H
10#define HERWIG_ScalarMesonTensorScalarDecayer_H
11//
12// This is the declaration of the ScalarMesonTensorScalarDecayer class.
13//
14#include "Herwig/Decay/DecayIntegrator.h"
15#include "Herwig/Decay/PhaseSpaceMode.h"
16#include "ThePEG/Helicity/LorentzTensor.h"
17
18namespace Herwig {
19using namespace Herwig;
20
38
39public:
40
47 virtual int modeNumber(bool & cc, tcPDPtr parent,
48 const tPDVector & children) const;
49
59 double me2(const int ichan,const Particle & part,
60 const tPDVector & outgoing,
61 const vector<Lorentz5Momentum> & momenta,
62 MEOption meopt) const;
63
67 virtual void constructSpinInfo(const Particle & part,
69
78 bool twoBodyMEcode(const DecayMode & dm, int & mecode, double & coupling) const;
79
85 virtual void dataBaseOutput(ofstream & os,bool header) const;
86
87public:
88
96
102 void persistentInput(PersistentIStream & is, int version);
104
108 static void Init();
109
110protected:
111
118 virtual IBPtr clone() const {return new_ptr(*this);}
119
124 virtual IBPtr fullclone() const {return new_ptr(*this);}
126
127protected:
128
136 virtual void doinit();
137
141 virtual void doinitrun();
143
144public:
145
149 string setUpDecayMode(string arg);
150
151private:
152
157
158 private:
159
163 vector<int> incoming_;
164
168 vector<pair<int,int> > outgoing_;
169
173 vector<InvEnergy> coupling_;
174
178 vector<double> maxWeight_;
179
184
188 mutable vector<Helicity::LorentzTensor<double> > tensors_;
189};
190
191}
192
193
194#endif /* HERWIG_ScalarMesonTensorScalarDecayer_H */
Main class for Decayers implementing multi-channel phase space integration.
MEOption
Enum for the matrix element option.
The ScalarMesonTensorScalarDecayer class is designed for the decay of a (pseudo)scalar meson to a ten...
vector< double > maxWeight_
the maximum weight for the decay
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 constructSpinInfo(const Particle &part, ParticleVector outgoing) const
Construct the SpinInfos for the particles produced in the decay.
virtual void doinitrun()
Initialize this object to the begining of the run phase.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
vector< int > incoming_
the PDG code for the incoming particle
virtual void dataBaseOutput(ofstream &os, bool header) const
Output the setup information for the particle database.
string setUpDecayMode(string arg)
Set the parameters for a decay mode.
virtual void doinit()
Initialize this object after the setup phase before saving and EventGenerator to disk.
bool twoBodyMEcode(const DecayMode &dm, int &mecode, double &coupling) const
Specify the matrix element to be used in the running width calculation.
virtual IBPtr clone() const
Make a simple clone of this object.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
vector< Helicity::LorentzTensor< double > > tensors_
Polarization tensors for the decay product.
ScalarMesonTensorScalarDecayer & operator=(const ScalarMesonTensorScalarDecayer &)=delete
Private and non-existent assignment operator.
vector< InvEnergy > coupling_
the coupling for the decay
static void Init()
Standard Init function used to initialize the interfaces.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
virtual int modeNumber(bool &cc, tcPDPtr parent, const tPDVector &children) const
Which of the possible decays is required.
vector< pair< int, int > > outgoing_
the PDG code for the outgoing mesons (tensor then scalar)
-*- C++ -*-
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< tPDPtr > tPDVector
vector< PPtr > ParticleVector
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr