Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // -*- C++ -*-
0002 #ifndef Herwig_KKPiCurrent_H
0003 #define Herwig_KKPiCurrent_H
0004 //
0005 // This is the declaration of the KKPiCurrent class.
0006 //
0007 
0008 #include "WeakCurrent.h"
0009 
0010 namespace Herwig {
0011 
0012 using namespace ThePEG;
0013 
0014 /**
0015  * Here is the documentation of the KKPiCurrent class.
0016  *
0017  * @see \ref KKPiCurrentInterfaces "The interfaces"
0018  * defined for KKPiCurrent.
0019  */
0020 class KKPiCurrent: public WeakCurrent {
0021 
0022 public:
0023   
0024   /**
0025    * The default constructor.
0026    */
0027   KKPiCurrent();
0028 
0029   /** @name Methods for the construction of the phase space integrator. */
0030   //@{
0031   /**
0032    * Complete the construction of the decay mode for integration.classes inheriting
0033    * from this one.
0034    * This method is purely virtual and must be implemented in the classes inheriting
0035    * from WeakCurrent.
0036    * @param icharge   The total charge of the outgoing particles in the current.
0037    * @param resonance If specified only include terms with this particle
0038    * @param flavour Information on the required flavours of the quarks
0039    * @param imode     The mode in the current being asked for.
0040    * @param mode      The phase space mode for the integration
0041    * @param iloc      The location of the of the first particle from the current in
0042    *                  the list of outgoing particles.
0043    * @param ires      The location of the first intermediate for the current.
0044    * @param phase     The prototype phase space channel for the integration.
0045    * @param upp       The maximum possible mass the particles in the current are
0046    *                  allowed to have.
0047    * @return Whether the current was sucessfully constructed.
0048    */
0049   virtual bool createMode(int icharge, tcPDPtr resonance,
0050               FlavourInfo flavour,
0051               unsigned int imode,PhaseSpaceModePtr mode,
0052               unsigned int iloc,int ires,
0053               PhaseSpaceChannel phase, Energy upp );
0054 
0055   /**
0056    * The particles produced by the current. This just returns the two pseudoscalar
0057    * mesons and the photon.
0058    * @param icharge The total charge of the particles in the current.
0059    * @param imode The mode for which the particles are being requested
0060    * @param iq The PDG code for the quark
0061    * @param ia The PDG code for the antiquark
0062    * @return The external particles for the current.
0063    */
0064   virtual tPDVector particles(int icharge, unsigned int imode, int iq, int ia);
0065   //@}
0066 
0067   /**
0068    * Hadronic current. This method is purely virtual and must be implemented in
0069    * all classes inheriting from this one.
0070    * @param resonance If specified only include terms with this particle
0071    * @param flavour Information on the required flavours of the quarks
0072    * @param imode The mode
0073    * @param ichan The phase-space channel the current is needed for.
0074    * @param scale The invariant mass of the particles in the current.
0075    * @param outgoing The particles produced in the decay
0076    * @param momenta  The momenta of the particles produced in the decay
0077    * @param meopt Option for the calculation of the matrix element
0078    * @return The current. 
0079    */
0080   virtual vector<LorentzPolarizationVectorE> 
0081   current(tcPDPtr resonance,
0082       FlavourInfo flavour,
0083       const int imode, const int ichan,Energy & scale,
0084       const tPDVector & outgoing,
0085       const vector<Lorentz5Momentum> & momenta,
0086       DecayIntegrator::MEOption meopt) const;
0087 
0088   /**
0089    * Accept the decay. Checks the particles are the allowed mode.
0090    * @param id The id's of the particles in the current.
0091    * @return Can this current have the external particles specified.
0092    */
0093   virtual bool accept(vector<int> id);
0094 
0095   /**
0096    * Return the decay mode number for a given set of particles in the current. 
0097    * @param id The id's of the particles in the current.
0098    * @return The number of the mode
0099    */
0100   virtual unsigned int decayMode(vector<int> id);
0101 
0102   /**
0103    * Output the setup information for the particle database
0104    * @param os The stream to output the information to
0105    * @param header Whether or not to output the information for MySQL
0106    * @param create Whether or not to add a statement creating the object
0107    */
0108   virtual void dataBaseOutput(ofstream & os,bool header,bool create) const;
0109 
0110 public:
0111 
0112   /** @name Functions used by the persistent I/O system. */
0113   //@{
0114   /**
0115    * Function used to write out object persistently.
0116    * @param os the persistent output stream written to.
0117    */
0118   void persistentOutput(PersistentOStream & os) const;
0119 
0120   /**
0121    * Function used to read in object persistently.
0122    * @param is the persistent input stream read from.
0123    * @param version the version number of the object when written.
0124    */
0125   void persistentInput(PersistentIStream & is, int version);
0126   //@}
0127 
0128   /**
0129    * The standard Init function used to initialize the interfaces.
0130    * Called exactly once for each class by the class description system
0131    * before the main function starts or
0132    * when this class is dynamically loaded.
0133    */
0134   static void Init();
0135 
0136 protected:
0137 
0138   /** @name Clone Methods. */
0139   //@{
0140   /**
0141    * Make a simple clone of this object.
0142    * @return a pointer to the new object.
0143    */
0144   virtual IBPtr clone() const;
0145 
0146   /** Make a clone of this object, possibly modifying the cloned object
0147    * to make it sane.
0148    * @return a pointer to the new object.
0149    */
0150   virtual IBPtr fullclone() const;
0151   //@}
0152 
0153 protected:
0154   
0155   /**
0156    * Initialize this object after the setup phase before saving an
0157    * EventGenerator to disk.
0158    * @throws InitException if object could not be initialized properly.
0159    */
0160   virtual void doinit();
0161 
0162 private:
0163 
0164   /**
0165    * The assignment operator is private and must never be called.
0166    * In fact, it should not even be implemented.
0167    */
0168   KKPiCurrent & operator=(const KKPiCurrent &) = delete;
0169 
0170 private:
0171 
0172   /**
0173    *  The masses of the intermediate resonances for the isoscalar piece
0174    */
0175   vector<Energy> isoScalarMasses_;
0176   
0177   /**
0178    *  The widths of the intermediate resonances for the isoscalar piece
0179    */
0180   vector<Energy> isoScalarWidths_;
0181 
0182   /**
0183    *  The masses of the intermediate resonances for the isovector piece
0184    */
0185   vector<Energy> isoVectorMasses_;
0186   
0187   /**
0188    *  The widths of the intermediate resonances for the isovector piece
0189    */
0190   vector<Energy> isoVectorWidths_;
0191 
0192   /**
0193    *   \f$K^*\f$ couplings
0194    */
0195   //@{
0196   /**
0197    *  Amplitudes of the isoscalar couplings
0198    */
0199   vector<InvEnergy> isoScalarKStarAmp_;
0200 
0201   /**
0202    *  Amplitudes of the isovector couplings
0203    */
0204   vector<InvEnergy> isoVectorKStarAmp_;
0205 
0206   /**
0207    *  Phase of the isoscalar couplings
0208    */
0209   vector<double> isoScalarKStarPhase_;
0210 
0211   /**
0212    * Phase of the isovector couplings
0213    */
0214   vector<double> isoVectorKStarPhase_;
0215 
0216   /**
0217    *  Isoscalar couplings
0218    */
0219   vector<complex<InvEnergy> > isoScalarKStarCoup_;
0220 
0221   /**
0222    *  Isovector couplings
0223    */
0224   vector<complex<InvEnergy> > isoVectorKStarCoup_;
0225   //@}
0226 
0227   /**
0228    *  Coupling for the \f$K*\f$ to \f$K\pi\f$
0229    */
0230   double gKStar_;
0231   
0232   /**
0233    *   Mass of the \f$K^{*+}\f$
0234    */
0235   Energy mKStarP_;
0236 
0237   /**
0238    *   Mass of the \f$K^{*0}\f$
0239    */
0240   Energy mKStar0_;
0241 
0242   /**
0243    *   Width of the \f$K^{*+}\f$
0244    */
0245   Energy wKStarP_;
0246 
0247   /**
0248    *   Width of the \f$K^{*0}\f$
0249    */
0250   Energy wKStar0_;
0251 };
0252 
0253 }
0254 
0255 #endif /* Herwig_KKPiCurrent_H */