7 #ifndef LHAPDF_PDFInfo_H
8 #define LHAPDF_PDFInfo_H
10 #include "LHAPDF/Info.h"
11 #include "LHAPDF/Factories.h"
12 #include "LHAPDF/PDFIndex.h"
38 PDFInfo(
const std::string& setname,
int member);
50 bool has_key(
const std::string& key)
const;
53 const std::string&
get_entry(
const std::string& key)
const;
56 const std::string&
get_entry(
const std::string& key,
const std::string& fallback)
const {
const std::string & get_entry(const std::string &key, const std::string &fallback) const
Retrieve a metadata string by key name, with a fallback.
Definition: PDFInfo.h:56
int _member
Definition: PDFInfo.h:70
Metadata class for PDF members.
Definition: PDFInfo.h:18
bool has_key(const std::string &key) const
Can this Info object return a value for the given key? (it may be defined non-locally)
const std::string & get_entry(const std::string &key) const
Retrieve a metadata string by key name.
Metadata base class for PDFs, PDF sets, or global configuration.
Definition: Info.h:30
PDFInfo(const std::string &setname, int member)
Constructor from a set name and member ID.
PDFInfo(const std::string &mempath)
std::string _setname
Name of the set in which this PDF is contained (for PDFSet lookup)
Definition: PDFInfo.h:66
virtual const std::string & get_entry(const std::string &key) const
Definition: Info.h:108
PDFInfo()
Definition: PDFInfo.h:29
Namespace for all LHAPDF functions and classes.
Definition: AlphaS.h:14
PDFInfo(int lhaid)
Constructor from an LHAPDF ID code.