Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systematics cannot be read by MadGraph #523

Open
mmenen opened this issue Oct 27, 2022 · 3 comments
Open

Systematics cannot be read by MadGraph #523

mmenen opened this issue Oct 27, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@mmenen
Copy link

mmenen commented Oct 27, 2022

Hi all,

first of all the relevant program version I use:
Python 3.8.2
MadMiner 0.9.3
MadGraph 3.4.0
Pythia 8.306
Delphes 3.5.0

I am trying to create an analysis with some systematics using Delphes. If I just execute the part 1 and 2b from the tutorial_particle_physics example, everything works fine. However, when I simply add systematics to part 1 of the tutorial:
miner.add_systematics("norm", norm_variation=1.1)
miner.add_systematics("scale", scale="mu", scale_variations=(0.5, 1.0, 2.0))
the MadGraph Event generation doesn't work anymore.

MadMiner itself does not give me an error but when checking the run folder in mg_processes, there is only an unweighted.lhe file.
Additionally, the MadGraph debug file gives the following error:

File "{mg_directory}/madgraph/various/systematics.py", line 191, in
self.mur=[float(i) for i in mur]
ValueError: could not convert string to float: 'b'

which seems to come from the run_card written by MadMiner, which includes the following lines:

True = use_syst ! Enable systematics studies

systematics = systematics_program ! none, systematics [python], SysCalc [depreceted, C++]
['--mur=b', '0.5', '1.0', '2.0'', '', '--muf=b'0.5,1.0,2.0'', ', ', '--together=mur', 'muf', '', '--dyn=-1''] = systematics_arguments ! see: https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/Systematics#Systematicspythonmodule

So mur and muf are written to the run_card as bytes, which MadGraph apparently can't handle.

@Sinclert Sinclert added the bug Something isn't working label Oct 27, 2022
@Sinclert
Copy link
Member

Hi @mmenen 👋🏻

First of all, thanks for reporting this problem.

Given the valuable information you provided, I detected several issues:

  • Madminer version 0.9.3. Please use latest version 0.9.5, as a couple of bug were fixed since 0.9.3.
  • MadGraph version 3.4.0. We have not checked MadGraph compatibility since their 2.9.Xversions (see how we are currently installing MadGraph within the online tutorial Docker image here).

To start, could you try reproducing this error with Madminer 0.9.5 and MadGraph 2.9.X?

@Sinclert
Copy link
Member

Sinclert commented Dec 2, 2022

Hey @mmenen ! Did you try the setup I described?

@mmenen
Copy link
Author

mmenen commented Dec 6, 2022

Hi @Sinclert, sorry for the late answer.
I have updated MadMiner to version 0.9.5 but this didn't fix the issue, so I suppose it is indeed a compatibility issue with MadGraph 3.X.
Installing and running MadGraph 2.9.X has worked for me but running the event generation with MadMiner lead to a compiling issue with gfortran. I will give an update once this is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants