VBF+MET+Photon MadGraph generation (Update)

Asked by Diallo BOYE

Hello,

I am trying to run a Madgraph job option (JO), which is in MG5_aMC 3.4.2. The process is loop-induced:

generate p p > h a j j [QCD].

The code crashed with the following error:

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 3.4.2 2023-01-20 *
#* *
#* 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 --name=run_01
Traceback (most recent call last):
  File "/cvmfs/atlas.cern.ch/repo/sw/software/23.6/sw/lcg/releases/LCG_102b_ATLAS_13/MCGenerators/madgraph5amc/3.4.2.atlas1/x86_64-centos7-gcc11-opt/madgraph/interface/extended_cmd.py", line 1544, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/cvmfs/atlas.cern.ch/repo/sw/software/23.6/sw/lcg/releases/LCG_102b_ATLAS_13/MCGenerators/madgraph5amc/3.4.2.atlas1/x86_64-centos7-gcc11-opt/madgraph/interface/extended_cmd.py", line 1493, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/work/d/diboye/VBFJOBis/100011/PROCNLO_loop_qcd_qed_sm_Gmu_0/bin/internal/amcatnlo_run_interface.py", line 1784, in do_launch
    evt_file = self.run(mode, options)
  File "/afs/cern.ch/work/d/diboye/VBFJOBis/100011/PROCNLO_loop_qcd_qed_sm_Gmu_0/bin/internal/amcatnlo_run_interface.py", line 2007, in run
    jobs_to_run,jobs_to_collect=self.collect_the_results(options,req_acc,jobs_to_run, \
  File "/afs/cern.ch/work/d/diboye/VBFJOBis/100011/PROCNLO_loop_qcd_qed_sm_Gmu_0/bin/internal/amcatnlo_run_interface.py", line 2274, in collect_the_results
    jobs_to_run_new=self.update_jobs_to_run(req_acc,integration_step,jobs_to_run,fixed_order)
  File "/afs/cern.ch/work/d/diboye/VBFJOBis/100011/PROCNLO_loop_qcd_qed_sm_Gmu_0/bin/internal/amcatnlo_run_interface.py", line 2701, in update_jobs_to_run
    jobs[i]['nevents'] += 1
IndexError: list index out of range
Value of current Options:
             pythia8_path : None
                hwpp_path : None
              thepeg_path : None
               hepmc_path : None
         madanalysis_path : None
        madanalysis5_path : None
          pythia-pgs_path : None
                  td_path : None
             delphes_path : None
      exrootanalysis_path : None
             syscalc_path : /cvmfs/atlas.cern.ch/repo/sw/software/23.6/sw/lcg/releases/MCGenerators/syscalc/1.1.7-6c332/x86_64-centos7-gcc11-opt
               rivet_path : None
                yoda_path : None
                   lhapdf : /cvmfs/atlas.cern.ch/repo/sw/software/23.6/sw/lcg/releases/MCGenerators/lhapdf/6.5.3-d2254/x86_64-centos7-gcc11-opt/bin/lhapdf-config
               lhapdf_py2 : /cvmfs/atlas.cern.ch/repo/sw/software/23.6/sw/lcg/releases/MCGenerators/lhapdf/6.5.3-d2254/x86_64-centos7-gcc11-opt/bin/lhapdf-config
               lhapdf_py3 : /cvmfs/atlas.cern.ch/repo/sw/software/23.6/sw/lcg/releases/MCGenerators/lhapdf/6.5.3-d2254/x86_64-centos7-gcc11-opt/bin/lhapdf-config
                  timeout : 60
            f2py_compiler : None
        f2py_compiler_py2 : None
        f2py_compiler_py3 : None
              web_browser : None
               eps_viewer : None
              text_editor : None
         fortran_compiler : None
             cpp_compiler : None
              auto_update : 0
             cluster_type : condor
    cluster_status_update : (600, 30)
         cluster_nb_retry : 1
       cluster_local_path : None
       cluster_retry_wait : 300
             stdout_level : None
   automatic_html_opening : False
      notification_center : True
                 run_mode : 0
            cluster_queue : None
             cluster_time : None
             cluster_size : 100
           cluster_memory : None
                  nb_core : 1
        cluster_temp_path : None
                  fastjet : /cvmfs/atlas.cern.ch/repo/sw/software/23.6/sw/lcg/releases/LCG_102b_ATLAS_13/fastjet/3.4.0p1/x86_64-centos7-gcc11-opt/bin/fastjet-config
                    ninja : /cvmfs/atlas.cern.ch/repo/sw/software/23.6/sw/lcg/releases/LCG_102b_ATLAS_13/MCGenerators//gosam_contrib/2.0-779ba/x86_64-centos7-gcc11-opt/lib
                  collier : /cvmfs/atlas.cern.ch/repo/sw/software/23.6/sw/lcg/releases/LCG_102b_ATLAS_13/MCGenerators//collier/1.2.5-e3f73/x86_64-centos7-gcc11-opt/lib
      output_dependencies : internal
                 mg5_path : /cvmfs/atlas.cern.ch/repo/sw/software/23.6/sw/lcg/releases/MCGenerators/madgraph5amc/3.4.2.atlas1-4a549/x86_64-centos7-gcc11-opt
#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 3.4.2 2023-01-20 *
#* *
#* 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 low_mem_multicore_nlo_generation False
set complex_mass_scheme False
set include_lepton_initiated_processes False
set gauge unitary
set loop_optimized_output True
set loop_color_flows False
set max_npoint_for_channel 0
set default_unset_couplings 99
set max_t_for_channel 99
set zerowidth_tchannel True
set nlo_mixed_expansion True
import model loop_qcd_qed_sm_Gmu
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~
define p = 21 2 4 1 3 -2 -4 -1 -3 5 -5 22 # pass to 5 flavors
define j = p
define p = g u c d s u~ c~ d~ s~ b b~
define j = g u c d s u~ c~ d~ s~ b b~
set nlo_mixed_expansion False
generate p p > h a j j [QCD]
output -f -nojpeg
######################################################################
## 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 MASS
###################################
Block mass
    6 1.733000e+02 # MT
   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.000000e+00 # d : 0.0
  2 0.000000e+00 # u : 0.0
  3 0.000000e+00 # s : 0.0
  4 0.000000e+00 # c : 0.0
  5 0.000000e+00 # b : 0.0
  11 0.000000e+00 # e- : 0.0
  12 0.000000e+00 # ve : 0.0
  13 0.000000e+00 # mu- : 0.0
  14 0.000000e+00 # vm : 0.0
  15 0.000000e+00 # ta- : 0.0
  16 0.000000e+00 # vt : 0.0
  21 0.000000e+00 # g : 0.0
  22 0.000000e+00 # a : 0.0
  9000002 9.118800e+01 # ghz : MZ
  9000003 8.041900e+01 # ghwp : MW
  9000004 8.041900e+01 # ghwm : MW
  250 9.118800e+01 # g0 : MZ
  251 8.041900e+01 # g+ : MW

###################################
## INFORMATION FOR SMINPUTS
###################################
Block sminputs
    2 1.166390e-05 # Gf
    3 1.180000e-01 # aS (Note that Parameter not used if you use a PDF set)

###################################
## INFORMATION FOR YUKAWA
###################################
Block yukawa
    6 1.733000e+02 # ymt

###################################
## INFORMATION FOR DECAY
###################################
DECAY 6 1.377580e+00 # WT
DECAY 23 2.498770e+00 # WZ
DECAY 24 2.092910e+00 # WW
DECAY 25 4.074680e-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.000000e+00 # d : 0.0
DECAY 2 0.000000e+00 # u : 0.0
DECAY 3 0.000000e+00 # s : 0.0
DECAY 4 0.000000e+00 # c : 0.0
DECAY 5 0.000000e+00 # b : 0.0
DECAY 11 0.000000e+00 # e- : 0.0
DECAY 12 0.000000e+00 # ve : 0.0
DECAY 13 0.000000e+00 # mu- : 0.0
DECAY 14 0.000000e+00 # vm : 0.0
DECAY 15 0.000000e+00 # ta- : 0.0
DECAY 16 0.000000e+00 # vt : 0.0
DECAY 21 0.000000e+00 # g : 0.0
DECAY 22 0.000000e+00 # a : 0.0
DECAY 250 2.498770e+00 # g0 : WZ
DECAY 251 2.092910e+00 # g+ : WW
#===========================================================
# QUANTUM NUMBERS OF NEW STATE(S) (NON SM PDG CODE)
#===========================================================

Block QNUMBERS 9000001 # gha
        1 0 # 3 times electric charge
        2 1 # number of spin states (2S+1)
        3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
        4 1 # Particle/Antiparticle distinction (0=own anti)
Block QNUMBERS 9000002 # ghz
        1 0 # 3 times electric charge
        2 1 # number of spin states (2S+1)
        3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
        4 1 # Particle/Antiparticle distinction (0=own anti)
Block QNUMBERS 9000003 # ghwp
        1 3 # 3 times electric charge
        2 1 # number of spin states (2S+1)
        3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
        4 1 # Particle/Antiparticle distinction (0=own anti)
Block QNUMBERS 9000004 # ghwm
        1 -3 # 3 times electric charge
        2 1 # number of spin states (2S+1)
        3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
        4 1 # Particle/Antiparticle distinction (0=own anti)
Block QNUMBERS 9000005 # ghg
        1 0 # 3 times electric charge
        2 1 # number of spin states (2S+1)
        3 8 # colour rep (1: singlet, 3: triplet, 8: octet)
        4 1 # Particle/Antiparticle distinction (0=own anti)
Block QNUMBERS 250 # g0
        1 0 # 3 times electric charge
        2 1 # number of spin states (2S+1)
        3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
        4 0 # Particle/Antiparticle distinction (0=own anti)
Block QNUMBERS 251 # g+
        1 3 # 3 times electric charge
        2 1 # number of spin states (2S+1)
        3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
        4 1 # Particle/Antiparticle distinction (0=own anti)
#***********************************************************************
# 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. *
# *
# To display additional parameter, you can use the command: *
# update to_full *
#***********************************************************************
#
#*******************
# 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).
#***********************************************************************
# Output format
#***********************************************************************
-1.0 = time_of_flight ! threshold (in mm) below which the invariant livetime is not written (-1 means not written)
average = event_norm ! average/sum/bias. Normalization of the weight in the LHEF
#***********************************************************************
# 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 *
#***********************************************************************
12345 = 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. *
#***********************************************************************
'lhapdf' = pdlabel ! PDF set
260000 = 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!!!! *
#***********************************************************************
'PYTHIA8' = 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
10 = 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.
.true. = 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 *
#***********************************************************************
.true. = 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 = bwcutoff
#***********************************************************************
# Cuts on the jets. Jet clustering is performed by FastJet. *
# - If gamma_is_j, photons are also clustered with jets. *
# Otherwise, they will be treated as tagged particles and photon *
# isolation will be applied. Note that photons in the real emission *
# will always be clustered with QCD partons. *
# - 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 = jetalgo ! FastJet jet algorithm (1=kT, 0=C/A, -1=anti-kT)
0.4 = jetradius ! The radius parameter for the jet algorithm
15.0 = ptj ! Min jet transverse momentum
-1 = etaj ! Max jet abs(pseudo-rap) (a value .lt.0 means no cut)
False = gamma_is_j! Wether to cluster photons as jets or not
#***********************************************************************
# 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
#***********************************************************************
# Fermion-photon recombination parameters *
# If Rphreco=0, no recombination is performed *
#***********************************************************************
0.1 = Rphreco ! Minimum fermion-photon distance for recombination
-1.0 = etaphreco ! Maximum abs(pseudo-rap) for photons to be recombined (a value .lt.0 means no cut)
False = lepphreco ! Recombine photons and leptons together
False = quarkphreco ! Recombine photons and quarks together
#***********************************************************************
# Photon-isolation cuts, according to hep-ph/9801442 *
# Not applied if gamma_is_j *
# When ptgmin=0, all the other parameters are ignored *
# More specific cuts can be specified in SubProcesses/cuts.f *
#***********************************************************************
10.0 = ptgmin ! Min photon transverse momentum
3.0 = etagamma ! Max photon abs(pseudo-rap)
0.1 = R0gamma ! Radius of isolation code
2 = xn ! n parameter of eq.(3.4) in hep-ph/9801442
0.1 = epsgamma ! epsilon_gamma parameter of eq.(3.4) in hep-ph/9801442
True = isoEM ! isolate photons from EM energy (photons and leptons)
#***********************************************************************
# Cuts associated to MASSIVE particles identified by their PDG codes. *
# All cuts are applied to both particles and anti-particles, so use *
# POSITIVE PDG CODES only. Example of the syntax is {6 : 100} or *
# {6:100, 25:200} for multiple particles *
#***********************************************************************
{} = pt_min_pdg ! Min pT for a massive particle
{} = pt_max_pdg ! Max pT for a massive particle
{} = mxx_min_pdg ! inv. mass for any pair of (anti)particles
#***********************************************************************
# Use PineAPPL to generate PDF-independent fast-interpolation grid *
# (https://zenodo.org/record/3992765#.X2EWy5MzbVo) *
#***********************************************************************
False = pineappl ! PineAPPL switch
#***********************************************************************
3.0 = lhe_version
5 = maxjetflavor

Do you happen to have any idea how to fix it?

Thanks,

Best,

Diallo.

The JO is the following:

from MadGraphControl.MadGraphUtils import *
import fileinput
import shutil
import subprocess
import os

grid_pack=True

# ----------------------------------------------
# Some global production settings
# ----------------------------------------------
# Make some excess events to allow for Pythia8 failures
nevents=1.2*runArgs.maxEvents if runArgs.maxEvents>0 else 5500

process = """
   import model loop_qcd_qed_sm_Gmu
   define p = g u c d s u~ c~ d~ s~ b b~
   define j = g u c d s u~ c~ d~ s~ b b~
   set nlo_mixed_expansion False
   generate p p > h a j j [QCD]
   output -f"""
process_dir = new_process(process)

lookup_0 = '#IRPoleCheckThreshold'
lookup_1 = '#PrecisionVirtualAtRunTime'
num_0=0
num_1=0
with open('PROCNLO_loop_qcd_qed_sm_Gmu_0/Cards/FKS_params.dat') as myFile:
    for num, line in enumerate(myFile, 1):
        if lookup_0 in line:
            print('found at line:', num)
            num_0=num
        if lookup_1 in line:
            print('found at line:', num)
            num_1=num

with open('PROCNLO_loop_qcd_qed_sm_Gmu_0/Cards/FKS_params.dat', 'r') as file:
    data = file.readlines()

data[num_0] = '-1d0\n'
data[num_1] = '-1d0\n'

with open('PROCNLO_loop_qcd_qed_sm_Gmu_0/Cards/FKS_params.dat', 'w') as file:
    file.writelines( data )
#os.system("cp FKS_params.dat "+process_dir+"/Cards/")
#os.system("cp setscales.f "+process_dir+"/SubProcesses/setscales.f")

maxjetflavor = 5

parton_shower='PYTHIA8'

extras = { 'lhe_version' :'3.0',
           'pdlabel' : "'lhapdf'",
           'lhaid' : 260000, # maybe we use 303400?
           'maxjetflavor' : maxjetflavor,
           'parton_shower' : "'"+parton_shower+"'",
           'jetalgo' : -1,
           'jetradius' : 0.4,
           'ptj' : 15.0,
           'etaj' : -1,
           'ickkw' : 0,
          'ptgmin' : 10.0,
          'epsgamma' :'0.1',
          'R0gamma' :'0.1',
          'xn' :'2',
          'isoEM' :'True',
          'etagamma' :'3.0',
           'bwcutoff' :'15',
           'store_rwgt_info' : '.true.',
           'event_norm' : 'sum',
           'reweight_scale': '.true.',
           'reweight_PDF' : '.true.',
           'dynamical_scale_choice': 10
         }

modify_run_card(process_dir=process_dir,runArgs=runArgs,settings=extras)
generate(process_dir=process_dir,runArgs=runArgs)
arrange_output(process_dir=process_dir,runArgs=runArgs,lhe_version=3,saveProcDir=True)

#---------------------------------------------------------------------------------------------------
# Pythia8 Showering with A14_NNPDF23LO
#---------------------------------------------------------------------------------------------------
include("Pythia8_i/Pythia8_A14_NNPDF23LO_EvtGen_Common.py")
#include("MC15JobOptions/Pythia8_AZNLO_CTEQ6L1_EvtGen_Common.py")
include("Pythia8_i/Pythia8_aMcAtNlo.py")

#--------------------------------------------------------------
# Higgs at Pythia8
#--------------------------------------------------------------
#genSeq.Pythia8.UserModes += [ 'Main31:NFinal = 4' ]
genSeq.Pythia8.Commands += [ '25:onMode = off', # decay of Higgs
                             '25:onIfMatch = 23 23',
                             '23:onMode = off', # decay of Z
                             '23:mMin = 2.0',
                             '23:onIfMatch = 12 12',
                             '23:onIfMatch = 14 14',
                             '23:onIfMatch = 16 16',
]

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
marco zaro Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

I do not know who create this "MadGraphControl.MadGraphUtils". This is not devellop by us and except if this is the first time that I hear about it.

Now they are a lot of things that I found confusing in your description.
You said that this is loop-induced but
1) Your provide FKS input (does not make sense for loop-induced)
2) the crash occurs in a file which should not be used for loop-induced.

