LHAPDF  6.5.4
Searching for PDF data

Search path handling functions

std::vector< std::string > LHAPDF::paths ()
 Get the ordered list of search paths, from $LHAPDF_DATA_PATH and the install location. More...
 
void LHAPDF::setPaths (const std::string &pathstr)
 Set the search paths list as a colon-separated string.
 
void LHAPDF::setPaths (std::vector< string > paths)
 Set the search paths list.
 
void LHAPDF::pathsPrepend (const std::string &p)
 Prepend to the search paths list.
 
void LHAPDF::pathsAppend (const std::string &p)
 Append to the search paths list.
 
std::string LHAPDF::findFile (const std::string &target)
 
std::vector< std::string > LHAPDF::findFiles (const std::string &target)
 Return all locations in which a file is found.
 

PDF-specific path functions

std::string LHAPDF::pdfmempath (const std::string &setname, int member)
 Get the standard path-end elements expected for a PDF member data-file.
 
std::string LHAPDF::findpdfmempath (const std::string &setname, int member)
 Search for the data-path of a PDF member.
 
std::string LHAPDF::pdfsetinfopath (const std::string &setname)
 Get the standard path-end elements expected for a PDF set's info-file.
 
std::string LHAPDF::findpdfsetinfopath (const std::string &setname)
 Search for the info-path of a PDF set. More...
 
const std::vector< std::string > & LHAPDF::availablePDFSets ()
 Get the names of all available PDF sets in the search path. More...
 

Detailed Description

Function Documentation

◆ availablePDFSets()

const std::vector<std::string>& LHAPDF::availablePDFSets ( )

Get the names of all available PDF sets in the search path.

Note
Taken from scanning the directories in the search path (i.e. LHAPDF_DATA_PATH) for viable PDF sets.
The result is cached when first called, to avoid repeated filesystem walking. It's assumed that new PDFs will not appear on the filesystem during a run: please let the authors know if that's not a good assumption!
Examples
/tests/testinfo.cc, and /tests/testpaths.cc.

◆ findFile()

std::string LHAPDF::findFile ( const std::string &  target)

Return the first location in which a file is found

If no matching file is found, return an empty path.

Examples
/tests/testpaths.cc.

◆ findpdfsetinfopath()

std::string LHAPDF::findpdfsetinfopath ( const std::string &  setname)
inline

Search for the info-path of a PDF set.

Todo:
Check that set info and mem=0 file are in same dir?

◆ paths()

std::vector<std::string> LHAPDF::paths ( )

Get the ordered list of search paths, from $LHAPDF_DATA_PATH and the install location.

Note
The install prefix will be appended unless $LHAPDF_DATA_PATH ends with a double colon, i.e. '::'
Examples
/tests/testgrid.cc, and /tests/testpaths.cc.