herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
PScalarVectorVectorDecayer.h
1// -*- C++ -*-
2//
3// PScalarVectorVectorDecayer.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_PScalarVectorVectorDecayer_H
10#define HERWIG_PScalarVectorVectorDecayer_H
11// This is the declaration of the PScalarVectorVectorDecayer class.
12#include "Herwig/Decay/PhaseSpaceMode.h"
13#include "Herwig/Decay/DecayIntegrator.h"
14#include "ThePEG/Helicity/LorentzPolarizationVector.h"
15
16namespace Herwig {
17using namespace ThePEG;
18
51
52public:
53
60 virtual int modeNumber(bool & cc, tcPDPtr parent,
61 const tPDVector & children) const;
62
72 double me2(const int ichan,const Particle & part,
73 const tPDVector & outgoing,
74 const vector<Lorentz5Momentum> & momenta,
75 MEOption meopt) const;
76
80 virtual void constructSpinInfo(const Particle & part,
82
91 bool twoBodyMEcode(const DecayMode & dm, int & mecode, double & coupling) const;
92
98 virtual void dataBaseOutput(ofstream & os,bool header) const;
99
100public:
101
109
115 void persistentInput(PersistentIStream & is, int version);
117
121 static void Init();
122
123protected:
124
131 virtual IBPtr clone() const {return new_ptr(*this);}
132
137 virtual IBPtr fullclone() const {return new_ptr(*this);}
139
140protected:
141
149 virtual void doinit();
150
154 virtual void doinitrun();
156
157private:
158
163
164public:
165
169 string setUpDecayMode(string arg);
170
171private:
172
176 vector<long> incoming_;
177
181 vector<pair<long,long> > outgoing_;
182
186 vector<InvEnergy> coupling_;
187
191 vector<double> maxweight_;
192
197
201 mutable vector<Helicity::LorentzPolarizationVector> vectors_[2];
202};
203
204}
205
206
207#endif /* HERWIG_PScalarVectorVectorDecayer_H */
Main class for Decayers implementing multi-channel phase space integration.
MEOption
Enum for the matrix element option.
The PScalarVectorVectorDecayer class is designed to perform the decay of a pseudoscalar meson to two ...
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
vector< pair< long, long > > outgoing_
the PDG code for the outgoing particles
virtual void constructSpinInfo(const Particle &part, ParticleVector outgoing) const
Construct the SpinInfos for the particles produced in the decay.
vector< double > maxweight_
the maximum weight for the decay
virtual void dataBaseOutput(ofstream &os, bool header) const
Output the setup information for the particle database.
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 doinit()
Initialize this object after the setup phase before saving and EventGenerator to disk.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
vector< InvEnergy > coupling_
the coupling for the decay, .
bool twoBodyMEcode(const DecayMode &dm, int &mecode, double &coupling) const
Specify the matrix element to be used in the running width calculation.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
virtual int modeNumber(bool &cc, tcPDPtr parent, const tPDVector &children) const
Which of the possible decays is required.
PScalarVectorVectorDecayer & operator=(const PScalarVectorVectorDecayer &)=delete
Private and non-existent assignment operator.
vector< long > incoming_
the PDG code for the incoming particle
vector< Helicity::LorentzPolarizationVector > vectors_[2]
Polarization vectors for the decay products.
virtual IBPtr clone() const
Make a simple clone of this object.
string setUpDecayMode(string arg)
Set the parameters for a decay mode.
virtual void doinitrun()
Initialize this object to the begining of the run phase.
static void Init()
Standard Init function used to initialize the interfaces.
-*- C++ -*-
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< tPDPtr > tPDVector
vector< PPtr > ParticleVector
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr