lhapdf is hosted by Hepforge, IPPP Durham
LHAPDF  6.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
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)
 Build the form of a PDF member-data file path relative to the search dir.
 
std::string LHAPDF::findpdfmempath (const std::string &setname, int member)
 Find a PDF member-data file path in the search paths.
 
std::string LHAPDF::pdfsetinfopath (const std::string &setname)
 Build the form of a PDF info file path relative to the search dir.
 
std::string LHAPDF::findpdfsetinfopath (const std::string &setname)
 Find a PDF info file path in the search paths. 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

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.
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.
std::string LHAPDF::findpdfsetinfopath ( const std::string &  setname)
inline

Find a PDF info file path in the search paths.

Todo:
Check that set info and mem=0 file are in same dir?
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.