Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-06 09:24:04

0001 // -*- C++ -*-
0002 //
0003 // VectorMesonVectorScalarDecayer.h is a part of Herwig - A multi-purpose Monte Carlo event generator
0004 // Copyright (C) 2002-2019 The Herwig Collaboration
0005 //
0006 // Herwig is licenced under version 3 of the GPL, see COPYING for details.
0007 // Please respect the MCnet academic guidelines, see GUIDELINES for details.
0008 //
0009 #ifndef HERWIG_VectorMesonVectorScalarDecayer_H
0010 #define HERWIG_VectorMesonVectorScalarDecayer_H
0011 //
0012 // This is the declaration of the VectorMesonVectorScalarDecayer class.
0013 //
0014 #include "Herwig/Decay/DecayIntegrator.h"
0015 #include "Herwig/Decay/PhaseSpaceMode.h"
0016 #include "ThePEG/Helicity/LorentzPolarizationVector.h"
0017 
0018 namespace Herwig {
0019 using namespace Herwig;
0020 
0021 /** \ingroup Decay
0022  *
0023  *  This class is designed for the decay of a vector meson to a spin-1
0024  *  particle, either a vector meson or a photon, and a scalar meson.
0025  *  The current for the decay is
0026  *
0027  *  \f[\mathcal{M}=g\epsilon_mu\left[ p_V \cdot p_0 \epsilon_V^\mu  
0028  *                     -p_V^\mu \epsilon_V \cdot p_0\right],\f]
0029  *  where \f$\epsilon\f$ is the polarization vector of the decaying vector
0030  *  meson, \f$\epsilon_V\f$ is the polarization vector of the outgoing vector meson,
0031  *  \f$p_0\f$ is the momentum of the decaying particle and \f$p_V\f$ is the momentum
0032  *  of the outgoing vector meson.
0033  *
0034  * @see DecayIntegrator 
0035  * @see \ref VectorMesonVectorScalarDecayerInterfaces "The interfaces"
0036  * defined for VectorMesonVectorScalarDecayer.
0037  * 
0038  *  \author Peter Richardson
0039  * 
0040  */
0041 class VectorMesonVectorScalarDecayer: public DecayIntegrator {
0042 
0043 public:
0044 
0045   /**
0046    * Which of the possible decays is required
0047    * @param cc Is this mode the charge conjugate
0048    * @param parent The decaying particle
0049    * @param children The decay products
0050    */
0051   virtual int modeNumber(bool & cc, tcPDPtr parent, 
0052              const tPDVector & children) const;
0053  
0054   /**
0055    * Return the matrix element squared for a given mode and phase-space channel.
0056    * @param ichan The channel we are calculating the matrix element for. 
0057    * @param part The decaying Particle.
0058    * @param outgoing The particles produced in the decay
0059    * @param momenta  The momenta of the particles produced in the decay
0060    * @param meopt Option for the calculation of the matrix element
0061    * @return The matrix element squared for the phase-space configuration.
0062    */
0063   double me2(const int ichan,const Particle & part,
0064          const tPDVector & outgoing,
0065          const vector<Lorentz5Momentum> & momenta,
0066          MEOption meopt) const;
0067 
0068   /**
0069    *   Construct the SpinInfos for the particles produced in the decay
0070    */
0071   virtual void constructSpinInfo(const Particle & part,
0072                  ParticleVector outgoing) const;
0073 
0074   /**
0075    * Output the setup information for the particle database
0076    * @param os The stream to output the information to
0077    * @param header Whether or not to output the information for MySQL
0078    */
0079   virtual void dataBaseOutput(ofstream & os,bool header) const;
0080 
0081 public:
0082 
0083   /** @name Functions used by the persistent I/O system. */
0084   //@{
0085   /**
0086    * Function used to write out object persistently.
0087    * @param os the persistent output stream written to.
0088    */
0089   void persistentOutput(PersistentOStream & os) const;
0090 
0091   /**
0092    * Function used to read in object persistently.
0093    * @param is the persistent input stream read from.
0094    * @param version the version number of the object when written.
0095    */
0096   void persistentInput(PersistentIStream & is, int version);
0097   //@}
0098 
0099   /**
0100    * Standard Init function used to initialize the interfaces.
0101    */
0102   static void Init();
0103 
0104   /**
0105    * Specify the \f$1\to2\f$ matrix element to be used in the running width calculation.
0106    * @param dm The DecayMode
0107    * @param mecode The code for the matrix element as described
0108    *               in the GenericWidthGenerator class, in this case 4.
0109    * @param coupling The coupling for the matrix element.
0110    * @return True or False if this mode can be handled.
0111    */
0112   bool twoBodyMEcode(const DecayMode & dm, int & mecode, double & coupling) const;
0113 
0114 protected:
0115 
0116   /** @name Clone Methods. */
0117   //@{
0118   /**
0119    * Make a simple clone of this object.
0120    * @return a pointer to the new object.
0121    */
0122   virtual IBPtr clone() const {return new_ptr(*this);}
0123 
0124   /** Make a clone of this object, possibly modifying the cloned object
0125    * to make it sane.
0126    * @return a pointer to the new object.
0127    */
0128   virtual IBPtr fullclone() const {return new_ptr(*this);}
0129   //@}
0130 
0131 protected:
0132 
0133   /** @name Standard Interfaced functions. */
0134   //@{
0135   /**
0136    * Initialize this object after the setup phase before saving and
0137    * EventGenerator to disk.
0138    * @throws InitException if object could not be initialized properly.
0139    */
0140   virtual void doinit();
0141 
0142   /**
0143    * Initialize this object to the begining of the run phase.
0144    */
0145   virtual void doinitrun();
0146   //@}
0147 
0148 private:
0149 
0150   /**
0151    * Private and non-existent assignment operator.
0152    */
0153   VectorMesonVectorScalarDecayer & operator=(const VectorMesonVectorScalarDecayer &) = delete;
0154 
0155 public:
0156 
0157   /**
0158    *   Set the parameters for a decay mode
0159    */
0160   string setUpDecayMode(string arg);
0161 
0162 private:
0163 
0164   /**
0165    * coupling for a decay
0166    */
0167   vector<InvEnergy> coupling_;
0168 
0169   /**
0170    * PDG codes for the incoming particles
0171    */
0172   vector<int> incoming_;
0173 
0174   /**
0175    * PDG codes for the outgoing particles (vector,scalar)
0176    */
0177   vector<pair<int,int> > outgoing_;
0178 
0179   /**
0180    * maximum weight for a decay
0181    */
0182   vector<double> maxWeight_;
0183 
0184   /**
0185    *  Spin density matrix
0186    */
0187   mutable RhoDMatrix rho_;
0188 
0189   /**
0190    *  Polarization vectors
0191    */
0192   mutable vector<Helicity::LorentzPolarizationVector> vectors_[2];
0193 
0194 };
0195 
0196 }
0197 
0198 
0199 #endif /* HERWIG_VectorMesonVectorScalarDecayer_H */