lhapdf is hosted by Hepforge, IPPP Durham
LHAPDF  6.3.0
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)
 

PDF-specific path functions

std::string LHAPDF::pdfmempath (const std::string &setname, int member)
 
std::string LHAPDF::findpdfmempath (const std::string &setname, int member)
 
std::string LHAPDF::pdfsetinfopath (const std::string &setname)
 
std::string LHAPDF::findpdfsetinfopath (const std::string &setname)
 
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
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.