Unable to use MSTW2008 lhapdf in madgraph

Asked by Amit Adhikary

I am trying to use MSTW2008 lhapdf MadGraph2.3.3(lhapdf-6.1.6), so I followed the procedure linked below---->

https://answers.launchpad.net/mg5amcnlo/+question/190445

Run card line----->
  'lhapdf' = pdlabel ! PDF set
   21250 = lhaid ! if pdlabel=lhapdf, this is the lhapdf number

But I am getting this error---->

Generating 1000 events with run name run_01
survey run_01
INFO: compile directory
INFO: Using LHAPDF v6.1.6 interface for PDFs
compile Source Directory
Using random number seed offset = 39
INFO: Running Survey
Creating Jobs
Working on SubProcesses
INFO: P1_qq_zh
INFO: Idle: 1, Running: 0, Completed: 0 [ current time: 17h18 ]
terminate called after throwing an instance of 'LHAPDF::ReadError'
  what(): Info file not found for PDF set 'MSTW2008nnlo90cl'

Program received signal SIGABRT: Process abort signal.

Backtrace for this error:
#0 0x7F74654C6E08
#1 0x7F74654C5F90
#2 0x7F7464BF84AF
#3 0x7F7464BF8428
#4 0x7F7464BFA029
#5 0x7F746586584C
#6 0x7F74658636B5
#7 0x7F7465863700
#8 0x7F7465863918
#9 0x493339 in LHAPDF::PDFSet::PDFSet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
#10 0x4A53BA in LHAPDF::getPDFSet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
#11 0x4A8BA4 in LHAPDF::mkPDF(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)
#12 0x474EA8 in (anonymous namespace)::PDFSetHandler::loadMember(int) at LHAGlue.cc:?
#13 0x475443 in (anonymous namespace)::PDFSetHandler::PDFSetHandler(int) at LHAGlue.cc:?
#14 0x47604C in pdfset_
#15 0x471859 in pdfwrap_
#16 0x46E1B1 in setrun_
#17 0x40A775 in MAIN__ at driver.f:?
ERROR DETECTED
INFO: Idle: 0, Running: 0, Completed: 1 [ 0.17s ]
INFO: Idle: 0, Running: 0, Completed: 1 [ 0.17s ]
INFO: End survey
refine 1000
Creating Jobs
INFO: Refine results to 1000
INFO: Generating 1000.0 unweigthed events.
Error when reading /home/amit/Desktop/hep/MG5_aMC_v2_3_3/ppzhTest/SubProcesses/P1_qq_zh/G1/results.dat
Command "launch " interrupted with error:
ValueError : need more than 5 values to unpack
Please report this bug on https://bugs.launchpad.net/madgraph5
More information is found in '/home/amit/Desktop/hep/MG5_aMC_v2_3_3/ppzhTest/run_01_tag_1_debug.log'.
Please attach this file to your report.

Have I done something wrong above? Please correct me.

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

I do not reproduce your problem. So this is machine specific. (As often with lhapdf)
Did you compile lhapdf with the same compiler as the one used for your run?

Cheers,

Olivier
On 1 Mar 2017, at 22:20, Amit Adhikary <<email address hidden><mailto:<email address hidden>>> wrote:

 21250

Revision history for this message
Amit Adhikary (amit93-adhikary) said :
#2

Hi Olivier,

I installed freshly but I got the same error. Maybe I have done some steps wrong written in README.lhapdf(not clearly written the folder paths). So I am writing the steps I have done.

1) I installed LHAPDF-6.1.6.
2) I am using MadGraph-2.3.3 where I generated p p > z h and output to ppzhTest.
3) I copied libLHAPDF.a from lhapdf lib(~/lhapdf-install/lib) folder to MadGraph ppzhTest lib(~/MG5_aMC_v2_3_3/ppzhTest/lib)
     folder.
4) I downloaded MSTW2008nnlo90cl.LHgrid from http://lhapdf.hepforge.org/lhapdf5/pdfsets and put it in
     (~/MG5_aMC_v2_3_3/ppzhTest/lib/PDFsets) [creating this folder].
5) Then I launch the process and in run card I set 'lhapdf' = pdlabel and 21241 = lhaid. and got the error.

Thank you in advance,
Amit

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

Hi,

You should not do those steps anymore.
You just have to set the path to the lhapdf-config in the input/mg5_configuration.txt
And the linking/download of the pdf set is fully automatic now.

Cheers,

Olivier
> On 2 Mar 2017, at 18:21, Amit Adhikary <email address hidden> wrote:
>
> Question #509340 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/509340
>
> Status: Answered => Open
>
> Amit Adhikary is still having a problem:
>
> Hi Olivier,
>
> I installed freshly but I got the same error. Maybe I have done some
> steps wrong written in README.lhapdf(not clearly written the folder
> paths). So I am writing the steps I have done.
>
> 1) I installed LHAPDF-6.1.6.
> 2) I am using MadGraph-2.3.3 where I generated p p > z h and output to ppzhTest.
> 3) I copied libLHAPDF.a from lhapdf lib(~/lhapdf-install/lib) folder to MadGraph ppzhTest lib(~/MG5_aMC_v2_3_3/ppzhTest/lib)
> folder.
> 4) I downloaded MSTW2008nnlo90cl.LHgrid from http://lhapdf.hepforge.org/lhapdf5/pdfsets and put it in
> (~/MG5_aMC_v2_3_3/ppzhTest/lib/PDFsets) [creating this folder].
> 5) Then I launch the process and in run card I set 'lhapdf' = pdlabel and 21241 = lhaid. and got the error.
>
>
> Thank you in advance,
> Amit
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

Provide an answer of your own, or ask Amit Adhikary for more information if necessary.

To post a message you must log in.