herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
VectorMesonVectorVectorDecayer.h
1// -*- C++ -*-
2//
3// VectorMesonVectorVectorDecayer.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_VectorMesonVectorVectorDecayer_H
10#define HERWIG_VectorMesonVectorVectorDecayer_H
11//
12// This is the declaration of the VectorMesonVectorVectorDecayer class.
13//
14#include "Herwig/Decay/DecayIntegrator.h"
15#include "Herwig/Decay/PhaseSpaceMode.h"
16#include "ThePEG/Helicity/LorentzPolarizationVector.h"
17
18namespace Herwig {
19using namespace ThePEG;
20
52
53public:
54
59
66 virtual int modeNumber(bool & cc, tcPDPtr parent,
67 const tPDVector & children) const;
68
77 bool twoBodyMEcode(const DecayMode & dm, int & mecode, double & coupling) const;
78
88 double me2(const int ichan,const Particle & part,
89 const tPDVector & outgoing,
90 const vector<Lorentz5Momentum> & momenta,
91 MEOption meopt) const;
92
96 virtual void constructSpinInfo(const Particle & part,
98
104 virtual void dataBaseOutput(ofstream & os,bool header) const;
105
106public:
107
115
121 void persistentInput(PersistentIStream & is, int version);
123
127 static void Init();
128
129protected:
130
137 virtual IBPtr clone() const {return new_ptr(*this);}
138
143 virtual IBPtr fullclone() const {return new_ptr(*this);}
145
146protected:
147
155 virtual void doinit();
156
160 virtual void doinitrun();
162
163private:
164
169
170public:
171
175 string setUpDecayMode(string arg);
176
177private:
178
182 vector<double> coupling_;
183
187 vector<int> incoming_;
188
192 vector<pair<long,long> > outgoing_;
193
197 vector<double> maxweight_;
198
203
207 mutable vector<Helicity::LorentzPolarizationVector> vectors_[3];
208
209};
210
211}
212
213
214#endif /* HERWIG_VectorMesonVectorVectorDecayer_H */
Main class for Decayers implementing multi-channel phase space integration.
MEOption
Enum for the matrix element option.
This class is designed for the decay of a vector meson to two spin one particles, either other vector...
virtual void dataBaseOutput(ofstream &os, bool header) const
Output the setup information for the particle database.
virtual void doinitrun()
Initialize this object to the begining of the run phase.
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.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
virtual IBPtr clone() const
Make a simple clone of this object.
virtual void constructSpinInfo(const Particle &part, ParticleVector outgoing) const
Construct the SpinInfos for the particles produced in the decay.
string setUpDecayMode(string arg)
Set the parameters for a decay mode.
VectorMesonVectorVectorDecayer & operator=(const VectorMesonVectorVectorDecayer &)=delete
Private and non-existent assignment operator.
virtual void doinit()
Initialize this object after the setup phase before saving and EventGenerator to disk.
vector< double > maxweight_
maximum weight for a decay
VectorMesonVectorVectorDecayer()
Default constructor.
vector< double > coupling_
the coupling for the decay
vector< Helicity::LorentzPolarizationVector > vectors_[3]
Polarization vectors.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
static void Init()
Standard Init function used to initialize the interfaces.
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.
vector< pair< long, long > > outgoing_
the PDG codes for the 1st outgoing particle
bool twoBodyMEcode(const DecayMode &dm, int &mecode, double &coupling) const
Specify the matrix element to be used in the running width calculation.
vector< int > incoming_
the PDG codes for the incoming particles
-*- C++ -*-
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< tPDPtr > tPDVector
vector< PPtr > ParticleVector
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr