7 #ifndef LHAPDF_Factories_H 8 #define LHAPDF_Factories_H 57 PDFSet&
getPDFSet(
const std::string& setname);
64 PDFInfo*
mkPDFInfo(
const std::string& setname,
int member);
82 PDF*
mkPDF(
const std::string& setname,
int member);
88 PDF*
mkPDF(
int lhaid);
101 PDF*
mkPDF(
const std::string& setname_nmem);
110 void mkPDFs(
const std::string& setname, std::vector<PDF*>& pdfs);
113 std::vector<PDF*>
mkPDFs(
const std::string& setname);
118 template <
typename PTR>
119 void mkPDFs(
const std::string& setname, std::vector<PTR>& pdfs) {
120 std::vector<PDF*> rawptrs;
123 pdfs.reserve(rawptrs.size());
125 for (
size_t i = 0; i < rawptrs.size(); ++i) pdfs.push_back(PTR(rawptrs[i]));
PDF * mkPDF(const std::string &setname, int member)
PDFSet & getPDFSet(const std::string &setname)
AlphaS * mkAlphaS(const Info &info)
Make an AlphaS object from an Info object.
void mkPDFs(const std::string &setname, std::vector< PDF *> &pdfs)
Get all PDFs in a named set (return by filling the supplied vector).
Namespace for all LHAPDF functions and classes.
Definition: AlphaS.h:14
Calculator interface for computing alpha_s(Q2) in various ways.
Definition: AlphaS.h:23
Extrapolator * mkExtrapolator(const std::string &name)
The general interface for interpolating between grid points.
Definition: Interpolator.h:21
AlphaS * mkBareAlphaS(const std::string &type)
Make an AlphaS object of the requested type without a PDF reference.
PDFInfo * mkPDFInfo(const std::string &setname, int member)
Metadata base class for PDFs, PDF sets, or global configuration.
Definition: Info.h:30
Interpolator * mkInterpolator(const std::string &name)