Manipulate HwU histograms

Asked by Antonio Sandroni

Hi, i would like to plot different quantities in the same plot; for example LO sigma and NLO sigma for the same process respect various variables like Pt of one of the incoming/outgoing particles or respect the invariant mass of a pair of particles; then i would like to rapresent, respect one of the previous variables, a combination of differents sigma like sum or moltiplication; is it convenient modify the FixedOrderAnalysis*.f file or i need to import data for example in a Python file and do everything with it?
Where can i find a guide to know how to manipulate HwU files richer than https://answers.launchpad.net/mg5amcnlo/+faq/2671 ?

Antonio

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
Rikkert Frederix Edit question
Solved by:
Rikkert Frederix
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Rikkert Frederix (frederix) said :
#1

Dear Antonio,

The histograms.py package effectively reads a HwU data file and writes a gnuplot wrapper for it. Executing gnuplot gives you then the postscript and pdf files. If you want to make more involved plots, it might be better to modify the gnuplot wrapper file by hand instead of using the histograms.py package.

Best,
Rikkert

Revision history for this message
Antonio Sandroni (antoniosandroni) said :
#2

Do i need to modify histograms.py in MyProcess/bin/internal/histograms.py o in MAdGraph(main folder)/madgraph/variuous/histograms.py?

Also, if in the FO_analyse_card i linked a certain fixed order analysis can i modify the corrispondent fortran file (for example analysis_HwU_template.f ) so that in the pdf output file i have the histogrmas i want?
What is the better way to operate?

Revision history for this message
Antonio Sandroni (antoniosandroni) said :
#3

Not Solved question

Revision history for this message
Rikkert Frederix (frederix) said :
#4

No need to modify histograms.py.

Sure, you should change the analysis to include the distributions you want.

best,
Rikkert

Revision history for this message
Antonio Sandroni (antoniosandroni) said :
#5

What I should do is, taken an histogram with four lines plotted , plot a generic combination(sum, subtraction) of two lines that i choose? Is there a way to do without taking the data from .HwU file and using an external way like matplotlib but whitin the MadGraph analysis?
Antonio

Revision history for this message
Best Rikkert Frederix (frederix) said :
#6

All available options can be obtained by executing a madgraph/various/histograms.py --help.

Best,
Rikkert

Revision history for this message
Antonio Sandroni (antoniosandroni) said :
#7

Thanks Rikkert Frederix, that solved my question.