lhapdf is hosted by Hepforge, IPPP Durham
LHAPDF  6.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
Making single PDFs

Functions

PDF * LHAPDF::mkPDF (const std::string &setname, size_t member)
 
PDF * LHAPDF::mkPDF (int lhaid)
 
PDF * LHAPDF::mkPDF (const std::string &setname_nmem)
 

Detailed Description

Function Documentation

PDF* LHAPDF::mkPDF ( const std::string &  setname,
size_t  member 
)

Create a new PDF with the given PDF set name and member ID.

Returns a 'new'ed PDF by pointer. The caller is responsible for deletion of the created object.

Examples:
/examples/compatibility.cc, /examples/testpdf.cc, /tests/testalphas.cc, and /tests/testgrid.cc.
PDF* LHAPDF::mkPDF ( int  lhaid)

Create a new PDF with the given LHAPDF ID code.

Returns a 'new'ed PDF by pointer. The caller is responsible for deletion of the created object.

PDF* LHAPDF::mkPDF ( const std::string &  setname_nmem)

Create a new PDF with the given PDF set name and member ID as a single string.

The format of the setname_nmem string is <setname>/<nmem> where <nmem> must be parseable as a positive integer. The / character is not permitted in set names due to clashes with Unix filesystem path syntax.

If no /<nmem> is given, member number 0 will be used.

Returns a 'new'ed PDF by pointer. The caller is responsible for deletion of the created object.