So I guess that the first things to check is if you are really running a loop-induced process or not.

Cheers,

Olivier

Revision history for this message
Diallo BOYE (diboye) said :
#2

Hi Olivier,

Thanks for your reply.
You are right, this not loop-induced.
Actually, we want to generate this:

import model loop_qcd_qed_sm_Gmu-atlas
define p = g u c d s u~ c~ d~ s~ b b~
define j = g u c d s u~ c~ d~ s~ b b~
generate p p > h a j j [QCD]

but it reaches this issue: https://answers.launchpad.net/mg5amcnlo/+faq/2720
Do you know how to generate this process? (which MG version to use, which commands, etc).

Thanks in advance.

Best,

Diallo.

Revision history for this message
Diallo BOYE (diboye) said :
#3

Hi again,

I made the folder that contains the model public in case you want to run it: https://drive.google.com/drive/folders/1TCle1qyjLtbnjCayyk2nGtzJyBpwWi9S?usp=drive_link

Best,

Diallo.

Revision history for this message
marco zaro (marco-zaro) said :
#4

Hi Diallo,
can you try to regenerate the process with
set nlo_mixed_expansion False
Let us know

Marco

Revision history for this message
Diallo BOYE (diboye) said :
#5

Hi Marco,

Thanks a lot. I rerun it by using: set nlo_mixed_expansion False but it gave me errors.
I shared with you the debug file:

