Skip to content

Systematics cannot be read by MadGraph #523

@mmenen

Description

@mmenen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions