Hello,
I am using Pythia6 inside Root to generate and analyse some physics events. I wanted to use external PDFSets from LHAPDF, that I also installed. The problem is that I do not know exactly how to link these together. When I run my program in Root, it always ends in the first event:
Event => 0
Error: you did not link PDFLIB correctly.
Dummy routine PDFSET in PYTHIA file called instead.
Execution stopped!
I also tried to use the initPDFSet() function, as I saw in some examples, but it failed compilation.
This is how I did it:
gSystem->Load(“libEG”);
gSystem->Load(“libPythia6.so”);
gSystem->Load(“libEGPythia6”);
gSystem->Load(“libLHAPDFWrap.so”);
gSystem->Load(“libLHAPDF.so”);
gROOT.LoadMacro(“LHAPDFWrap.h++”);
#include </[mypath]/LHAPDF_5.4.1/include/LHAPDF/LHAPDF.h>
int makeEventSample(Int_t nEvents, Int_t code){
loadLibraries();
// Create an instance of the Pythia event generator …
TPythia6* pythia = new TPythia6;
LHAPDF::initPDFByName("/[mypath]/LHAPDF_5.4.1/share/lhapdf/PDFsets/GRV98lo.LHgrid", 0);
pythia->SetMSTP(52,2);
pythia->SetMSTP(51,80060);
…
Is there something obviously wrong?
Is there a good example somewhere of how to use this all together?
Thank you for your help,
catarina