LHAPDF  6.3.0
Classes | Functions
LHAPDF Namespace Reference

Namespace for all LHAPDF functions and classes. More...

Classes

class  AlphaS
 Calculator interface for computing alpha_s(Q2) in various ways. More...
 
class  AlphaS_Analytic
 Calculate alpha_s(Q2) by an analytic approximation. More...
 
class  AlphaS_Ipol
 
class  AlphaS_ODE
 Solve the differential equation in alphaS using an implementation of RK4. More...
 
class  AlphaSArray
 Internal storage class for alpha_s interpolation grids. More...
 
class  AlphaSError
 Error for general AlphaS computation problems. More...
 
struct  bad_lexical_cast
 When lexical_cast goes bad. More...
 
class  BicubicInterpolator
 Implementation of bicubic interpolation. More...
 
class  BilinearInterpolator
 Implementation of bilinear interpolation. More...
 
class  Config
 Class for PDF set metadata and manipulation. More...
 
class  ContinuationExtrapolator
 
class  ErrExtrapolator
 Extrapolates using the closest point on the Grid. More...
 
class  Exception
 Generic unspecialised LHAPDF runtime error. More...
 
class  Extrapolator
 The general interface for extrapolating beyond grid boundaries. More...
 
class  FactoryError
 Error to be raised by object factories given invalid requests. More...
 
class  File
 MPI-safe file I/O interface. More...
 
class  FlavorError
 Error for requests for unsupported/invalid flavour PIDs. More...
 
class  GridError
 Error for general PDF grid problems. More...
 
class  GridPDF
 A PDF defined via an interpolation grid. More...
 
class  IndexError
 Error to be raised when a LHAPDF ID indexing fails. More...
 
class  Info
 Metadata base class for PDFs, PDF sets, or global configuration. More...
 
class  Interpolator
 The general interface for interpolating between grid points. More...
 
class  KnotArray1F
 Internal storage class for PDF data point grids. More...
 
class  KnotArrayNF
 A collection of {KnotArray1F}s accessed by PID code. More...
 
class  LogBicubicInterpolator
 Implementation of bicubic interpolation. More...
 
class  LogBilinearInterpolator
 Implementation of bilinear interpolation. More...
 
class  LogicError
 Error for places where it should not have been possible to get to! More...
 
class  MetadataError
 Error for unfound or broken metadata entries. More...
 
class  NearestPointExtrapolator
 Extrapolates using the closest point on the Grid. More...
 
class  NotImplementedError
 This feature doesn't exist yet. More...
 
class  PDF
 PDF is the general interface for access to parton density information. More...
 
class  PDFInfo
 Metadata class for PDF members. More...
 
class  PDFSet
 Class for PDF set metadata and manipulation. More...
 
struct  PDFUncertainty
 Structure for storage of uncertainty info calculated over a PDF error set. More...
 
class  RangeError
 Error to be thrown when out of the valid range of a PDF. More...
 
class  ReadError
 Error for file reading errors. More...
 
class  UserError
 Problem exists between keyboard and chair. More...
 
class  VersionError
 Error to be raised when a newer LHAPDF version is needed. More...
 

Functions

int verbosity ()
 
void setVerbosity (int v)
 
PDFmkPDF (const std::string &setname, int member)
 
PDFmkPDF (int lhaid)
 
PDFmkPDF (const std::string &setname_nmem)
 
PDFSetgetPDFSet (const std::string &setname)
 
void mkPDFs (const std::string &setname, std::vector< PDF * > &pdfs)
 Get all PDFs in a named set (return by filling the supplied vector).
 
std::vector< PDF * > mkPDFs (const std::string &setname)
 Get all PDFs in a named set (return by a new vector).
 
template<typename PTR >
void mkPDFs (const std::string &setname, std::vector< PTR > &pdfs)
 
InfogetConfig ()
 
PDFInfomkPDFInfo (const std::string &setname, int member)
 
PDFInfomkPDFInfo (int lhaid)
 
InterpolatormkInterpolator (const std::string &name)
 
ExtrapolatormkExtrapolator (const std::string &name)
 
AlphaSmkAlphaS (const Info &info)
 Make an AlphaS object from an Info object. More...
 
AlphaSmkAlphaS (const std::string &setname)
 Make an AlphaS object for the named PDF set. More...
 
AlphaSmkAlphaS (const std::string &setname, int member)
 Make an AlphaS object for the specified PDF. More...
 
AlphaSmkAlphaS (int lhaid)
 Make an AlphaS object for the specified PDF. More...
 
AlphaSmkBareAlphaS (const std::string &type)
 Make an AlphaS object of the requested type without a PDF reference. More...
 
void flushFileCache ()
 Global function to flush the MPI-safe file cache.
 
std::map< int, std::string > & getPDFIndex ()
 Get the singleton LHAPDF set ID -> PDF index map.
 
std::pair< std::string, int > lookupPDF (int lhaid)
 
std::pair< std::string, int > lookupPDF (const std::string &pdfstr)
 Decode a single PDF member ID string into a setname,memid pair. More...
 
int lookupLHAPDFID (const std::string &setname, int nmem)
 
int lookupLHAPDFID (const std::string &setname_nmem)
 Look up the member's LHAPDF index from a setname/member string.
 
std::string version ()
 Get the LHAPDF library version code (as a string)
 

Detailed Description

Namespace for all LHAPDF functions and classes.

Function Documentation

◆ weightxQ() [1/2]

double LHAPDF::weightxQ ( int  id,
double  x,
double  Q,
const PDF basepdf,
const PDF newpdf,
double  aschk = 5e-2 
)
inline

Get the PDF reweighting factor for a beam with id,x,Q parameters, from basepdf to newpdf

Note
For NLO calculations, in general different PDF values enter for each counterterm: be careful.

◆ weightxQ() [2/2]

template<typename PDFPTR >
double LHAPDF::weightxQ ( int  id,
double  x,
double  Q,
const PDFPTR  basepdf,
const PDFPTR  newpdf,
double  aschk = 5e-2 
)
inline

Get the PDF reweighting factor for a beam with id,x,Q parameters, from basepdf to newpdf

Note
For NLO calculations, in general different PDF values enter for each counterterm: be careful.

◆ weightxQ2() [1/2]

double LHAPDF::weightxQ2 ( int  id,
double  x,
double  Q2,
const PDF basepdf,
const PDF newpdf,
double  aschk = 5e-2 
)
inline

Get the PDF reweighting factor for a beam with id,x,Q parameters, from basepdf to newpdf

Note
For NLO calculations, in general different PDF values enter for each counterterm: be careful.

◆ weightxQ2() [2/2]

template<typename PDFPTR >
double LHAPDF::weightxQ2 ( int  id,
double  x,
double  Q2,
const PDFPTR  basepdf,
const PDFPTR  newpdf,
double  aschk = 5e-2 
)
inline

Get the PDF reweighting factor for a beam with id,x,Q parameters, from basepdf to newpdf

Note
For NLO calculations, in general different PDF values enter for each counterterm: be careful.

◆ weightxxQ() [1/2]

double LHAPDF::weightxxQ ( int  id1,
int  id2,
double  x1,
double  x2,
double  Q,
const PDF basepdf,
const PDF newpdf,
double  aschk = 5e-2 
)
inline

Get the PDF reweighting factor for two beams, one with id1,x1 and the other with id2,x2, from basepdf to newpdf

Note
For NLO calculations, in general different PDF values enter for each counterterm: be careful.

◆ weightxxQ() [2/2]

template<typename PDFPTR >
double LHAPDF::weightxxQ ( int  id1,
int  id2,
double  x1,
double  x2,
double  Q,
const PDFPTR  basepdf,
const PDFPTR  newpdf,
double  aschk = 5e-2 
)
inline

Get the PDF reweighting factor for two beams, one with id1,x1 and the other with id2,x2, from basepdf to newpdf

Note
For NLO calculations, in general different PDF values enter for each counterterm: be careful.

◆ weightxxQ2() [1/2]

double LHAPDF::weightxxQ2 ( int  id1,
int  id2,
double  x1,
double  x2,
double  Q2,
const PDF basepdf,
const PDF newpdf,
double  aschk = 5e-2 
)
inline

Get the PDF reweighting factor for two beams, one with id1,x1 and the other with id2,x2, from basepdf to newpdf

Note
For NLO calculations, in general different PDF values enter for each counterterm: be careful.

◆ weightxxQ2() [2/2]

template<typename PDFPTR >
double LHAPDF::weightxxQ2 ( int  id1,
int  id2,
double  x1,
double  x2,
double  Q2,
const PDFPTR  basepdf,
const PDFPTR  newpdf,
double  aschk = 5e-2 
)
inline

Get the PDF reweighting factor for two beams, one with id1,x1 and the other with id2,x2, from basepdf to newpdf

Note
For NLO calculations, in general different PDF values enter for each counterterm: be careful.