7 #ifndef LHAPDF_Factories_H
8 #define LHAPDF_Factories_H
36 PDF*
mkPDF(
const std::string& setname, size_t member);
81 void mkPDFs(
const std::string& setname, std::vector<PDF*>& pdfs);
89 template <
typename PTR>
90 void mkPDFs(
const std::string& setname, std::vector<PTR>& pdfs) {
91 std::vector<PDF*> rawptrs;
92 mkPDFs(setname, rawptrs);
94 pdfs.reserve(rawptrs.size());
96 for (size_t i = 0; i < rawptrs.size(); ++i) pdfs.push_back(PTR(rawptrs[i]));