Plot of cross-section vs varying mass.

Asked by ibb

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:
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

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.

Revision history for this message
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

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

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.

Revision history for this message
Debabrata Sahoo (dpops98) said :
#4

Dear Olivier,
How do they plot the 95% CL upper limit plot of production cross-section versus mass? Means what package they use or what the process is?

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

In principle both madanalysis and rivet (and contur) can do CL plot when they have the data associated to the analysis. You should ask to the authors of those tools for more details.

Cheers,

Olivier