https://drive.google.com/file/d/1sn41EMQcATu9bqHco-lvaGFg4EKEX_-w/view?usp=drive_link

Best,

Diallo.

Revision history for this message
marco zaro (marco-zaro) said :
#6

Hi,
the error

   raise aMCatNLOError('Poles do not cancel, run cannot continue')
madgraph.interface.amcatnlo_run_interface.aMCatNLOError: Poles do not
cancel, run cannot continue

is typical for VBF-type processes. The solution should be this FAQ

https://answers.launchpad.net/mg5amcnlo/+faq/2720

Let us know

Marco

On Fri, Nov 3, 2023 at 1:45 PM Diallo BOYE <
<email address hidden>> wrote:

> Question #707996 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/707996
>
> Diallo BOYE posted a new comment:
> Hi Marco,
>
> Thanks a lot. I rerun it by using: set nlo_mixed_expansion False but it
> gave me errors.
> I shared with you the debug file:
>
> https://drive.google.com/file/d/1sn41EMQcATu9bqHco-
> lvaGFg4EKEX_-w/view?usp=drive_link
>
> Best,
>
> Diallo.
>
> --
> You received this question notification because you are assigned to this
> question.
>

Revision history for this message
Diallo BOYE (diboye) said (last edit ):
#7

Hi:

I tried but it still gives errors, here is the debug file:

https://drive.google.com/file/d/1sn41EMQcATu9bqHco-lvaGFg4EKEX_-w/view?usp=sharing

Best,

Diallo

Revision history for this message
marco zaro (marco-zaro) said :
#8

Hi,
what was printed on screen before the error appeared?

Marco Zaro

On Fri, Nov 10, 2023 at 11:35 AM Diallo BOYE <
<email address hidden>> wrote:

> Question #707996 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/707996
>
> Diallo BOYE posted a new comment:
> Hi:
>
> I did the changes but it still gives error. Here is the debug file:
>
> https://drive.google.com/file/d/1sn41EMQcATu9bqHco-
> lvaGFg4EKEX_-w/view?usp=sharing
>
> Best,
>
> Diallo.
>
> --
> You received this question notification because you are assigned to this
> question.
>

Revision history for this message
Diallo BOYE (diboye) said :
#9
Revision history for this message
marco zaro (marco-zaro) said :
#10

Hi,
can you go inside e.g. SubProcesses/P0_ddx_hccxa/
and type ./gensym aMC@NLO
and
./gensym NLO

and report what you get?

M

> On 10 Nov 2023, at 14:45, Diallo BOYE <email address hidden> wrote:
>
> Question #707996 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/707996
>
> Diallo BOYE posted a new comment:
> Hi Marco,
>
> I attached the log file here:
>
> https://drive.google.com/file/d/1U6Cnj8DLGxVJ7qrniMnuEGf4fh4S_l6v/view?usp=sharing
>
> Best,
>
> Diallo.
>
> --
> You received this question notification because you are assigned to this
> question.

