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

Functions

Info & LHAPDF::getConfig ()
 
PDFInfo * LHAPDF::mkPDFInfo (const std::string &setname, size_t member)
 
PDFInfo * LHAPDF::mkPDFInfo (int lhaid)
 
PDFInfo * LHAPDF::mkPDFInfo (const std::string &setname_nmem)
 

Detailed Description

Function Documentation

Info& LHAPDF::getConfig ( )

Get the global configuration object

The global config is populated by reading from lhapdf.conf if it is found in the search paths. It is a singleton, hence the 'get' rather than 'mk' function name.

Note
The LHAPDF system is responsible for deletion of the returned object. Do NOT delete it yourself! Hence the return by reference rather than pointer.
Examples:
/tests/testinfo.cc.
PDFInfo* LHAPDF::mkPDFInfo ( const std::string &  setname,
size_t  member 
)

Create a new Info object for the given set name and member number.

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

Examples:
/tests/testinfo.cc.
PDFInfo* LHAPDF::mkPDFInfo ( int  lhaid)

Create a new Info object with the given LHAPDF ID code.

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

PDFInfo* LHAPDF::mkPDFInfo ( const std::string &  setname_nmem)

Create a new Info object for the given set name and member number 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 Info by pointer. The caller is responsible for deletion of the created object.