Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // -*- C++ -*-
0002 #ifndef Herwig_HQETStrongDecayer_H
0003 #define Herwig_HQETStrongDecayer_H
0004 //
0005 // This is the declaration of the HQETStrongDecayer class.
0006 //
0007 
0008 #include "Herwig/Decay/DecayIntegrator.h"
0009 #include "Herwig/PDT/HeavyMesonWidthGenerator.fh"
0010 #include "Herwig/Decay/PhaseSpaceMode.h"
0011 #include "ThePEG/Helicity/LorentzPolarizationVector.h"
0012 #include "ThePEG/Helicity/LorentzRank3Tensor.h"
0013 
0014 namespace Herwig {
0015 
0016 using namespace ThePEG;
0017 
0018 /** \ingroup Decay
0019  * The HQETStrongDecayer class implements the strong decays of excited heavy, i.e. bottom and charm mesons, using
0020  * heavy quark effective theory results
0021  *
0022  * @see \ref HQETStrongDecayerInterfaces "The interfaces"
0023  * defined for HQETStrongDecayer.
0024  */
0025 class HQETStrongDecayer: public DecayIntegrator {
0026 
0027   /**
0028    *  The HeavyMesonWidthGenerator is a friend to get access to the couplings
0029    */
0030   friend class HeavyMesonWidthGenerator; 
0031 
0032 public:
0033 
0034   /**
0035    * The default constructor.
0036    */
0037   HQETStrongDecayer();
0038 
0039   /**
0040    * Which of the possible decays is required
0041    * @param cc Is this mode the charge conjugate
0042    * @param parent The decaying particle
0043    * @param children The decay products
0044    */
0045   virtual int modeNumber(bool & cc, tcPDPtr parent,
0046              const tPDVector & children) const;
0047 
0048   /**
0049    * Return the matrix element squared for a given mode and phase-space channel.
0050    * @param ichan The channel we are calculating the matrix element for.
0051    * @param part The decaying Particle.
0052    * @param outgoing The particles produced in the decay
0053    * @param momenta  The momenta of the particles produced in the decay
0054    * @param meopt Option for the calculation of the matrix element
0055    * @return The matrix element squared for the phase-space configuration.
0056    */
0057   double me2(const int ichan,const Particle & part,
0058          const tPDVector & outgoing,
0059          const vector<Lorentz5Momentum> & momenta,
0060          MEOption meopt) const;
0061 
0062   /**
0063    *   Construct the SpinInfos for the particles produced in the decay
0064    */
0065   virtual void constructSpinInfo(const Particle & part,
0066                  ParticleVector outgoing) const;
0067 
0068   /**
0069    * Specify the \f$1\to2\f$ matrix element to be used in the running width calculation.
0070    * @param dm The DecayMode
0071    * @param mecode The code for the matrix element as described
0072    *               in the GenericWidthGenerator class, in this case 7.
0073    * @param coupling The coupling for the matrix element.
0074    * @return True or False if this mode can be handled.
0075    */
0076   bool twoBodyMEcode(const DecayMode & dm, int & mecode, double & coupling) const;
0077 
0078   /**
0079    * Output the setup information for the particle database
0080    * @param os The stream to output the information to
0081    * @param header Whether or not to output the information for MySQL
0082    */
0083   virtual void dataBaseOutput(ofstream & os,bool header) const;
0084 
0085 public:
0086 
0087   /** @name Functions used by the persistent I/O system. */
0088   //@{
0089   /**
0090    * Function used to write out object persistently.
0091    * @param os the persistent output stream written to.
0092    */
0093   void persistentOutput(PersistentOStream & os) const;
0094 
0095   /**
0096    * Function used to read in object persistently.
0097    * @param is the persistent input stream read from.
0098    * @param version the version number of the object when written.
0099    */
0100   void persistentInput(PersistentIStream & is, int version);
0101   //@}
0102 
0103   /**
0104    * The standard Init function used to initialize the interfaces.
0105    * Called exactly once for each class by the class description system
0106    * before the main function starts or
0107    * when this class is dynamically loaded.
0108    */
0109   static void Init();
0110 
0111 protected:
0112 
0113   /** @name Clone Methods. */
0114   //@{
0115   /**
0116    * Make a simple clone of this object.
0117    * @return a pointer to the new object.
0118    */
0119   virtual IBPtr clone() const;
0120 
0121   /** Make a clone of this object, possibly modifying the cloned object
0122    * to make it sane.
0123    * @return a pointer to the new object.
0124    */
0125   virtual IBPtr fullclone() const;
0126   //@}
0127 
0128 protected:
0129 
0130   /** @name Standard Interfaced functions. */
0131   //@{
0132   /**
0133    * Initialize this object after the setup phase before saving and
0134    * EventGenerator to disk.
0135    * @throws InitException if object could not be initialized properly.
0136    */
0137   virtual void doinit();
0138 
0139   /**
0140    * Initialize this object to the begining of the run phase.
0141    */
0142   virtual void doinitrun();
0143   //@}
0144 
0145 private:
0146 
0147   /**
0148    * The assignment operator is private and must never be called.
0149    * In fact, it should not even be implemented.
0150    */
0151   HQETStrongDecayer & operator=(const HQETStrongDecayer &) = delete;
0152   
0153 public:
0154 
0155   /**
0156    *   Set the parameters for a decay mode
0157    */
0158   string setUpDecayMode(string arg);
0159 
0160 private:
0161 
0162   /**
0163    *  Coupings for the decays
0164    */
0165   //@{
0166   /**
0167    *  Pion decay constant
0168    */
0169   Energy fPi_;
0170 
0171   /**
0172    *  Coupling for decays within the \f$(0^-,1^-)\f$ multiplet
0173    */
0174   double g_;
0175 
0176   /**
0177    *  Coupling for decays within the \f$(0^+,1^+)\f$ multiplet
0178    */
0179   double gp_;
0180 
0181   /**
0182    *  Coupling for decays from the \f$(0^+ ,1^+)\f$ multiplet
0183    */
0184   double h_;
0185 
0186   /**
0187    *  Coupling for decays from the \f$(1^+ ,2^+)\f$ multiplet
0188    */
0189   double hp_;
0190 
0191   /**
0192    *  Coupling for decays from the \f$(2^- ,3^-)\f$ multiplet
0193    */
0194   double k_;
0195 
0196   /**
0197    *  Coupling for decays from the \f$(1^- ,2^-)\f$ multiplet
0198    */
0199   double kp_;
0200 
0201   /**
0202    *  Coupling for decays from the 2S \f$(0^-,1^-)\f$ multiplet
0203    */
0204   double gtilde_;
0205   
0206   /**
0207    *  D_1 mixing angle (up and down)
0208    */
0209   double psiL_;
0210 
0211   /**
0212    *  D_1 mixing angle (strange)
0213    */
0214   double psiS_;
0215 
0216   /**
0217    *   \f$\eta-\pi^0 \f$ mixing for isospin violating decays
0218    */
0219   double deltaEta_;
0220   //@}
0221 
0222   /**
0223    *   A momentum scale characterising the convergence of the
0224    *   derivative expansion. We expect Lambda_ ~ 1 GeV.
0225    */
0226   Energy Lambda_;
0227   //@}
0228 
0229   /**
0230    *  Particles etc for thye different modes
0231    */
0232   //@{
0233   /**
0234    * the PDG codes for the incoming particles
0235    */
0236   vector<long> incoming_;
0237 
0238   /**
0239    * the PDG codes for outgoing heavy meson
0240    */
0241   vector<pair<long,long> > outgoing_;
0242 
0243   /**
0244    * the maximum weight for the decay
0245    */
0246   vector<double> maxWeight_;
0247   //@}
0248 
0249   /**
0250    *  Storage of wavefunctions etx
0251    */
0252   //@{
0253   /**
0254    *   Storage of the \f$\rho\f$ matrix
0255    */
0256   mutable RhoDMatrix rho_;
0257 
0258   /**
0259    *  Storage of polarization vectors of the decaying particle
0260    */
0261   mutable vector<Helicity::LorentzPolarizationVector> vecIn_;
0262 
0263   /**
0264    *  Storage of polarization tensors of the decaying particle
0265    */
0266   mutable vector<Helicity::LorentzTensor<double> > tensorIn_;
0267 
0268   /**
0269    *  Storage of polarization tensors of the decaying particle
0270    */
0271   mutable vector<Helicity::LorentzRank3Tensor<double> > spin3In_;
0272 
0273   /**
0274    *  Storage of polarization vectors of the decay product
0275    */
0276   mutable vector<Helicity::LorentzPolarizationVector> vecOut_;
0277   //@}
0278 
0279 };
0280 
0281 }
0282 
0283 #endif /* Herwig_HQETStrongDecayer_H */