loop_sm-no_b_mass producess "Invalid restriction card" error with default cards

Bug #1691380 reported by Marc de Beurs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Fix Released
Undecided
Unassigned

Bug Description

Dear experts,

I am using the latest madgraph version (2.5.4) and since the update I obtain an error.

When I run the following commands:

import model loop_sm-no_b_mass
set complex_mass_scheme True
generate p p > p w+ b $$ w+ w- z a QED=3 QCD=0 [QCD]

with the default cards, I obtain the following error:

INFO: Update the dependent parameter of the param_card.dat
Command "launch " interrupted with error:
MadGraph5Error : Invalid restriction card (not same block)
     set(['sminputs', 'mass', 'loop', 'decay']) != set(['yukawa', 'sminputs', 'mass', 'loop', 'decay']).
     Missing block: yukawa
     Unknown block :
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/run_01_tag_1_debug.log'.
Please attach this file to your report.

This problem does seem to be fixed when I also adjust the complex_mass_scheme to True inside the SubProcesses/proc_characteristics file.

However it would be nice if this error could be resolved with a patch (and fixed in later versions)
Below you can find my log file.

Cheers Marc

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 5.2.5.4 20xx-xx-xx *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* and *
#* http://amcatnlo.cern.ch *
#* *
#************************************************************
#* *
#* Command File for aMCatNLO *
#* *
#* run as ./bin/aMCatNLO.py filename *
#* *
#************************************************************
launch
Traceback (most recent call last):
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/extended_cmd.py", line 1415, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/extended_cmd.py", line 1369, in onecmd_orig
    return func(arg, **opt)
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/amcatnlo_run_interface.py", line 1212, in do_launch
    mode = self.ask_run_configuration(mode, options)
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/amcatnlo_run_interface.py", line 5066, in ask_run_configuration
    self.ask_edit_cards(cards, plot=False, first_cmd=first_cmd)
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/common_run_interface.py", line 871, in ask_edit_cards
    self.ask, first_cmd=first_cmd)
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/common_run_interface.py", line 933, in ask_edit_card_static
    cards=cards, mode=mode, **opt)
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/extended_cmd.py", line 1117, in ask
    fct=question_instance, fct_timeout=fct_timeout)
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/extended_cmd.py", line 1625, in timed_input
    result = fct(question)
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/extended_cmd.py", line 1982, in __call__
    return self.cmdloop()
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/extended_cmd.py", line 2146, in cmdloop
    super(SmartQuestion,self).cmdloop(intro)
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/extended_cmd.py", line 167, in cmdloop
    stop = self.postcmd(stop, line)
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/common_run_interface.py", line 5215, in postcmd
    self.do_update('dependent', timer=20)
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/common_run_interface.py", line 5257, in do_update
    self.do_compute_widths('')
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/common_run_interface.py", line 5529, in do_compute_widths
    return self.mother_interface.do_compute_widths(line)
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/common_run_interface.py", line 2084, in do_compute_widths
    opts = self.check_compute_widths(args)
  File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/common_run_interface.py", line 240, in check_compute_widths
    'ufomodel'), decay=True, complex_mass_scheme=force_CMS)
  File "/data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3/models/import_ufo.py", line 182, in import_model
    keep_external=keep_external, complex_mass_scheme=complex_mass_scheme)
  File "/data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3/models/import_ufo.py", line 1593, in restrict_model
    complex_mass_scheme=complex_mass_scheme)
  File "/data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3/models/model_reader.py", line 134, in set_parameters_and_couplings
    raise MadGraph5Error, msg
MadGraph5Error: Invalid restriction card (not same block)
    set(['wolfenstein', 'mass', 'loop', 'sminputs', 'decay']) != set(['wolfenstein', 'yukawa', 'decay', 'mass', 'sminputs', 'loop']).
    Missing block: yukawa
    Unknown block :
