madminer-tool/madminer

Parton_level_analysis script does not work

Closed this issue · 2 comments

Hi,

I'm trying to run the parton level analysis example using MG5 v 2_7_2 which is compatible with python3.
Everything goes well till the step: lhe.analyse_samples in which I get:

.....
~/.local/lib/python3.6/site-packages/madminer-0.7.6-py3.6.egg/madminer/utils/interfaces/lhe.py in parse_lhe_file(filename, sampling_benchmark, observables, observables_required, observables_defaults, cuts, cuts_default_pass, efficiencies, efficiencies_default_pass, benchmark_names, is_background, energy_resolutions, pt_resolutions, eta_resolutions, phi_resolutions, k_factor, parse_events_as_xml, systematics_dict)
260 output_weights[benchmark_name] = weights_all_events[sampling_benchmark]
261 else:
--> 262 output_weights[benchmark_name] = weights_all_events[benchmark_name]
263 for syst_name, syst_data in six.iteritems(systematics_dict):
264 for (

Key_error = 'sm'

Any ideas about what is going on ?

Thanks !

Roberto

Hi @rruizdeaustri ,

Apologies for the super-delayed response.

My initial suggestion would be to skip MadGraph 2.7.X, and jump directly to 2.8.X or 2.9.X. The reason for this is that, even if the MadGraph migration to Python3 happened on 2.7.0 (basically when they said "Now is Python3 compatible", which timed out with the 2.7.0 release... seriously, who does that? 🙄 ), I have seen many issues on MadGraph forum suggesting to ditch the 2.7.X series due to an incomplete migration.

We have an experiment making use of MadGraph 2.9.3 and it works well. Could you try and confirm if this is your case too?

Closing issue due to inactivity.