PYTHIA  8.303
Public Member Functions | List of all members
LHAPDF Class Reference

LHAPDF plugin interface class. More...

#include <PartonDistributions.h>

Inheritance diagram for LHAPDF:
PDF

Public Member Functions

 LHAPDF (int idIn, string pSet, Info *infoPtrIn)
 Constructor and destructor. More...
 
 ~LHAPDF ()
 Destructor. More...
 
bool isSetup ()
 Confirm that PDF has been set up.
 
void newValenceContent (int idVal1In, int idVal2In)
 Dynamic choice of meson valence flavours for pi0, K0S, K0L, Pomeron.
 
void setExtrapolate (bool extrapolate)
 Allow extrapolation beyond boundaries.
 
double xf (int id, double x, double Q2)
 Read out parton density.
 
double xfVal (int id, double x, double Q2)
 Read out valence and sea part of parton densities.
 
double xfSea (int id, double x, double Q2)
 Only sea part of parton densities. More...
 
bool insideBounds (double x, double Q2)
 Check whether x and Q2 values fall inside the fit bounds (LHAPDF6 only).
 
double alphaS (double Q2)
 Access the running alpha_s of a PDF set (LHAPDF6 only).
 
double mQuarkPDF (int idIn)
 Return quark masses used in the PDF fit (LHAPDF6 only).
 
int nMembers ()
 Return quark masses used in the PDF fit (LHAPDF6 only).
 
void calcPDFEnvelope (int idNow, double xNow, double Q2Now, int valSea)
 Calculate PDF envelope.
 
void calcPDFEnvelope (pair< int, int > idNows, pair< double, double > xNows, double Q2Now, int valSea)
 
PDFEnvelope getPDFEnvelope ()
 
- Public Member Functions inherited from PDF
 PDF (int idBeamIn=2212)
 Constructor.
 
virtual ~PDF ()
 Destructor.
 
virtual double gammaPDFxDependence (int, double)
 Approximate photon PDFs by decoupling the scale and x-dependence.
 
virtual double gammaPDFRefScale (int)
 Provide the reference scale for logarithmic Q^2 evolution for photons.
 
virtual int sampleGammaValFlavor (double)
 Sample the valence content for photons.
 
virtual double xfIntegratedTotal (double)
 The total x-integrated PDFs. Relevant for MPIs with photon beams.
 
virtual double xGamma ()
 Return the sampled value for x_gamma.
 
virtual void xPom (double=-1.0)
 Keep track of pomeron momentum fraction.
 
virtual double xfFlux (int, double, double)
 Return accurate and approximated photon fluxes and PDFs.
 
virtual double xfApprox (int, double, double)
 
virtual double xfGamma (int, double, double)
 
virtual double intFluxApprox ()
 
virtual bool hasApproxGammaFlux ()
 
virtual double getXmin ()
 Return the kinematical limits and sample Q2 and x.
 
virtual double getXhadr ()
 
virtual double sampleXgamma (double)
 
virtual double sampleQ2gamma (double)
 
virtual double xfMax (int id, double x, double Q2)
 Normal PDFs unless gamma inside lepton -> an overestimate for sampling.
 
virtual double xfSame (int id, double x, double Q2)
 Normal PDFs unless gamma inside lepton -> Do not sample x_gamma.
 
virtual void setVMDscale (double=1.)
 Allow for new scaling factor for VMD PDFs.
 

Additional Inherited Members

- Protected Member Functions inherited from PDF
void setValenceContent ()
 Resolve valence content for assumed meson. Possibly modified later. More...
 
void printErr (string errMsg, Info *infoPtr=0)
 Small routine for error printout, depending on infoPtr existing or not.
 
- Protected Attributes inherited from PDF
int idBeam
 Store relevant quantities.
 
int idBeamAbs
 
int idSav
 
int idVal1
 
int idVal2
 
double xSav
 
double Q2Sav
 
double xu
 
double xd
 
double xs
 
double xubar
 
double xdbar
 
double xsbar
 
double xc
 
double xb
 
double xg
 
double xlepton
 
double xgamma
 
double xuVal
 
double xuSea
 
double xdVal
 
double xdSea
 
bool isSet
 
bool isInit
 
double xsVal
 More valence and sea flavors for photon PDFs.
 
double xcVal
 
double xbVal
 
double xsSea
 
double xcSea
 
double xbSea
 
bool hasGammaInLepton
 True if a photon beam inside a lepton beam, otherwise set false.
 

Detailed Description

LHAPDF plugin interface class.

Constructor & Destructor Documentation

LHAPDF ( int  idIn,
string  pSet,
Info infoPtrIn 
)

Constructor and destructor.

LHAPDF plugin interface.

Constructor.

Determine the plugin library name.

Determine the PDF set and member.

Load the PDF.

~LHAPDF ( )

Destructor.

Delete the PDF.

Member Function Documentation

double xfSea ( int  id,
double  x,
double  Q2 
)
inlinevirtual

Only sea part of parton densities.

Need to update if flavour, x or Q2 changed. Use idSav = 9 to indicate that ALL flavours are up-to-date. Assume that flavour and antiflavour always updated simultaneously.

Hadron beams.

Photon beam.

If a valence parton return only the sea part. Otherwise return the total PDF.

Lepton beam.

Reimplemented from PDF.


The documentation for this class was generated from the following files: