herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
VectorMesonVectorPScalarDecayer.h
1// -*- C++ -*-
2//
3// VectorMesonVectorPScalarDecayer.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_VectorMesonVectorPScalarDecayer_H
10#define HERWIG_VectorMesonVectorPScalarDecayer_H
11// This is the declaration of the VectorMesonVectorPScalarDecayer class.
12
13#include "Herwig/Decay/DecayIntegrator.h"
14#include "Herwig/Decay/PhaseSpaceMode.h"
15#include "ThePEG/Helicity/LorentzPolarizationVector.h"
16
17namespace Herwig {
18
50
51public:
52
57
64 virtual int modeNumber(bool & cc, tcPDPtr parent,
65 const tPDVector & children) const;
66
76 double me2(const int ichan,const Particle & part,
77 const tPDVector & outgoing,
78 const vector<Lorentz5Momentum> & momenta,
79 MEOption meopt) const;
80
84 virtual void constructSpinInfo(const Particle & part,
86
95 bool twoBodyMEcode(const DecayMode & dm, int & mecode, double & coupling) const;
96
102 virtual void dataBaseOutput(ofstream & os,bool header) const;
103
104public:
105
113
119 void persistentInput(PersistentIStream & is, int version);
121
125 static void Init();
126
127protected:
128
135 virtual IBPtr clone() const {return new_ptr(*this);}
136
141 virtual IBPtr fullclone() const {return new_ptr(*this);}
143
144protected:
145
153 virtual void doinit();
154
158 virtual void doinitrun();
160
161private:
162
167
168public:
169
173 string setUpDecayMode(string arg);
174
175private:
176
180 vector<InvEnergy> coupling_;
181
185 vector<long> incoming_;
186
190 vector<pair<long,long> > outgoing_;
191
195 vector<double> maxweight_;
196
201
205 mutable vector<Helicity::LorentzPolarizationVector> vectors_[2];
206
207};
208
209}
210
211
212#endif /* HERWIG_VectorMesonVectorPScalarDecayer_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 another spin-1 particle,...
vector< Helicity::LorentzPolarizationVector > vectors_[2]
Polarization vectors.
VectorMesonVectorPScalarDecayer & operator=(const VectorMesonVectorPScalarDecayer &)=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
vector< pair< long, long > > outgoing_
the PDG codes for the outgoing particles (vector first)
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.
VectorMesonVectorPScalarDecayer()
Default constructor.
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.
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< long > incoming_
the PDG codes for the incoming particle
static void Init()
Standard Init function used to initialize the interfaces.
vector< InvEnergy > coupling_
coupling for a decay
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.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
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.
-*- C++ -*-
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< tPDPtr > tPDVector
vector< PPtr > ParticleVector
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr