Plot of cross-section vs varying mass.

Asked by ibb on 2018-09-18

Hello!

I am totally new to Madgraph, and I am currently trying to plot the cross-section versus varying mass of a particle.
Is it possible to plot the figures directly through the Madgraph after launching the process? or do I need to use a seperate program such as matplotlib, where I import the data in the .lhe file? Because I am not sure how to do that. Am I supposed to create a python script where I use the .lhe file and plot? How would I then extract the specific thing I want to plot?

Thanks in advance

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
ibb
Solved:
2018-09-18
Last query:
2018-09-18
Last reply:
2018-09-18

Hi,

I can understand your question in two ways:

1) plotting the DIFFERENTIAL cross-section in function of the INVARIANT mass of a given particle
2) plotting the TOTAL cross-section in function of the POLE mass of a given particle.

For the first question, YES we can do it automatically. Or more exactly we can link to program who can do it automatically.
they are multiple option but you can try
install MadAnalysis5

then it will be making many plot automatically that you can customise if needed
(you can also have automatic plot with MadAnalysis4 if the above one has some installation problem)

For the second question, NO we can not do it automatically.
BUT if you use the built-in scan method (i.e. set in the param_card the value scan:[1,2,3,4,5,6] for a given mass) then a multi_column file will be written with the value of the total cross-section.
From such file it is trivial to make a plot from your favorite program (but we did not automate that part)

Cheers,

Olivier

> On 18 Sep 2018, at 11:57, ibb <email address hidden> wrote:
>
> New question #674088 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/674088
>
> Hello!
>
> I am totally new to Madgraph, and I am currently trying to plot the cross-section versus varying mass of a particle.
> Is it possible to plot the figures directly through the Madgraph after launching the process? or do I need to use a seperate program such as matplotlib, where I import the data in the .lhe file? Because I am not sure how to do that. Am I supposed to create a python script where I use the .lhe file and plot? How would I then extract the specific thing I want to plot?
>
> Thanks in advance
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

ibb (ibb08) said : #2

Hi!

Thanks for the response. Now I only have questions regarding 1): I have MadAnalysis5 installed, how do I generate these plots after I've launched my output file? What type of commands would I need to use?

Cheers

Hi,

So if you want to (re) do plots for an already existing event file.
you have to launch the code via
./bin/madevent (in the output directory)
and then type
madanalysis5_parton
or
madanalysis5_hadron

to (re) do the plots.

Cheers,

Olivier

> On 18 Sep 2018, at 12:53, ibb <email address hidden> wrote:
>
> Question #674088 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/674088
>
> Status: Answered => Solved
>
> ibb confirmed that the question is solved:
> Hi!
>
> Thanks for the response. Now I only have questions regarding 1): I
> have MadAnalysis5 installed, how do I generate these plots after I've
> launched my output file? What type of commands would I need to use?
>
> Cheers
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.