7 #ifndef LHAPDF_LHAGlue_H
8 #define LHAPDF_LHAGlue_H
13 #include "LHAPDF/Version.h"
17 std::string lhaglue_get_current_pdf(
int nset=1);
20 #define initPDFSetM initPDFSet
21 #define initPDFSetByNameM initPDFSetByName
22 #define initPDFM initPDF
23 #define initPDFByNameM initPDFByName
24 #define getDescriptionM getDescription
28 #define xfxphotonM xfxphoton
29 #define numberPDFM numberPDF
30 #define alphasPDFM alphasPDF
31 #define getOrderPDFM getOrderPDF
32 #define getOrderAlphaSM getOrderAlphaS
33 #define getQMassM getQMass
34 #define getThresholdM getThreshold
36 #define getLam4M getLam4
37 #define getLam5M getLam5
38 #define getXminM getXmin
39 #define getXmaxM getXmax
40 #define getQ2minM getQ2min
41 #define getQ2maxM getQ2max
52 EVOLVE = 0, LHPDF = 0,
53 INTERPOLATE = 1, LHGRID = 1
57 enum Verbosity { SILENT=0, LOWKEY=1, DEFAULT=2 };
60 inline std::string getVersion() {
65 inline int getMaxNumSets() {
return 1000; }
68 inline void initLHAPDF() {}
74 inline void extrapolate(
bool) {}
75 inline void extrapolate() {}
81 inline void setParameter(
const std::string&) {
82 std::cerr <<
"LHAPDF::setParameter() has no effect in LHAPDF6: "
83 <<
"please update your code to use the native C++ interface" << std::endl;
90 void setPDFPath(
const string& path);
91 std::string pdfsetsPath();
96 void initPDFSetByName(
const std::string& filename);
97 void initPDFSetByName(
const std::string& filename, SetType type);
101 void initPDFSetByName(
int nset,
const std::string& filename);
102 void initPDFSetByName(
int nset,
const std::string& filename, SetType type);
111 int numberPDF(
int nset);
115 void initPDF(
int memset);
119 void initPDF(
int nset,
int memset);
127 double xfx(
double x,
double Q,
int fl);
134 double xfx(
int nset,
double x,
double Q,
int fl);
142 void xfx(
double x,
double Q,
double* results);
150 void xfx(
int nset,
double x,
double Q,
double* results);
157 std::vector<double> xfx(
double x,
double Q);
164 std::vector<double> xfx(
int nset,
double x,
double Q);
175 std::vector<double> xfxphoton(
double x,
double Q);
183 std::vector<double> xfxphoton(
int nset,
double x,
double Q);
194 void xfxphoton(
double x,
double Q,
double* results);
205 void xfxphoton(
int nset,
double x,
double Q,
double* results);
216 double xfxphoton(
double x,
double Q,
int fl);
225 double xfxphoton(
int nset,
double x,
double Q,
int fl);
230 void getDescription();
234 void getDescription(
int nset);
239 int getOrderAlphaS();
243 int getOrderAlphaS(
int nset);
252 int getOrderPDF(
int nset);
266 double getLam4(
int nset);
270 double getLam4(
int nset,
int nmem);
275 double getLam5(
int nset);
279 double getLam5(
int nset,
int nmem);
284 double getXmin(
int nmem);
288 double getXmin(
int nset,
int nmem);
292 double getXmax(
int nset,
int nmem);
296 double getXmax(
int nmem);
301 double getQ2min(
int nset,
int nmem);
305 double getQ2min(
int nmem);
309 double getQ2max(
int nset,
int nmem);
313 double getQ2max(
int nmem);
318 double getQMass(
int nset,
int nf);
322 double getQMass(
int nf);
327 double getThreshold(
int nset,
int nf);
331 double getThreshold(
int nf);
336 double alphasPDF(
double Q);
340 double alphasPDF(
int nset,
double Q);
345 void usePDFMember(
int member);
350 void usePDFMember(
int nset,
int member);
354 void initPDFSet(
const std::string& name,
int member=0);
355 void initPDFSet(
int nset ,
const std::string& name,
int nmem=0);
356 void initPDFSet(
int setid,
int member=0);
357 void initPDFSet(
int nset ,
int setid,
int nmem=0);
359 void initPDFSet(
const std::string& name, SetType type,
int member=0);
361 void initPDFSet(
int nset,
const std::string& name, SetType type,
int member=0);
std::string version()
Get the LHAPDF library version code (as a string)
Definition: Version.h:33
void setVerbosity(int v)
Definition: Config.h:65