lhapdf is hosted by Hepforge, IPPP Durham
LHAPDF 6.5.4
Loading...
Searching...
No Matches
Making metadata objects

Functions

InfoLHAPDF::getConfig ()
 
PDFInfoLHAPDF::mkPDFInfo (const std::string &setname, size_t member)
 
PDFInfoLHAPDF::mkPDFInfo (int lhaid)
 
PDFInfoLHAPDF::mkPDFInfo (const std::string &setname_nmem)
 

Detailed Description

Function Documentation

◆ getConfig()

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.

◆ mkPDFInfo() [1/3]

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.

◆ mkPDFInfo() [2/3]

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.

◆ mkPDFInfo() [3/3]

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.