Value of current Options:
              text_editor : None
              web_browser : None
        cluster_temp_path : None
                  timeout : 0
       cluster_local_path : None
            cluster_queue : generic
         madanalysis_path : /data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3/MadAnalysis
                   lhapdf : lhapdf-config
             cluster_size : 93
           cluster_memory : None
                    pjfry : None
    cluster_status_update : (600, 30)
             cluster_time : None
            f2py_compiler : None
                  collier : /data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3/HEPTools/lib
               hepmc_path : /data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3/HEPTools/hepmc
mg5amc_py8_interface_path : /data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3/HEPTools/MG5aMC_PY8_interface
             pythia8_path : /data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3/HEPTools/pythia8
                hwpp_path : None
   automatic_html_opening : True
       cluster_retry_wait : 300
             stdout_level : None
          pythia-pgs_path : /data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3/pythia-pgs
                 mg5_path : /data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3
                  td_path : /data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3/td
             delphes_path : /data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3/Delphes
              thepeg_path : /data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3/HEPTools/herwig++
             cluster_type : pbs
        madanalysis5_path : None
      exrootanalysis_path : /data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3/ExRootAnalysis
         fortran_compiler : None
                  nb_core : 8
              auto_update : 7
         cluster_nb_retry : 1
               eps_viewer : None
             syscalc_path : None
                  fastjet : /data/atlas/users/mdebeurs/hep/MG5_aMC_v2_4_3/HEPTools/fastjet/bin/fastjet-config
                    golem : None
             cpp_compiler : None
      notification_center : True
                 run_mode : 2
#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.5.4 2017-03-28 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadGraph5_aMC@NLO *
#* *
#* run as ./bin/mg5_aMC filename *
#* *
#************************************************************
set group_subprocesses Auto
set ignore_six_quark_processes False
set loop_optimized_output True
set low_mem_multicore_nlo_generation False
set loop_color_flows False
set gauge unitary
set complex_mass_scheme False
set max_npoint_for_channel 0
import model sm
define p = g u c d s u~ c~ d~ s~
define j = g u c d s u~ c~ d~ s~
define l+ = e+ mu+
define l- = e- mu-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
set complex_mass_scheme True
import model loop_sm-no_b_mass
define p = 21 2 4 1 3 -2 -4 -1 -3 5 -5 # pass to 5 flavors
define j = p
generate p p > p w+ b $$ w+ w- z a QED=3 QCD=0 [QCD]
output NLO
######################################################################
## PARAM_CARD AUTOMATICALY GENERATED BY MG5 FOLLOWING UFO MODEL ####
######################################################################
## ##
## Width set on Auto will be computed following the information ##
## present in the decay.py files of the model. ##
## See arXiv:1402.1178 for more details. ##
## ##
######################################################################

###################################
## INFORMATION FOR LOOP
###################################
Block loop
    1 9.118800e+01 # MU_R

###################################
## INFORMATION FOR MASS
###################################
Block mass
    6 1.730000e+02 # MT
   15 1.777000e+00 # MTA
   23 9.118800e+01 # MZ
   24 8.041900e+01 # MW
   25 1.250000e+02 # MH
## Dependent parameters, given by model restrictions.
## Those values should be edited following the
## analytical expression. MG5 ignores those values
## but they are important for interfacing the output of MG5
## to external program such as Pythia.
  1 0.000000 # d : 0.0
  2 0.000000 # u : 0.0
  3 0.000000 # s : 0.0
  4 0.000000 # c : 0.0
  5 0.000000 # b : 0.0
  11 0.000000 # e- : 0.0
  12 0.000000 # ve : 0.0
  13 0.000000 # mu- : 0.0
  14 0.000000 # vm : 0.0
  16 0.000000 # vt : 0.0
  21 0.000000 # g : 0.0
  22 0.000000 # a : 0.0

###################################
## INFORMATION FOR SMINPUTS
###################################
Block sminputs
    1 1.325070e+02 # aEWM1
    3 1.180000e-01 # aS

###################################
## INFORMATION FOR DECAY
###################################
DECAY 6 1.491500e+00 # WT
DECAY 23 2.441404e+00 # WZ
DECAY 24 Auto # WW
DECAY 25 6.382339e-03 # WH
## Dependent parameters, given by model restrictions.
## Those values should be edited following the
## analytical expression. MG5 ignores those values
## but they are important for interfacing the output of MG5
## to external program such as Pythia.
DECAY 1 0.000000 # d : 0.0
DECAY 2 0.000000 # u : 0.0
DECAY 3 0.000000 # s : 0.0
DECAY 4 0.000000 # c : 0.0
DECAY 5 0.000000 # b : 0.0
DECAY 11 0.000000 # e- : 0.0
DECAY 12 0.000000 # ve : 0.0
DECAY 13 0.000000 # mu- : 0.0
DECAY 14 0.000000 # vm : 0.0
DECAY 15 0.000000 # ta- : 0.0
DECAY 16 0.000000 # vt : 0.0
DECAY 21 0.000000 # g : 0.0
DECAY 22 0.000000 # a : 0.0
#***********************************************************************
# MadGraph5_aMC@NLO *
# *
# run_card.dat aMC@NLO *
# *
# This file is used to set the parameters of the run. *
# *
# Some notation/conventions: *
# *
# Lines starting with a hash (#) are info or comments *
# *
# mind the format: value = variable ! comment *
# *
# Some of the values of variables can be list. These can either be *
# comma or space separated. *
#***********************************************************************
#
#*******************
# Running parameters
#*******************
#
#***********************************************************************
# Tag name for the run (one word) *
#***********************************************************************
  tag_1 = run_tag ! name of the run
#***********************************************************************
# Number of LHE events (and their normalization) and the required *
# (relative) accuracy on the Xsec. *
# These values are ignored for fixed order runs *
#***********************************************************************
 10000 = nevents ! Number of unweighted events requested
 -1.0 = req_acc ! Required accuracy (-1=auto determined from nevents)
 -1 = nevt_job! Max number of events per job in event generation.
                 ! (-1= no split).
#***********************************************************************
# Normalize the weights of LHE events such that they sum or average to *
# the total cross section *
#***********************************************************************
 average = event_norm ! average or sum
#***********************************************************************
# Number of points per itegration channel (ignored for aMC@NLO runs) *
#***********************************************************************
 0.01 = req_acc_FO ! Required accuracy (-1=ignored, and use the
                     ! number of points and iter. below)
# These numbers are ignored except if req_acc_FO is equal to -1
 5000 = npoints_FO_grid ! number of points to setup grids
 4 = niters_FO_grid ! number of iter. to setup grids
 10000 = npoints_FO ! number of points to compute Xsec
 6 = niters_FO ! number of iter. to compute Xsec
#***********************************************************************
# Random number seed *
#***********************************************************************
 0 = iseed ! rnd seed (0=assigned automatically=default))
#***********************************************************************
# Collider type and energy *
#***********************************************************************
 1 = lpp1 ! beam 1 type (0 = no PDF)
 1 = lpp2 ! beam 2 type (0 = no PDF)
 6500.0 = ebeam1 ! beam 1 energy in GeV
 6500.0 = ebeam2 ! beam 2 energy in GeV
#***********************************************************************
# PDF choice: this automatically fixes also alpha_s(MZ) and its evol. *
#***********************************************************************
 nn23nlo = pdlabel ! PDF set
 244600 = lhaid ! If pdlabel=lhapdf, this is the lhapdf number. Only
              ! numbers for central PDF sets are allowed. Can be a list;
              ! PDF sets beyond the first are included via reweighting.
#***********************************************************************
# Include the NLO Monte Carlo subtr. terms for the following parton *
# shower (HERWIG6 | HERWIGPP | PYTHIA6Q | PYTHIA6PT | PYTHIA8) *
# WARNING: PYTHIA6PT works only for processes without FSR!!!! *
#***********************************************************************
  HERWIG6 = parton_shower
  1.0 = shower_scale_factor ! multiply default shower starting
                                  ! scale by this factor
