9 #ifndef Pythia8_LHAPDFInterface_H
10 #define Pythia8_LHAPDFInterface_H
20 extern void initpdfsetm_(
int&,
const char*,
int);
22 extern void initpdfsetbynamem_(
int&,
const char*,
int);
24 extern void initpdfm_(
int&,
int&);
26 extern void evolvepdfm_(
int&,
double&,
double&,
double*);
28 extern void evolvepdfphotonm_(
int&,
double&,
double&,
double*,
double&);
30 extern void setlhaparm_(
const char*,
int);
38 class LHAPDFInterface {
43 static void initPDFsetM(
int& nSet,
string name) {
44 const char* cName = name.c_str();
int lenName = name.length();
45 initpdfsetm_( nSet, cName, lenName);
49 static void initPDFsetByNameM(
int& nSet,
string name) {
50 const char* cName = name.c_str();
int lenName = name.length();
51 initpdfsetbynamem_( nSet, cName, lenName);
55 static void initPDFM(
int& nSet,
int member) {
56 initpdfm_(nSet, member);
60 static void evolvePDFM(
int& nSet,
double x,
double Q,
double* xfArray) {
61 evolvepdfm_( nSet, x, Q, xfArray);
65 static void evolvePDFPHOTONM(
int& nSet,
double x,
double Q,
66 double* xfArray,
double& xPhoton) {
67 evolvepdfphotonm_( nSet, x, Q, xfArray, xPhoton);
71 static void setPDFparm(
string name) {
72 const char* cName = name.c_str();
int lenName = name.length();
73 setlhaparm_( cName, lenName);
83 #endif // Pythia8_LHAPDFInterface_H