Plotting LHE file from Madgraph without Pythia, Delphes, and Madanalysis.

Asked by Eric Gyabeng Fuakye on 2018-06-13

Hi everyone,

Please I recently started using MADGRAPH.

After generating some events in Madgraph without Pythia, Delphes or Madanalysis, I obtain a zip file of lets say

 unweighted_events.lhe.gz. My task now is to make a plot out of this events.lhe.gz file.

Please, how do I go about this?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Eric Gyabeng Fuakye
Solved:
2018-06-13
Last query:
2018-06-13
Last reply:
2018-06-13

Hi,

MadAnalysis (4 or 5) are the tools dedicated to making plot.
MadAnalysis5 is more complicated to install than MA4 but it is much more powerfull and flexible (and much more documented)

Now since this output format is human readable, you do not need any dedicated tool and
can do the plot with any method you like.

I personally like to make my plot with matplotlib and the lhe_parser.py file that I have include inside MG5aMC.
If you prefer root, you can convert the lhe file to root (again many tools here: For example ExRootAnalysis)
and then do your computation inside root.

Cheers,

Olivier

> On 13 Jun 2018, at 18:57, Eric Gyabeng Fuakye <email address hidden> wrote:
>
> New question #670189 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/670189
>
> Hi everyone,
>
> Please I recently started using MADGRAPH.
>
> After generating some events in Madgraph without Pythia, Delphes or Madanalysis, I obtain a zip file of lets say
>
> unweighted_events.lhe.gz. My task now is to make a plot out of this events.lhe.gz file.
>
> Please, how do I go about this?
>
> Thanks
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Eric Gyabeng Fuakye (efuakye) said : #2

Good!

Thanks, I found out the conversion of root to lhe is much easier to me.

Cheers