10#include "LHAPDF/Utils.h"
36 vector<string> ps = paths();
37 ps.insert(ps.begin(), p);
45 vector<string> ps = paths();
68 const string memname = setname +
"_" + to_str_zeropad(member) +
".dat";
69 const string mempath = setname / memname;
75 return findFile(pdfmempath(setname, member));
80 const string infoname = setname +
".info";
81 const string setinfo = setname / infoname;
88 return findFile(pdfsetinfopath(setname));
const std::vector< std::string > & availablePDFSets()
Get the names of all available PDF sets in the search path.
std::string findpdfmempath(const std::string &setname, int member)
Search for the data-path of a PDF member.
Definition Paths.h:74
void pathsAppend(const std::string &p)
Append to the search paths list.
Definition Paths.h:44
std::string pdfmempath(const std::string &setname, int member)
Get the standard path-end elements expected for a PDF member data-file.
Definition Paths.h:67
std::vector< std::string > findFiles(const std::string &target)
Return all locations in which a file is found.
std::string findFile(const std::string &target)
void pathsPrepend(const std::string &p)
Prepend to the search paths list.
Definition Paths.h:35
std::vector< std::string > paths()
Get the ordered list of search paths, from $LHAPDF_DATA_PATH and the install location.
std::string findpdfsetinfopath(const std::string &setname)
Search for the info-path of a PDF set.
Definition Paths.h:86
void setPaths(const std::string &pathstr)
Set the search paths list as a colon-separated string.
std::string pdfsetinfopath(const std::string &setname)
Get the standard path-end elements expected for a PDF set's info-file.
Definition Paths.h:79
void setPaths(std::vector< string > paths)
Set the search paths list.
Definition Paths.h:29
Namespace for all LHAPDF functions and classes.
Definition AlphaS.h:14