Generation of PY8 matching plots

Asked by Guillaume Chalons on 2017-12-15

Hi,

I am facing a small but annoying problem with the generation of the matching plots by pythia8. I am using the very last version of MadGraph5 v2.6.1. I generate events (with launch in the python command interface) for gluino squarks production with showering/hadronization with PY8.

 No problem encountered, no warning on the terminal. The INFO even tells me that the matching plots for pythia8 are created. However, when I go into the HTML directory there are indeed the .gnuplot and .HwU files but no pdf has been created. I have installed MadAnalysis5 and ExRoot is available as an option for the analysis package. I have enabled them during the run and

Also I noticed that on the webpage of the process the matching plots link is not created.

Please tell me if you need more information.

Thanks in advance for all your help,
Best Regards,
Guillaume.

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
Valentin Hirschi Edit question
Last query:
2017-12-21
Last reply:
2018-08-21

Guillaume, do you have 'gnuplot'? It does create PDF. Kentarou

Hi Kentarou, thanks for your answer.

Yes I do. To be fair, I have used it to create the PDF. But since I launch multiple runs, having to run gnuplot for each by hand is a bit time consuming and not handy. Since I know the PDF can be generated automatically I would prefer to fix this, if possible.

Cheers,
Guillaume.

Hi,

Do you have the path of gnuplot in your $PATH?
If it is it should be automatically called.

Cheers,

Olivier

> On Dec 17, 2017, at 23:02, Guillaume Chalons <email address hidden> wrote:
>
> Question #661804 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/661804
>
> Guillaume Chalons posted a new comment:
> Hi Kentarou, thanks for your answer.
>
> Yes I do. To be fair, I have used it to create the PDF. But since I
> launch multiple runs, having to run gnuplot for each by hand is a bit
> time consuming and not handy. Since I know the PDF can be generated
> automatically I would prefer to fix this, if possible.
>
> Cheers,
> Guillaume.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Hi,

I have echoed $PATH :

bash: /usr/local/pylpsc/bin:/utils/SL6/ROOT-v5.34.34/root/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/e17/bin:/opt/java/jre/bin:/opt/kde/bin:/opt/mozilla/bin:/opt/qt4/bin:/opt/qt/bin:/theo/chalons/bin:HOME:/usr/local/sbin:/usr/local/bin:/sbin:/usr/bin/X11:/usr/local/bin/X11::/bin:/usr/include:/usr/share/root/bin:/etc:/lib64:/usr/lib64: No such file or directory

and make a which for gnuplot

which gnuplot
/usr/bin/gnuplot

So it seems to be there. Thus I do not understand why it is not called/the call does not work.

Cheers,
Guillaume.

Hi Guillaume,

I have look at the code, and you should have in the log some warning (blue line) telling you why the plot are not done.
For example, you can have the following error message:
> Install gnuplot to be able to view the plots

or
> Automatic processing of the Pythia8 merging plots with gnuplot failed. Try the following command by hand:
> XXXXXX
> Exception was:
> XXXXXX

Since the first one occurs when gnuplot is not in your path, you should have error like the second one, which explicitely state the reason why the plot failed.

Cheers,

Olivier

> On 18 Dec 2017, at 09:33, Guillaume Chalons <email address hidden> wrote:
>
> Question #661804 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/661804
>
> Status: Answered => Open
>
> Guillaume Chalons is still having a problem:
> Hi,
>
> I have echoed $PATH :
>
> bash:
> /usr/local/pylpsc/bin:/utils/SL6/ROOT-v5.34.34/root/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/e17/bin:/opt/java/jre/bin:/opt/kde/bin:/opt/mozilla/bin:/opt/qt4/bin:/opt/qt/bin:/theo/chalons/bin:HOME:/usr/local/sbin:/usr/local/bin:/sbin:/usr/bin/X11:/usr/local/bin/X11::/bin:/usr/include:/usr/share/root/bin:/etc:/lib64:/usr/lib64:
> No such file or directory
>
> and make a which for gnuplot
>
> which gnuplot
> /usr/bin/gnuplot
>
> So it seems to be there. Thus I do not understand why it is not
> called/the call does not work.
>
> Cheers,
> Guillaume.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Dear Olivier,

Thanks for your answer.

I checked the log on the terminal, there are no error message. I copy paste here what is written:

INFO: Running Pythia8 [arXiv:1410.3012]
No user-defined value for Pythia8 parameter 'JetMatching:nJetMax'. Setting it automatically to 1.
Splitting .lhe event file for PY8 parallelization...
Submitting Pythia8 jobs...
Pythia8 shower jobs: 1 Idle, 7 Running, 0 Done [1 seconds]
Pythia8 shower jobs: 0 Idle, 7 Running, 1 Done [41 seconds]
Pythia8 shower jobs: 0 Idle, 6 Running, 2 Done [42 seconds]
Pythia8 shower jobs: 0 Idle, 5 Running, 3 Done [43 seconds]
Pythia8 shower jobs: 0 Idle, 4 Running, 4 Done [43 seconds]
Pythia8 shower jobs: 0 Idle, 3 Running, 5 Done [45 seconds]
Pythia8 shower jobs: 0 Idle, 2 Running, 6 Done [45 seconds]
Pythia8 shower jobs: 0 Idle, 1 Running, 7 Done [46 seconds]
Pythia8 shower jobs: 0 Idle, 0 Running, 8 Done [46 seconds]
Merging results from the split PY8 runs...
INFO: Create matching plots for Pythia8
INFO: Pythia8 shower finished after 1m05s.

So no error message. Then I go into the HTML directory and only the .gnuplot and .HwU files are present but the .pdf files are not created. If y type ls -al in the HTML directory here is what I get

-rw-r--r-- 1 chalons theo 17086 Dec 21 14:27 central_qCut_djr_plots.gnuplot
-rw-r--r-- 1 chalons theo 183526 Dec 21 14:27 central_qCut_djr_plots.HwU
-rw-r--r-- 1 chalons theo 17008 Dec 21 14:27 central_qCut_pt_plots.gnuplot
-rw-r--r-- 1 chalons theo 183502 Dec 21 14:27 central_qCut_pt_plots.HwU
-rw-r--r-- 1 chalons theo 14865 Dec 21 14:27 min_max_qCut_djr_comparison.gnuplot
-rw-r--r-- 1 chalons theo 193220 Dec 21 14:27 min_max_qCut_djr_comparison.HwU
-rw-r--r-- 1 chalons theo 14796 Dec 21 14:27 min_max_qCut_pt_comparison.gnuplot
-rw-r--r-- 1 chalons theo 193164 Dec 21 14:27 min_max_qCut_pt_comparison.HwU
-rw-r--r-- 1 chalons theo 16838 Dec 21 14:27 qCut_225_djr_plots.gnuplot
-rw-r--r-- 1 chalons theo 183526 Dec 21 14:27 qCut_225_djr_plots.HwU

and so on, I do not display everything for easier reading. I tried again to generate them with gnuplot with

gnuplot qCut_225_pt_plots.gnuplot

and I get this error message

"qCut_225_pt_plots.gnuplot", line 20: undefined variable: font

The machine I am using is belonging to the computing farm of the institute. When I run the very same command on my desktop machine it works (I do not use it for MG5 because it is too slow). So the only difference I see is that the gnuplot version of the machine of the farm (whose architecture may be old) is

gnuplot --version
gnuplot 4.2 patchlevel 6

whereas the one on my desktop machine is

gnuplot 5.0 patchlevel 5

Could it be the source of the problem ?

Hi,

In principle not. Valentin can you comment?

Olivier

Dear Guillaume.

I don't have experience with gnuplot version 4.2, so I can't say for sure if there is some compatibility issue with the gnuplot file MG5aMC generates from the HwU file.

On the following page:
https://sourceforge.net/p/gnuplot/bugs/667/

I see that incorrect font implementation by certain terminals have raised similar errors by gnuplot as the one you reported.
I can only suggest to either use a local installation of a recent version of gnuplot on your cluster frontend (assuming this solves the issue, as hinted at by the fact that it works on your local machine) or fiddle with the the gnuplot source file generated (changing the font definition and/or terminal used) to see if this solves the issue.

Regards,

Swagata Mukherjee (swagata87) said : #9

Hello,

I have the exact same problem.
All steps work fine, w/o any error or warning.
Inside MG5_aMC_v2_6_3_2/Aug21/HTML/run_02/tag_1_PY8_plots/ folder, I have some .gnuplot and .HwU files. Is there any way to have the plots in pdf/ps ?

Thanks,
Swagata.

Did you read the full thread?
Is your error exactly like post #6? (same message). Is your version of gnuplot the same as reported here?
If you do, did you update your version of gnuplot?

Cheers,

Olivier

Can you help with this problem?

Provide an answer of your own, or ask Guillaume Chalons for more information if necessary.

To post a message you must log in.