Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // -*- C++ -*-
0002 //
0003 // BtoSGammaFlatEnergy.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_BtoSGammaFlatEnergy_H
0010 #define HERWIG_BtoSGammaFlatEnergy_H
0011 //
0012 // This is the declaration of the BtoSGammaFlatEnergy class.
0013 //
0014 
0015 #include "BtoSGammaHadronicMass.h"
0016 
0017 namespace Herwig {
0018 
0019 using namespace ThePEG;
0020 
0021 /** \ingroup Decay
0022  *
0023  * The BtoSGammaFlatEnergy class is a model of the hadronic mass 
0024  * is \f$B\to s\gamma\f$ decays
0025  * which produces a flat photon energy spectrum and as such is only intended for
0026  * testing purposes.
0027  *
0028  * @see BtoSGammaHadronicMass
0029  */
0030 class BtoSGammaFlatEnergy: public BtoSGammaHadronicMass {
0031 
0032 public:
0033 
0034   /**
0035    * Return the hadronic mass.
0036    * @param mb The mass of the decaying B meson.
0037    * @param mquark The minimum mass of the hadronic system based on the consistuent quark
0038    * masses.
0039    * @return The hadronic mass
0040    */
0041   virtual Energy hadronicMass(Energy mb, Energy mquark);
0042 
0043   /**
0044    * Output the setup information for the particle database
0045    * @param os The stream to output the information to
0046    * @param header Whether or not to output the information for MySQL
0047    * @param create Whether or not to add a statement creating the object
0048    */
0049   virtual void dataBaseOutput(ofstream & os,bool header,bool create) const;
0050 
0051 public:
0052 
0053   /**
0054    * The standard Init function used to initialize the interfaces.
0055    * Called exactly once for each class by the class description system
0056    * before the main function starts or
0057    * when this class is dynamically loaded.
0058    */
0059   static void Init();
0060 
0061 protected:
0062 
0063   /** @name Clone Methods. */
0064   //@{
0065   /**
0066    * Make a simple clone of this object.
0067    * @return a pointer to the new object.
0068    */
0069   virtual IBPtr clone() const {return new_ptr(*this);}
0070 
0071   /** Make a clone of this object, possibly modifying the cloned object
0072    * to make it sane.
0073    * @return a pointer to the new object.
0074    */
0075   virtual IBPtr fullclone() const {return new_ptr(*this);}
0076   //@}
0077 
0078 private:
0079 
0080   /**
0081    * The assignment operator is private and must never be called.
0082    * In fact, it should not even be implemented.
0083    */
0084   BtoSGammaFlatEnergy & operator=(const BtoSGammaFlatEnergy &) = delete;
0085 
0086 };
0087 
0088 }
0089 
0090 #endif /* HERWIG_BtoSGammaFlatEnergy_H */