herwig is hosted by Hepforge, IPPP Durham
Herwig  7.1.5
SatPDF.h
1 // -*- C++ -*-
2 //
3 // SatPDF.h is a part of Herwig - A multi-purpose Monte Carlo event generator
4 // Copyright (C) 2002-2017 The Herwig Collaboration
5 //
6 // Herwig is licenced under version 3 of the GPL, see COPYING for details.
7 // Please respect the MCnet academic guidelines, see GUIDELINES for details.
8 //
9 #ifndef HERWIG_SatPDF_H
10 #define HERWIG_SatPDF_H
11 //
12 // This is the declaration of the SatPDF class.
13 //
14 
15 #include "ThePEG/PDF/PDFBase.h"
16 
17 namespace Herwig {
18 using namespace ThePEG;
30 class SatPDF: public PDFBase {
31 
32 public:
33 
39  inline SatPDF() : thePDF(PDFPtr()), theX0(1E-4), theExp(0.0) {}
40 
44  inline SatPDF(const SatPDF & x) :
45  PDFBase(x), thePDF(x.thePDF), theX0(x.theX0), theExp(x.theExp) {}
46 
50  virtual ~SatPDF();
52 
53 public:
54 
61  virtual bool canHandleParticle(tcPDPtr particle) const;
62 
67  virtual cPDVector partons(tcPDPtr particle) const;
68 
75  virtual double xfx(tcPDPtr particle, tcPDPtr parton, Energy2 partonScale,
76  double x, double eps=0.0, Energy2 particleScale = ZERO) const;
77 
87  virtual double xfvx(tcPDPtr particle, tcPDPtr parton, Energy2 partonScale,
88  double x, double eps=0.0, Energy2 particleScale = ZERO) const;
90 
91 
92 public:
93 
100  void persistentOutput(PersistentOStream & os) const;
101 
107  void persistentInput(PersistentIStream & is, int version);
109 
116  static void Init();
117 
118 protected:
119 
126  inline virtual IBPtr clone() const { return new_ptr(*this); }
127 
132  inline virtual IBPtr fullclone() const { return new_ptr(*this); }
134 
135 
136 // If needed, insert declarations of virtual function defined in the
137 // InterfacedBase class here (using ThePEG-interfaced-decl in Emacs).
138 
139 
140 private:
141 
147 
152  SatPDF & operator=(const SatPDF &) = delete;
153 
158 
163  double theX0;
164 
168  double theExp;
169 
170 };
171 
172 }
173 
174 #include "ThePEG/Utilities/ClassTraits.h"
175 
176 namespace ThePEG {
177 
182 template <>
183 struct BaseClassTrait<Herwig::SatPDF,1> {
185  typedef PDFBase NthBase;
186 };
187 
190 template <>
191 struct ClassTraits<Herwig::SatPDF>
192  : public ClassTraitsBase<Herwig::SatPDF> {
194  static string className() { return "Herwig::SatPDF"; }
202  static string library() { return "HwSatPDF.so"; }
203 };
204 
207 }
208 
209 #ifndef HERWIG_TEMPLATES_IN_CC_FILE
210 // #include "SatPDF.tcc"
211 #endif
212 
213 #endif /* HERWIG_SatPDF_H */
static ClassDescription< SatPDF > initSatPDF
The static object used to initialize the description of this class.
Definition: SatPDF.h:146
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
Definition: SatPDF.h:132
double theX0
x from where the extrapolation f(x) = f(theX0) * (x/theX0)**theExp is used for the pdf&#39;s...
Definition: SatPDF.h:163
PDFPtr thePDF
pointer to the underlying ThePEG::PDFBase object, we are modifying.
Definition: SatPDF.h:157
SatPDF()
The default constructor.
Definition: SatPDF.h:39
virtual IBPtr clone() const
Make a simple clone of this object.
Definition: SatPDF.h:126
double theExp
the exponent of the pdf extrapolation for small x (x < theX0).
Definition: SatPDF.h:168
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
SatPDF(const SatPDF &x)
The copy constructor.
Definition: SatPDF.h:44
The SatPDF class defines a modified pdf which uses an existing pdf object to add modifications like r...
Definition: SatPDF.h:30
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr
vector< cPDPtr > cPDVector
-*- C++ -*-
ThePEG::Ptr< PDFBase >::pointer PDFPtr
constexpr ZeroUnit ZERO