#***********************************************************************
# Renormalization and factorization scales *
# (Default functional form for the non-fixed scales is the sum of *
# the transverse masses divided by two of all final state particles *
# and partons. This can be changed in SubProcesses/set_scales.f or via *
# dynamical_scale_choice option) *
#***********************************************************************
 False = fixed_ren_scale ! if .true. use fixed ren scale
 False = fixed_fac_scale ! if .true. use fixed fac scale
 91.118 = muR_ref_fixed ! fixed ren reference scale
 91.118 = muF_ref_fixed ! fixed fact reference scale
 -1 = dynamical_scale_choice ! Choose one (or more) of the predefined
           ! dynamical choices. Can be a list; scale choices beyond the
           ! first are included via reweighting
 1.0 = muR_over_ref ! ratio of current muR over reference muR
 1.0 = muF_over_ref ! ratio of current muF over reference muF
#***********************************************************************
# Reweight variables for scale dependence and PDF uncertainty *
#***********************************************************************
 1.0, 2.0, 0.5 = rw_rscale ! muR factors to be included by reweighting
 1.0, 2.0, 0.5 = rw_fscale ! muF factors to be included by reweighting
 True = reweight_scale ! Reweight to get scale variation using the
            ! rw_rscale and rw_fscale factors. Should be a list of
            ! booleans of equal length to dynamical_scale_choice to
            ! specify for which choice to include scale dependence.
 False = reweight_PDF ! Reweight to get PDF uncertainty. Should be a
            ! list booleans of equal length to lhaid to specify for
            ! which PDF set to include the uncertainties.
#***********************************************************************
# Store reweight information in the LHE file for off-line model- *
# parameter reweighting at NLO+PS accuracy *
#***********************************************************************
 False = store_rwgt_info ! Store info for reweighting in LHE file
#***********************************************************************
# ickkw parameter: *
# 0: No merging *
# 3: FxFx Merging - WARNING! Applies merging only at the hard-event *
# level. After showering an MLM-type merging should be applied as *
# well. See http://amcatnlo.cern.ch/FxFx_merging.htm for details. *
# 4: UNLOPS merging (with pythia8 only). No interface from within *
# MG5_aMC available, but available in Pythia8. *
# -1: NNLL+NLO jet-veto computation. See arxiv:1412.8408 [hep-ph]. *
#***********************************************************************
 0 = ickkw
#***********************************************************************
#
#***********************************************************************
# BW cutoff (M+/-bwcutoff*Gamma). Determines which resonances are *
# written in the LHE event file *
#***********************************************************************
 15.0 = bwcutoff
#***********************************************************************
# Cuts on the jets. Jet clustering is performed by FastJet. *
# - When matching to a parton shower, these generation cuts should be *
# considerably softer than the analysis cuts. *
# - More specific cuts can be specified in SubProcesses/cuts.f *
#***********************************************************************
  1.0 = jetalgo ! FastJet jet algorithm (1=kT, 0=C/A, -1=anti-kT)
  0.7 = jetradius ! The radius parameter for the jet algorithm
 10.0 = ptj ! Min jet transverse momentum
 -1.0 = etaj ! Max jet abs(pseudo-rap) (a value .lt.0 means no cut)
#***********************************************************************
# Cuts on the charged leptons (e+, e-, mu+, mu-, tau+ and tau-) *
# More specific cuts can be specified in SubProcesses/cuts.f *
#***********************************************************************
  0.0 = ptl ! Min lepton transverse momentum
 -1.0 = etal ! Max lepton abs(pseudo-rap) (a value .lt.0 means no cut)
  0.0 = drll ! Min distance between opposite sign lepton pairs
  0.0 = drll_sf ! Min distance between opp. sign same-flavor lepton pairs
  0.0 = mll ! Min inv. mass of all opposite sign lepton pairs
 30.0 = mll_sf ! Min inv. mass of all opp. sign same-flavor lepton pairs