Revision history for this message
Diallo BOYE (diboye) said :
#11
Revision history for this message
marco zaro (marco-zaro) said :
#12

Hi,
in both cases, the error is
 User-defined scale not set

you probably are using a setting for the ren/fact scale (dynamical_scale_choice in the run_card) which is not one of the default ones, and is not set in SubProcesses/setscales.f
(grep the string "User-defined scale not set” in that file…)

Let me know

m

> On 10 Nov 2023, at 15:10, Diallo BOYE <email address hidden> wrote:
>
> Question #707996 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/707996
>
> Diallo BOYE posted a new comment:
> Hi:
>
> For ./gensym aMC@NLO I got this:
>
> https://drive.google.com/file/d/1pWTKaS88YMxmCrIIQwZOnemImBr9ngB9/view?usp=sharing
>
> and for ./gensym NLO, I got this:
>
> https://drive.google.com/file/d/1BBDtNB9Shm0HopzuOnZpBeq63qETA2QU/view?usp=sharing
>
> Best,
>
> Diallo.
>
> --
> You received this question notification because you are assigned to this
> question.

Revision history for this message
Diallo BOYE (diboye) said :
#13

Hi:

Actually when I set #IRPoleCheckThreshold and #PrecisionVirtualAtRunTime to -1d0 in the FKS_params.dat it runs successfully in my local laptop. Then what I did is to generate a gridpack following this: https://answers.launchpad.net/mg5amcnlo/+question/243268
And then use it as gridpack input and run in the lxplus server.

But it again gives me errors.

Here is the debug file: https://drive.google.com/file/d/1FC1KmlHKNOQ46lRrSysC_eMGz3jY62LW/view?usp=sharing

The log file can be found here: https://drive.google.com/file/d/1U6Cnj8DLGxVJ7qrniMnuEGf4fh4S_l6v/view?usp=sharing

The gridpack file can be found here: https://drive.google.com/file/d/1wk9y7yIy9UWNfJHeRUOH9QWWSlOf-FRj/view?usp=sharing

Thanks.

Best,

Diallo.

Revision history for this message
marco zaro (marco-zaro) said :
#14

Hi,
in the debug file there is the error
amcatnlo_run_interface.aMCatNLOError: Cannot find Pythia8 path in configuration file

You need to specify pythia8 to MG5_aMC (pythia8_path is an option ) or to use the —parton flag when you launch the code (this way the generation will stop at the LHE file)

Best,

Marco

> On 13 Nov 2023, at 17:55, Diallo BOYE <email address hidden> wrote:
>
> Question #707996 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/707996
>
> Diallo BOYE posted a new comment:
> Hi:
>
> Actually when I set #IRPoleCheckThreshold and #PrecisionVirtualAtRunTime to -1d0 in the FKS_params.dat it runs successfully in my local laptop. Then what I did is to generate a gridpack following this: https://answers.launchpad.net/mg5amcnlo/+question/243268
> And then use it as gridpack input and run in the lxplus server.
>
> But it again gives me errors.
>
> Here is the debug file:
> https://drive.google.com/file/d/1FC1KmlHKNOQ46lRrSysC_eMGz3jY62LW/view?usp=sharing
>
> The log file can be found here:
> https://drive.google.com/file/d/1U6Cnj8DLGxVJ7qrniMnuEGf4fh4S_l6v/view?usp=sharing
>
> The gridpack file can be found here:
> https://drive.google.com/file/d/1wk9y7yIy9UWNfJHeRUOH9QWWSlOf-
> FRj/view?usp=sharing
>
> Thanks.
>
> Best,
>
> Diallo.
>
> --
> You received this question notification because you are assigned to this
> question.

Revision history for this message
Diallo BOYE (diboye) said :
#15

Hi Marco,

Sorry for my late reply. Actually it works now and solution was this one https://answers.launchpad.net/mg5amcnlo/+faq/2720
Now it takes too much time to run.
For instance, it takes more than a week without finishing.
Is there a way to have it run fast?

Best,

Diallo.

Revision history for this message
marco zaro (marco-zaro) said :
#16

Hi,
this may depend on the cuts that you are asking for… can you tell me how you modified the card/code for the cuts?

Thanks

Marco

> On 24 Jan 2024, at 16:15, Diallo BOYE <email address hidden> wrote:
>
> Question #707996 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/707996
>
> Diallo BOYE posted a new comment:
> Hi Marco,
>
> Sorry for my late reply. Actually it works now and solution was this one https://answers.launchpad.net/mg5amcnlo/+faq/2720
> Now it takes too much time to run.
> For instance, it takes more than a week without finishing.
> Is there a way to have it run fast?
>
> Best,
>
> Diallo.
>
> --
> You received this question notification because you are assigned to this
> question.

Revision history for this message
marco zaro (marco-zaro) said :
#17

just noticed the card. Can you try to add an etaj cut for the max rapidity of the jets?

> On 24 Jan 2024, at 16:19, Marco Zaro <email address hidden> wrote:
>
> Hi,
> this may depend on the cuts that you are asking for… can you tell me how you modified the card/code for the cuts?
>
> Thanks
>
> Marco
>
>> On 24 Jan 2024, at 16:15, Diallo BOYE <email address hidden> wrote:
>>
>> Question #707996 on MadGraph5_aMC@NLO changed:
>> https://answers.launchpad.net/mg5amcnlo/+question/707996
>>
>> Diallo BOYE posted a new comment:
>> Hi Marco,
>>
>> Sorry for my late reply. Actually it works now and solution was this one https://answers.launchpad.net/mg5amcnlo/+faq/2720
>> Now it takes too much time to run.
>> For instance, it takes more than a week without finishing.
>> Is there a way to have it run fast?
>>
>> Best,
>>
>> Diallo.
>>
>> --
>> You received this question notification because you are assigned to this
>> question.
>

Revision history for this message
Diallo BOYE (diboye) said :
#18

Hi marco,

Here the run_card.dat for instance:

#***********************************************************************
# 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. *
# *
# To display additional parameter, you can use the command: *
# update to_full *
#***********************************************************************
#
#*******************
# 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 *
#***********************************************************************
1 = nevents ! Number of unweighted events requested
0.001 = req_acc ! Required accuracy (-1=auto determined from nevents)
-1 = nevt_job! Max number of events per job in event generation.
! (-1= no split).
#***********************************************************************
# Output format
#***********************************************************************
-1.0 = time_of_flight ! threshold (in mm) below which the invariant livetime is not written (-1 means not written)
average = event_norm ! average/sum/bias. Normalization of the weight in the LHEF
#***********************************************************************
# 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 *
#***********************************************************************
12345 = 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. *
#***********************************************************************
lhapdf = pdlabel ! PDF set
303000 = 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!!!! *
#***********************************************************************
HERWIGPP = 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
False = 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 *
#***********************************************************************
True = 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. *
# - If gamma_is_j, photons are also clustered with jets. *
# Otherwise, they will be treated as tagged particles and photon *
# isolation will be applied. Note that photons in the real emission *
# will always be clustered with QCD partons. *
# - 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)
True = gamma_is_j! Wether to cluster photons as jets or not
#***********************************************************************
# 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
#***********************************************************************
# Fermion-photon recombination parameters *
# If Rphreco=0, no recombination is performed *
#***********************************************************************
0.1 = Rphreco ! Minimum fermion-photon distance for recombination
-1.0 = etaphreco ! Maximum abs(pseudo-rap) for photons to be recombined (a value .lt.0 means no cut)
True = lepphreco ! Recombine photons and leptons together
True = quarkphreco ! Recombine photons and quarks together
#***********************************************************************
# Photon-isolation cuts, according to hep-ph/9801442 *
# Not applied if gamma_is_j *
# 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)
#***********************************************************************
# Cuts associated to MASSIVE particles identified by their PDG codes. *
# All cuts are applied to both particles and anti-particles, so use *
# POSITIVE PDG CODES only. Example of the syntax is {6 : 100} or *
# {6:100, 25:200} for multiple particles *
#***********************************************************************
{} = pt_min_pdg ! Min pT for a massive particle
{} = pt_max_pdg ! Max pT for a massive particle
{} = mxx_min_pdg ! inv. mass for any pair of (anti)particles
#***********************************************************************
# Use PineAPPL to generate PDF-independent fast-interpolation grid *
# (https://zenodo.org/record/3992765#.X2EWy5MzbVo) *
#***********************************************************************
False = pineappl ! PineAPPL switch
#***********************************************************************
systematics = systematics_program
['--weight_info=MUR%(mur).1f_MUF%(muf).1f_PDF%(pdf)i','--remove_wgts=".*MUR0.5_MUF2.0.*|.*MUR2.0_MUF0.5.*"','--pdf=NNPDF30_nlo_as_0118_hessian,PDF4LHC21_40_pdfas,NNPDF30_nlo_as_0119@0,NNPDF30_nlo_as_0117@0,NNPDF30_nnlo_as_0118_hessian@0,MSHT20nnlo_as118@0,MSHT20nlo_as118@0,CT18NNLO@0,CT18NLO@0,NNPDF31_nnlo_as_0118_hessian@0,NNPDF31_nlo_as_0118_hessian@0,NNPDF40_nnlo_as_01180_hessian@0,NNPDF40_nlo_as_01180@0,CT18ANNLO@0,CT18XNNLO@0,CT18ZNNLO@0,CT14nlo@0,MMHT2014nlo68clas118@0','--muf=0.5,1.0,2.0','--mur=0.5,1.0,2.0','--dyn=-1'] = systematics_arguments

Revision history for this message
Diallo BOYE (diboye) said :
#19

Do you suggest any modification of it?

Best,

Diallo.

Revision history for this message
marco zaro (marco-zaro) said :
#20

yes, I suggest to put some value for etaj, which currently is set to -1 (i.e. no cut on etaj)

> On 24 Jan 2024, at 16:35, Diallo BOYE <email address hidden> wrote:
>
> Question #707996 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/707996
>
> Diallo BOYE posted a new comment:
> Do you suggest any modification of it?
>
> Best,
>
> Diallo.
>
> --
> You received this question notification because you are assigned to this
> question.

Revision history for this message
Diallo BOYE (diboye) said :
#21

Okay I see. Let's say I want to apply a cut like this: -3 <eta <3 or |eta| < 3 how should I implement it?

Revision history for this message
marco zaro (marco-zaro) said :
#22

etaj = 3

> On 24 Jan 2024, at 17:00, Diallo BOYE <email address hidden> wrote:
>
> Question #707996 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/707996
>
> Diallo BOYE posted a new comment:
> Okay I see. Let's say I want to apply a cut like this: -3 <eta <3 or
> |eta| < 3 how should I implement it?
>
> --
> You received this question notification because you are assigned to this
> question.

Revision history for this message
Diallo BOYE (diboye) said :
#23

Thanks I will try that

Revision history for this message
Diallo BOYE (diboye) said :
#24

Hello Marco,

It doesn't seem that making a cut on eta jet (-5 to 5) helps to enhance the running time.
After 7 days, the run did not finish and unfortunately it was killed since I can't use the machine more than a week.
Is there any other way to improve the running time ?

I put here: https://drive.google.com/drive/folders/1-VJmUGx50AHe_OMAE7RY9mpVGYMkdfNs?usp=drive_link
The log file, the run card and the FKS card.

Best,

Diallo.

Can you help with this problem?

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

To post a message you must log in.