Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // -*- C++ -*-
0002 //
0003 // HardScaleProfile.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_HardScaleProfile_H
0010 #define Herwig_HardScaleProfile_H
0011 //
0012 // This is the declaration of the HardScaleProfile class.
0013 //
0014 
0015 #include "ThePEG/Interface/Interfaced.h"
0016 
0017 namespace Herwig {
0018 
0019 using namespace ThePEG;
0020 
0021 /**
0022  * \ingroup Matchbox
0023  * \author Simon Platzer
0024  *
0025  * \brief HardScaleProfile is the base class for profile scales. A few
0026  * standard choices are provided by this implementation.
0027  *
0028  */
0029 class HardScaleProfile: public Interfaced {
0030 
0031 public:
0032 
0033   /**
0034    * The default constructor.
0035    */
0036   HardScaleProfile();
0037 
0038 public:
0039 
0040   /**
0041    * Return a scale profile towards the hard scale
0042    */
0043   virtual double hardScaleProfile(Energy hard, Energy soft) const;
0044 
0045   /**
0046    * Return true, if this hard scale profile requires an unrestricted
0047    * radiation phase space.
0048    */
0049   virtual bool unrestrictedPhasespace() const;
0050 
0051 public:
0052 
0053   /** @name Functions used by the persistent I/O system. */
0054   //@{
0055   /**
0056    * Function used to write out object persistently.
0057    * @param os the persistent output stream written to.
0058    */
0059   void persistentOutput(PersistentOStream & os) const;
0060 
0061   /**
0062    * Function used to read in object persistently.
0063    * @param is the persistent input stream read from.
0064    * @param version the version number of the object when written.
0065    */
0066   void persistentInput(PersistentIStream & is, int version);
0067   //@}
0068 
0069   /**
0070    * The standard Init function used to initialize the interfaces.
0071    * Called exactly once for each class by the class description system
0072    * before the main function starts or
0073    * when this class is dynamically loaded.
0074    */
0075   static void Init();
0076 
0077 protected:
0078 
0079   /** @name Clone Methods. */
0080   //@{
0081   /**
0082    * Make a simple clone of this object.
0083    * @return a pointer to the new object.
0084    */
0085   virtual IBPtr clone() const;
0086 
0087   /** Make a clone of this object, possibly modifying the cloned object
0088    * to make it sane.
0089    * @return a pointer to the new object.
0090    */
0091   virtual IBPtr fullclone() const;
0092   //@}
0093 
0094 
0095 // If needed, insert declarations of virtual function defined in the
0096 // InterfacedBase class here (using ThePEG-interfaced-decl in Emacs).
0097 
0098 protected:
0099 
0100   /**
0101    * Enumerate the possible profiles
0102    */
0103   enum ProfileTypes {
0104     theta = 0,
0105     /** hard theta cut */
0106     resummation = 1,
0107     /** `resummation' profile with quadratic interpolation */
0108     hfact = 2
0109     /** hfact profile */
0110   };
0111 
0112   /**
0113    * A fixed hard scale to be used instead of the hard scale decided
0114    * for the process in question.
0115    */
0116   Energy theFixedHardScale;
0117 
0118   /**
0119    * A dimensionless width parameter setting the smearing size
0120    * relative to the hard scale; this may have different
0121    * interpretations depending on the profile type chosen.
0122    */
0123   double theProfileRho;
0124 
0125   /**
0126    * The profile type to be used
0127    */
0128   int theProfileType;
0129 
0130 private:
0131 
0132   /**
0133    * The assignment operator is private and must never be called.
0134    * In fact, it should not even be implemented.
0135    */
0136   HardScaleProfile & operator=(const HardScaleProfile &) = delete;
0137 
0138 };
0139 
0140 }
0141 
0142 #endif /* Herwig_HardScaleProfile_H */