Madgraph through batch

Asked by JamesB on 2018-01-12

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:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2018-01-12
Last reply:
2018-01-14

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

Hi,

Just to be complete, here is the patch that fix the issue:
=== modified file 'madgraph/interface/extended_cmd.py'
--- madgraph/interface/extended_cmd.py 2018-01-11 19:56:01 +0000
+++ madgraph/interface/extended_cmd.py 2018-01-14 14:30:24 +0000
@@ -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

Can you help with this problem?

Provide an answer of your own, or ask JamesB for more information if necessary.

To post a message you must log in.