Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // -*- C++ -*-
0002 //
0003 // PseudoTensorMesonVectorVectorDecayer.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_PseudoTensorMesonVectorVectorDecayer_H
0010 #define HERWIG_PseudoTensorMesonVectorVectorDecayer_H
0011 //
0012 // This is the declaration of the PseudoTensorMesonVectorVectorDecayer class.
0013 //
0014 #include "Herwig/Decay/DecayIntegrator.h"
0015 #include "ThePEG/Helicity/LorentzPolarizationVector.h"
0016 #include "Herwig/Decay/PhaseSpaceMode.h"
0017 
0018 namespace Herwig {
0019 using namespace ThePEG;
0020 
0021 /** \ingroup Decay
0022  *
0023  *  The <code>PseudoTensorMesonVectorVectorDecayer</code> class handles the decay of
0024  *  a pseudotensor meson to two vector mesons. The matrix element is
0025  *  given by 
0026  * \[f \mathcal{M}=\epsilon_0^{\alpha_1\alpha_2} \epsilon_1^{\beta} \epsilon_2^{\gamma}  \epsilon^{\mu\alpha_1\beta'\gamma'}(p_1-p_2)_{\alpha_2} G_{\beta\beta'} G_{\gamma\gamma'}\f]
0027  * where \f$p_{0,1,2}\f$ are the momenta of the incoming pseudotensor and outgoing vector mesons, respectively,
0028  * and \f$\epsilon_{0}\f$ is the polarization tensor of the incoming pseudotensor meson and $\epslion_{1,2}$ are those of the outgoing
0029  * vector mesons and \f[G_{\mu\nu} = g_{\mu\nu} + \frac1X\left(-p_1\cdot p_2(p_{2\mu}p_{1\nu}_p_{1\mu}p_{2\nu}) + m_2^2p_{1\mu}p_{1\nu} + m_1^2p_{2\mu}p_{2\nu}\right),\f]
0030  * where \f$X=(p_1\cdot p_2)^2-m^2_1m^2_2\f$.
0031  *  The incoming pseudotensor mesons together with their decay products and the coupling 
0032  *  \f$g\f$ can be specified using the interfaces for the class. The maximum weights
0033  *  for the decays can be calculated using the Initialize interface of the
0034  *  DecayIntegrator class or specified using the interface.
0035  *
0036  * @see DecayIntegrator
0037  * @see \ref PseudoTensorMesonVectorVectorDecayerInterfaces "The interfaces"
0038  * defined for PseudoTensorMesonVectorVectorDecayer.
0039  */
0040 class PseudoTensorMesonVectorVectorDecayer: public DecayIntegrator {
0041 
0042 public:
0043 
0044   /**
0045    * Which of the possible decays is required
0046    * @param cc Is this mode the charge conjugate
0047    * @param parent The decaying particle
0048    * @param children The decay products
0049    */
0050   virtual int modeNumber(bool & cc, tcPDPtr parent, 
0051              const tPDVector & children) const;
0052 
0053   /**
0054    * Return the matrix element squared for a given mode and phase-space channel.
0055    * @param ichan The channel we are calculating the matrix element for. 
0056    * @param part The decaying Particle.
0057    * @param outgoing The particles produced in the decay
0058    * @param momenta  The momenta of the particles produced in the decay
0059    * @param meopt Option for the calculation of the matrix element
0060    * @return The matrix element squared for the phase-space configuration.
0061    */
0062   double me2(const int ichan,const Particle & part,
0063          const tPDVector & outgoing,
0064          const vector<Lorentz5Momentum> & momenta,
0065          MEOption meopt) const;
0066 
0067   /**
0068    *   Construct the SpinInfos for the particles produced in the decay
0069    */
0070   virtual void constructSpinInfo(const Particle & part,
0071                  ParticleVector outgoing) const;
0072 
0073   /**
0074    * Specify the \f$1\to2\f$ matrix element to be used in the running width calculation.
0075    * @param dm The DecayMode
0076    * @param mecode The code for the matrix element as described
0077    *               in the GenericWidthGenerator class, in this case 8.
0078    * @param coupling The coupling for the matrix element.
0079    * @return True or False if this mode can be handled.
0080    */
0081   bool twoBodyMEcode(const DecayMode & dm, int & mecode, double & coupling) const;
0082 
0083   /**
0084    * Output the setup information for the particle database
0085    * @param os The stream to output the information to
0086    * @param header Whether or not to output the information for MySQL
0087    */
0088   virtual void dataBaseOutput(ofstream & os,bool header) const;
0089 
0090 public:
0091 
0092   /** @name Functions used by the persistent I/O system. */
0093   //@{
0094   /**
0095    * Function used to write out object persistently.
0096    * @param os the persistent output stream written to.
0097    */
0098   void persistentOutput(PersistentOStream & os) const;
0099 
0100   /**
0101    * Function used to read in object persistently.
0102    * @param is the persistent input stream read from.
0103    * @param version the version number of the object when written.
0104    */
0105   void persistentInput(PersistentIStream & is, int version);
0106   //@}
0107 
0108   /**
0109    * Standard Init function used to initialize the interfaces.
0110    */
0111   static void Init();
0112 
0113 protected:
0114 
0115   /** @name Clone Methods. */
0116   //@{
0117   /**
0118    * Make a simple clone of this object.
0119    * @return a pointer to the new object.
0120    */
0121   virtual IBPtr clone() const {return new_ptr(*this);}
0122 
0123   /** Make a clone of this object, possibly modifying the cloned object
0124    * to make it sane.
0125    * @return a pointer to the new object.
0126    */
0127   virtual IBPtr fullclone() const {return new_ptr(*this);}
0128   //@}
0129   
0130 protected:
0131   
0132   /** @name Standard Interfaced functions. */
0133   //@{
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   PseudoTensorMesonVectorVectorDecayer & operator=(const PseudoTensorMesonVectorVectorDecayer &) = 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    * PDG codes for the incoming particles
0166    */
0167   vector<int> incoming_;
0168 
0169   /**
0170    * PDG codes for the outgoing particles (tensor,scalar)
0171    */
0172   vector<pair<int,int> > outgoing_;
0173 
0174   /**
0175    * coupling for the decay
0176    */
0177   vector<InvEnergy> coupling_;
0178 
0179   /**
0180    * max weight ofr the decay
0181    */
0182   vector<double> maxWeight_;
0183 
0184   /**
0185    *  Storage of polarization tensors (incoming) to try and increase
0186    *  speed
0187    */
0188   mutable vector<Helicity::LorentzTensor<double> > tensors_;
0189 
0190   /**
0191    *  Storage of the polarization vectors
0192    */
0193   mutable vector<Helicity::LorentzPolarizationVector> vectors_[2];
0194 
0195   /**
0196    *   Storage of the \f$\rho\f$ matrix
0197    */
0198   mutable RhoDMatrix rho_;
0199 };
0200 
0201 }
0202 
0203 
0204 #endif /* HERWIG_PseudoTensorMesonVectorVectorDecayer_H */