Hello,

I want to run Madgraph through a batch system (and have done previously). The submission script settings I used are as follows:

import model heft
define l = l+ l-
define nu = vl vl~
generate p p > h j, h > j j l nu
output higgs_lvjj_200
launch higgs_lvjj_200

pythia=ON
pgs=OFF
done
set nevents 5000
set ptj 200
done

My problem is that this does not set the number of events or transverse jet momentum to the required values - it just ignores them. Note, this worked as desired when I had 'pythia=OFF'. Any thoughts as to how to solve this? Also note: the output from the batch of what happened does not show the option where you change the cards (it did previously).

Many thanks,
James

## Question information

Language:
English Edit question
Status:
For:
Assignee:
No assignee Edit question
Last query:
2018-01-12
2018-01-14
 Olivier Mattelaer (olivier-mattelaer) said on 2018-01-12: #1

Hi James,

Thanks for the information. This is indeed a bug of the new version.
One quick workaround is to remove your first "done" in the script. i.e. do

import model heft
define l = l+ l-
define nu = vl vl~
generate p p > h j, h > j j l nu
output higgs_lvjj_200
launch higgs_lvjj_200

pythia=ON
pgs=OFF
set nevents 5000
set ptj 200
done

I will fix this for the next version.
Thanks a lot for the information,

Olivier

 Olivier Mattelaer (olivier-mattelaer) said on 2018-01-14: #2

Hi,

Just to be complete, here is the patch that fix the issue:
@@ -2365,7 +2365,8 @@
if 'allow_arg' in opts:
allowed_args += opts['allow_arg']
del opts['allow_arg']
-
+
+ allowed_args +=["0", "done"]
super(ControlSwitch, self).__init__(question, allowed_args, *args, **opts)
self.options = self.mother_interface.options

Thanks,

Olivier