How to create data files from MadGraph to plot graphs in Mathematica?

Asked by Ankur Panchal

I am a new user of MadGraph (v3.5.0). I wish to create cross section plots of the events I generate on MadGraph. How do I export a plottable file once I generate and launch an event? My preferred plotting software is Wolfram Mathematica.

Question information

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

For cross-section plot, you can use the print_results command introduced in the FAQ.
After that you will have a file with column, and you should be able to plot that in whatever program that you want.

For differential cross-section, this requires a parsing of the LHEF file and the definition of the observable, I do not know any parser for mathematica. What some people do is to use madanalysis5 for doing the parsing and the histograming but then take the data and import them into their own plotting code such that they can use their own style for plotting.

Cheers,

Olivier
FAQ #2186: “How to script MG5 run?”.

Revision history for this message
Ankur Panchal (ankurpanchal) said :
#2

Thanks Olivier Mattelaer, that solved my question.