lhapdf is hosted by Hepforge, IPPP Durham
LHAPDF  6.3.0
Making whole PDF sets


PDFSetLHAPDF::getPDFSet (const std::string &setname)
void LHAPDF::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 * > LHAPDF::mkPDFs (const std::string &setname)
 Get all PDFs in a named set (return by a new vector).
template<typename PTR >
void LHAPDF::mkPDFs (const std::string &setname, std::vector< PTR > &pdfs)

Detailed Description

Function Documentation

◆ getPDFSet()

PDFSet& LHAPDF::getPDFSet ( const std::string &  setname)

Get the PDFSet with the given set name.

Returns a PDFSet by reference. When this function is used for access, only one PDFSet object is made per set name... hence the 'get' rather than 'mk' function name.

This function is intended particularly for use where it would be inefficient to have to repeatedly construct a PDFSet by name. The canonical use case is internal: the Info system uses this to ensure that cascading of config settings is efficient, and also allows the automatic application of set-level changes to all PDF member objects in that set.

The LHAPDF system is responsible for deletion of the returned object. Do NOT delete it yourself! Hence the return by reference rather than pointer.

◆ mkPDFs()

template<typename PTR >
void LHAPDF::mkPDFs ( const std::string &  setname,
std::vector< PTR > &  pdfs 

Get all PDFs in a named set (return by filling the supplied vector).

This is a templated version for returning a vector of smart ptrs