#***********************************************************************
# Photon-isolation cuts, according to hep-ph/9801442. When ptgmin=0, *
# all the other parameters are ignored. *
# More specific cuts can be specified in SubProcesses/cuts.f *
#***********************************************************************
 20.0 = ptgmin ! Min photon transverse momentum
 -1.0 = etagamma ! Max photon abs(pseudo-rap)
  0.4 = R0gamma ! Radius of isolation code
  1.0 = xn ! n parameter of eq.(3.4) in hep-ph/9801442
  1.0 = epsgamma ! epsilon_gamma parameter of eq.(3.4) in hep-ph/9801442
 True = isoEM ! isolate photons from EM energy (photons and leptons)
#***********************************************************************
# For aMCfast+APPLGRID use in PDF fitting (http://amcfast.hepforge.org)*
#***********************************************************************
 0 = iappl ! aMCfast switch (0=OFF, 1=prepare grids, 2=fill grids)
#***********************************************************************

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1691380] [NEW] loop_sm-no_b_mass producess "Invalid restriction card" error with default cards
Download full text (48.1 KiB)

Hi Marc,

Here is the patch:

http://bazaar.launchpad.net/~mg5core2/mg5amcnlo/2.5.5/diff/276?context=3

Cheers,

Olivier

> On 17 May 2017, at 03:01, Marc de Beurs <email address hidden> wrote:
>
> Public bug reported:
>
> Dear experts,
>
> I am using the latest madgraph version (2.5.4) and since the update I
> obtain an error.
>
> When I run the following commands:
>
> import model loop_sm-no_b_mass
> set complex_mass_scheme True
> generate p p > p w+ b $$ w+ w- z a QED=3 QCD=0 [QCD]
>
> with the default cards, I obtain the following error:
>
> INFO: Update the dependent parameter of the param_card.dat
> Command "launch " interrupted with error:
> MadGraph5Error : Invalid restriction card (not same block)
> set(['sminputs', 'mass', 'loop', 'decay']) != set(['yukawa', 'sminputs', 'mass', 'loop', 'decay']).
> Missing block: yukawa
> Unknown block :
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in '/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/run_01_tag_1_debug.log'.
> Please attach this file to your report.
>
>
> This problem does seem to be fixed when I also adjust the complex_mass_scheme to True inside the SubProcesses/proc_characteristics file.
>
> However it would be nice if this error could be resolved with a patch (and fixed in later versions)
> Below you can find my log file.
>
> Cheers Marc
>
> #************************************************************
> #* MadGraph5_aMC@NLO *
> #* *
> #* * * *
> #* * * * * *
> #* * * * * 5 * * * * *
> #* * * * * *
> #* * * *
> #* *
> #* *
> #* VERSION 5.2.5.4 20xx-xx-xx *
> #* *
> #* The MadGraph5_aMC@NLO Development Team - Find us at *
> #* https://server06.fynu.ucl.ac.be/projects/madgraph *
> #* and *
> #* http://amcatnlo.cern.ch *
> #* *
> #************************************************************
> #* *
> #* Command File for aMCatNLO *
> #* *
> #* run as ./bin/aMCatNLO.py filename *
> #* *
> #************************************************************
> launch
> Traceback (most recent call last):
> File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bin/internal/extended_cmd.py", line 1415, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/data/atlas/users/mdebeurs/MG5/Test/loop_sm/NLO/bi...

Changed in mg5amcnlo:
status: New → Fix Committed
Revision history for this message
Marc de Beurs (mdebeurs) wrote :

Hi Olivier,

Thanks this indeed works! However the error still shows up when decaying the events with madspin...

I also found out that setting the decay width inside the param_card to Auto also produces the error...

It must have something to do with the complex_mass_scheme. When this is set to true, no yukawa block is needed. However the routine that checks the param_card still demands it (when Madspin is called, or the decay width calculator..)

Attached is the log file where the error occurs in Madspin, if you would like anything else please let me know.

