Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // -*- C++ -*-
0002 //
0003 // SMWWWWVertex.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_SMWWWWVertex_H
0010 #define HERWIG_SMWWWWVertex_H
0011 //
0012 // This is the declaration of the SMWWWWVertex class.
0013 //
0014 #include "ThePEG/Helicity/Vertex/Vector/VVVVVertex.h"
0015 #include "Herwig/Models/StandardModel/StandardModel.h"
0016 #include "ThePEG/PDT/EnumParticles.h"
0017 
0018 namespace Herwig {
0019 using namespace ThePEG;
0020     
0021 /** \ingroup Helicity
0022  *
0023  *  The SMWWWWVertex class is the implementation of the
0024  *  coupling of four electroweak gauge bosons in the SM. 
0025  *  It inherits from VVVVVertex nad implements the setCoupling member.
0026  *
0027  *  @see VVVVVVertex
0028  *  @see VertexBase
0029  */
0030 class SMWWWWVertex: public VVVVVertex {
0031   
0032 public:
0033   
0034   /**
0035    * Default constructor.
0036    */
0037   SMWWWWVertex();
0038   
0039   /** @name Functions used by the persistent I/O system. */
0040   //@{
0041   /**
0042    * Function used to write out object persistently.
0043    * @param os the persistent output stream written to.
0044    */
0045   void persistentOutput(PersistentOStream & os) const;
0046 
0047   /**
0048    * Function used to read in object persistently.
0049    * @param is the persistent input stream read from.
0050    * @param version the version number of the object when written.
0051    */
0052   void persistentInput(PersistentIStream & is, int version);
0053   //@}
0054   
0055   /**
0056    * Standard Init function used to initialize the interfaces.
0057    */
0058   static void Init();
0059   
0060   /**
0061    * Calculate the couplings. 
0062    * @param q2 The scale \f$q^2\f$ for the coupling at the vertex.
0063    * @param part1 The ParticleData pointer for the first  particle.
0064    * @param part2 The ParticleData pointer for the second particle.
0065    * @param part3 The ParticleData pointer for the third  particle.
0066    * @param part4 The ParticleData pointer for the fourth particle.
0067    */
0068   virtual void setCoupling(Energy2 q2,tcPDPtr part1,tcPDPtr part2,tcPDPtr part3,
0069                tcPDPtr part4);
0070   
0071 protected:
0072   
0073   /** @name Clone Methods. */
0074   //@{
0075   /**
0076    * Make a simple clone of this object.
0077    * @return a pointer to the new object.
0078    */
0079   virtual IBPtr clone() const {return new_ptr(*this);}
0080 
0081   /** Make a clone of this object, possibly modifying the cloned object
0082    * to make it sane.
0083    * @return a pointer to the new object.
0084    */
0085   virtual IBPtr fullclone() const {return new_ptr(*this);}
0086   //@}
0087 
0088 protected:
0089   
0090   /** @name Standard Interfaced functions. */
0091   //@{
0092   /**
0093    * Initialize this object after the setup phase before saving and
0094    * EventGenerator to disk.
0095    * @throws InitException if object could not be initialized properly.
0096    */
0097   virtual void doinit();
0098   //@}
0099   
0100 private:
0101   
0102   /**
0103    * Private and non-existent assignment operator.
0104    */
0105   SMWWWWVertex & operator=(const SMWWWWVertex &) = delete;
0106 
0107   /**
0108    *  Intermediate particles
0109    */
0110   //@{
0111   /**
0112    * The ParticleData pointer for the photon
0113    */
0114   tcPDPtr _gamma;
0115 
0116   /**
0117    * The ParticleData pointer for the \f$Z^0\f$ boson.
0118    */
0119   tcPDPtr _Z0;
0120 
0121   /**
0122    * The ParticleData pointer for the \f$W^+\f$ boson.
0123    */
0124   tcPDPtr _wplus;
0125 
0126   /**
0127    * The ParticleData pointer for the \f$W^-\f$ boson.
0128    */
0129   tcPDPtr _wminus;
0130   //@}
0131 
0132   /**
0133    * Storage of the couplings.
0134    */
0135   //@{
0136   /**
0137    *  The last value of the electroweak coupling calculated.
0138    */
0139   Complex _couplast;
0140 
0141   /**
0142    *  The scale \f$q^2\f$ at which the coupling was last evaluated.
0143    */
0144   Energy2 _q2last;
0145 
0146   /**
0147    *  The factors for the different bosons.
0148    */
0149   vector<double> _vfact;
0150 
0151   /**
0152    *  \f$\sin^2\theta_W\f$.
0153    */
0154   double _sw2;
0155 
0156   /**
0157    *  \f$\cos^2\theta_W\f$.
0158    */
0159   double _cw2;
0160   //@}
0161 };
0162  
0163 }
0164 
0165 #endif /* HERWIG_SMWWWWVertex_H */