Thanks for your help!
Cheers Marc

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1691380] Re: loop_sm-no_b_mass producess "Invalid restriction card" error with default cards
Download full text (28.2 KiB)

Hi Marc,

Thanks for the information.

Here is the patch to fix such problem:

=== modified file 'MadSpin/decay.py'
--- MadSpin/decay.py 2017-05-09 08:18:26 +0000
+++ MadSpin/decay.py 2017-05-21 16:47:30 +0000
@@ -1638,6 +1638,12 @@
                  ' '.join('--%s=%s' % (key,value) for (key,value) in opts.items()
                         if key not in ['model', 'force', 'particles'] and value))
         cmd.exec_cmd('import model %s' % model.get('modelpath+restriction'))
+
+ #pattern for checking complex mass scheme.
+ has_cms = re.compile(r'''set\s+complex_mass_scheme\s*(True|T|1|true|$|;)''', re.M)
+ force_CMS = has_cms.search(self.banner['mg5proccard'])
+ if force_CMS:
+ cmd.exec_cmd('set complex_mass_scheme')
 # cmd._curr_model = model
 # cmd._curr_fortran_model = helas_call_writers.FortranUFOHelasCallWriter(model)
         cmd.exec_cmd(line)

=== modified file 'madgraph/interface/common_run_interface.py'
--- madgraph/interface/common_run_interface.py 2017-05-16 15:19:50 +0000
+++ madgraph/interface/common_run_interface.py 2017-05-21 16:28:16 +0000
@@ -219,7 +219,7 @@
             raise self.ConfigurationError, '''Can\'t load MG5.
             The variable mg5_path should not be correctly configure.'''

-
+
         ufo_path = pjoin(self.me_dir,'bin','internal', 'ufomodel')
         # Import model
         if not MADEVENT:
@@ -232,10 +232,7 @@
             model = import_ufo.import_model(modelname, decay=True,
                                    restrict=True, complex_mass_scheme=force_CMS)
         else:
- #pattern for checking complex mass scheme.
- has_cms = re.compile(r'''set\s+complex_mass_scheme\s*(True|T|1|true|$|;)''')
- force_CMS = has_cms.search(open(pjoin(self.me_dir,'Cards',
- 'proc_card_mg5.dat')).read())
+ force_CMS = self.proc_characteristics['complex_mass_scheme']
             model = import_ufo.import_model(pjoin(self.me_dir,'bin','internal',
                          'ufomodel'), decay=True, complex_mass_scheme=force_CMS)

@@ -2786,7 +2783,11 @@
         cross = self.results[self.run_name].get_current_info()['cross']

         delphes_log = pjoin(self.me_dir, 'Events', self.run_name, "%s_delphes.log" % tag)
- self.cluster.launch_and_wait(prog,
+ if not self.cluster:
+ clus = cluster.onecore
+ else:
+ clus = self.cluster
+ clus.launch_and_wait(prog,
                         argument= [delphes_dir, self.run_name, tag, str(cross), filepath],
                         stdout=delphes_log, stderr=subprocess.STDOUT,
                         cwd=pjoin(self.me_dir,'Events'))
@@ -3388,7 +3389,6 @@
             return

         # First need to load MadSpin
-
         # Check that MG5 directory is present .
         if MADEVENT and not self.options['mg5_path']:
             raise self.InvalidCmd, '''The module decay_events requires that MG5 is installed on the system.

Cheers,

Olivier

> On 21 May 2017, at 14:30, Marc de Beurs <email address hidden> wrote:
>
> Hi Olivier,
>
> Thanks this indeed works! However the error still s...

Revision history for this message
Marc de Beurs (mdebeurs) wrote :

Thanks Olivier!

This solved my problems.

Cheers Marc

Revision history for this message
Josh McFayden (mcfayden) wrote :

Thanks Olivier.
One more thing - can you tell us when the next public release that this patch with go into might be available?
Best,
Josh

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Hi Josh,

In principle the next release will be available in a couple of days.

Cheers,

Olivier

Changed in mg5amcnlo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.