Bias module when running higher order and madspin

Asked by Mário Sousa on 2020-09-07

Dear helpers,
I have follow some tutorial from my experiment and was able to run correctly a process for heavy neutrino at leading order where I defined all decays within the generate command. However, when I was asked to use higher order for the generation and madspin for the top decay, I got the message:
01:06:30 Py:MadGraphUtils ERROR IOError : [Errno 2] No such file or directory: '/afs/cern.ch/work/m/mdacunha/HeavyNeutrino/ana-topq-2019-31/Analysis/SignalGeneration/01_Generation/allJobOptions/501695/HNtest/Source/BIAS/bias.inc'

This points to the bias module, which is not defined by default. In fact, our code is not suppose to configure it by default.

I have discussed this already with members of the ATLAS Madgraph team and they found no problem with the configuration.

My question is: are we suppose to use a bias card when using madspin and/or higher order computations?

Thanks in advance for the help.
Best regards
Mário Sousa

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2020-09-07
Last reply:
2020-09-07
Mário Sousa (mdacunha) said : #1

I have a message saying I should attach a file to the report but since the is no option for that I am copy-pasting it.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.7.2 2020-03-17 *
#* *
#* 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/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.2p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/extended_cmd.py", line 1515, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.2p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/work/m/mdacunha/HeavyNeutrino/ana-topq-2019-31/Analysis/SignalGeneration/01_Generation/allJobOptions/501695/HNtest/bin/internal/amcatnlo_run_interface.py", line 1687, in do_launch
    self.compile(mode, options)
  File "/afs/cern.ch/work/m/mdacunha/HeavyNeutrino/ana-topq-2019-31/Analysis/SignalGeneration/01_Generation/allJobOptions/501695/HNtest/bin/internal/amcatnlo_run_interface.py", line 5023, in compile
    self.do_treatcards('', amcatnlo=True, mode=mode)
  File "/afs/cern.ch/work/m/mdacunha/HeavyNeutrino/ana-topq-2019-31/Analysis/SignalGeneration/01_Generation/allJobOptions/501695/HNtest/bin/internal/amcatnlo_run_interface.py", line 1626, in do_treatcards
    return super(aMCatNLOCmd,self).do_treatcards(line, amcatnlo)
  File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.2p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/common_run_interface.py", line 875, in do_treatcards
    run_card.write_include_file(opt['output_dir'])
  File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.2p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/various/banner.py", line 2676, in write_include_file
    fsock = file_writers.FortranWriter(pjoin(output_dir,pathinc))
  File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.2p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/iolibs/file_writers.py", line 53, in __init__
    return file.__init__(self, name, opt)
IOError: [Errno 2] No such file or directory: '/afs/cern.ch/work/m/mdacunha/HeavyNeutrino/ana-topq-2019-31/Analysis/SignalGeneration/01_Generation/allJobOptions/501695/HNtest/Source/BIAS/bias.inc'
Related File: /afs/cern.ch/work/m/mdacunha/HeavyNeutrino/ana-topq-2019-31/Analysis/SignalGeneration/01_Generation/allJobOptions/501695/HNtest/Source/BIAS/bias.inc
Value of current Options:
              text_editor : None
              web_browser : None
        cluster_temp_path : None
                  timeout : 60
       cluster_local_path : None
            cluster_queue : None
         madanalysis_path : None
                   lhapdf : /cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators//lhapdf/6.2.3/x86_64-slc6-gcc62-opt/bin/lhapdf-config
      output_dependencies : internal
             cluster_size : 100
           cluster_memory : None
    cluster_status_update : (600, 30)
             cluster_time : None
            f2py_compiler : None
                    ninja : /cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators//gosam_contrib/2.0-779ba/x86_64-slc6-gcc62-opt/lib
               hepmc_path : None
             pythia8_path : None
                hwpp_path : None
   automatic_html_opening : False
       cluster_retry_wait : 300
             stdout_level : None
          pythia-pgs_path : None
                 mg5_path : /cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/MCGenerators/madgraph5amc/2.7.2p3.atlas5-a54cb/x86_64-slc6-gcc62-opt
                  td_path : None
             delphes_path : None
              thepeg_path : None
             cluster_type : condor
        madanalysis5_path : None
      exrootanalysis_path : None
         fortran_compiler : None
                  nb_core : 1
                  collier : /cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators//collier/1.1-92381/x86_64-slc6-gcc62-opt
              auto_update : 7
         cluster_nb_retry : 1
               eps_viewer : None
             syscalc_path : /cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/MCGenerators/syscalc/1.1.4p3-61111/x86_64-slc6-gcc62-opt
                  fastjet : /cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/fastjet/3.2.0/x86_64-slc6-gcc62-opt/bin/fastjet-config
             cpp_compiler : None
      notification_center : True
                 run_mode : 0
#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.7.2 2020-03-17 *
#* *
#* 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 default_unset_couplings 99
set group_subprocesses Auto
set ignore_six_quark_processes False
set loop_optimized_output True -nojpeg
set loop_color_flows False
set gauge unitary
set complex_mass_scheme False
set max_npoint_for_channel 0
import model SM_HeavyN_NLO
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 p = 21 2 4 1 3 -2 -4 -1 -3 5 -5 # pass to 5 flavors
define l+ = e+ mu+ ta+
define l- = e- mu- ta-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
define p = 21 1 2 3 4 5 -1 -2 -3 -4 -5
define j = p
define n = n1 n2 n3
generate g g > t~ t [QCD] > b b~ e+ e+ w- w-
output /afs/cern.ch/work/m/mdacunha/HeavyNeutrino/ana-topq-2019-31/Ana\
lysis/SignalGeneration/01_Generation/allJobOptions/501695/HNtest -nojp\
eg
######################################################################
## PARAM_CARD AUTOMATICALY GENERATED BY MG5 ####
######################################################################
###################################
## INFORMATION FOR LOOP
###################################
BLOCK LOOP #
      1 9.118800e+01 # mu_r
###################################
## INFORMATION FOR MASS
###################################
BLOCK MASS #
      -6 1.733000e+02 # mt~
      6 1.733000e+02 # mt
      23 9.118760e+01 # mz
      25 1.257000e+02 # mh
      9900012 1.500000e+01 # mn1
      9900014 1.500000e+01 # mn2
      9900016 1.500000e+01 # mn3
      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
      24 7.995123e+01 # w+ : cmath.sqrt(mz__exp__2/2. + cmath.sqrt(mz__exp__4/4. - (aew*cmath.pi*mz__exp__2)/(gf*sqrt__2)))
      9000002 9.118760e+01 # ghz : mz
      9000003 7.995123e+01 # ghwp : mw
      9000004 7.995123e+01 # ghwm : mw
###################################
## INFORMATION FOR NUMIXING
###################################
BLOCK NUMIXING #
      1 1.000000e+00 # ven1
      2 0.000000e+00 # ven2
      3 0.000000e+00 # ven3
      4 0.000000e+00 # vmun1
      5 1.000000e+00 # vmun2
      6 0.000000e+00 # vmun3
      7 0.000000e+00 # vtan1
      8 0.000000e+00 # vtan2
      9 1.000000e+00 # vtan3
###################################
## INFORMATION FOR SMINPUTS
###################################
BLOCK SMINPUTS #
      1 1.279400e+02 # aewm1
      2 1.174560e-05 # gf
      3 1.184000e-01 # as
###################################
## INFORMATION FOR YUKAWA
###################################
BLOCK YUKAWA #
      5 4.950000e+00 # ymb
      6 1.733000e+02 # ymt
      15 1.777000e+00 # ymtau
###################################
## INFORMATION FOR DECAY
###################################

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)
###################################
## INFORMATION FOR QNUMBERS 9000002
###################################
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)
###################################
## INFORMATION FOR QNUMBERS 9000003
###################################
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)
###################################
## INFORMATION FOR QNUMBERS 9000004
###################################
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)
###################################
## INFORMATION FOR QNUMBERS 82
###################################
BLOCK QNUMBERS 82 # 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)
###################################
## INFORMATION FOR QNUMBERS 9900012
###################################
BLOCK QNUMBERS 9900012 # n1
      1 0 # 3 times electric charge
      2 2 # number of spin states (2s+1)
      3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
      4 0 # particle/antiparticle distinction (0=own anti)
###################################
## INFORMATION FOR QNUMBERS 9900014
###################################
BLOCK QNUMBERS 9900014 # n2
      1 0 # 3 times electric charge
      2 2 # number of spin states (2s+1)
      3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
      4 0 # particle/antiparticle distinction (0=own anti)
###################################
## INFORMATION FOR QNUMBERS 9900016
###################################
BLOCK QNUMBERS 9900016 # n3
      1 0 # 3 times electric charge
      2 2 # number of spin states (2s+1)
      3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
      4 0 # particle/antiparticle distinction (0=own anti)
#
#*************************
# Decay widths *
#*************************
#
# PDG Width
DECAY 1 0.000000e+00
#
# PDG Width
DECAY 2 0.000000e+00
#
# PDG Width
DECAY 3 0.000000e+00
#
# PDG Width
DECAY 4 0.000000e+00
#
# PDG Width
DECAY 5 0.000000e+00
#
# PDG Width
DECAY 6 1.320000e+00
# BR NDA ID1 ID2 ...
   1.000000e+00 2 5 24 # 1.32
#
# PDG Width
DECAY 11 0.000000e+00
#
# PDG Width
DECAY 12 0.000000e+00
#
# PDG Width
DECAY 13 0.000000e+00
#
# PDG Width
DECAY 14 0.000000e+00
#
# PDG Width
DECAY 15 0.000000e+00
#
# PDG Width
DECAY 16 0.000000e+00
#
# PDG Width
DECAY 21 0.000000e+00
#
# PDG Width
DECAY 22 0.000000e+00
#
# PDG Width
DECAY 23 2.495200e+00
#
# PDG Width
DECAY 24 2.068320e+00
# BR NDA ID1 ID2 ...
   3.363911e-01 2 -1 2 # 0.6957645
   3.363911e-01 2 -3 4 # 0.6957645
   1.090726e-01 2 -11 12 # 0.225597
   1.090726e-01 2 -13 14 # 0.225597
   1.090726e-01 2 -15 16 # 0.225597
#
# PDG Width
DECAY 25 4.070000e-03
#
# PDG Width
DECAY 9000002 2.495200e+00
#
# PDG Width
DECAY 9000003 2.085000e+00
#
# PDG Width
DECAY 9000004 2.085000e+00
#
# PDG Width
DECAY 9900012 4.296627e-07
# BR NDA ID1 ID2 ...
   1.258545e-01 3 -11 -2 1 # 5.40749842772e-08
   1.258545e-01 3 -11 -4 3 # 5.40749842772e-08
   1.242719e-01 3 -1 2 11 # 5.33950000881e-08
   1.242719e-01 3 -3 4 11 # 5.33950000881e-08
   4.200737e-02 3 -13 11 14 # 1.80490000141e-08
   4.200737e-02 3 -15 11 16 # 1.80490000141e-08
   4.181187e-02 3 -14 -11 13 # 1.79650009562e-08
   4.181187e-02 3 -16 -11 15 # 1.79650009562e-08
   2.459604e-02 3 -12 -11 11 # 1.05680009557e-08
   2.436562e-02 3 -11 11 12 # 1.04689980764e-08
   2.319261e-02 3 -12 -1 1 # 9.96499943265e-09
   2.319261e-02 3 -12 -3 3 # 9.96499943265e-09
   2.319261e-02 3 -12 -5 5 # 9.96499943265e-09
   2.311348e-02 3 -1 1 12 # 9.9310002232e-09
   2.311348e-02 3 -3 3 12 # 9.9310002232e-09
   2.311348e-02 3 -5 5 12 # 9.9310002232e-09
   1.774182e-02 3 -2 2 12 # 7.62299828411e-09
   1.774182e-02 3 -4 4 12 # 7.62299828411e-09
   1.773135e-02 3 -12 -2 2 # 7.61849971564e-09
   1.773135e-02 3 -12 -4 4 # 7.61849971564e-09
   1.054455e-02 3 -14 12 14 # 4.53059982329e-09
   1.054455e-02 3 -16 12 16 # 4.53059982329e-09
   1.051895e-02 3 -14 -12 14 # 4.51960045816e-09
   1.051895e-02 3 -16 -12 16 # 4.51960045816e-09
   5.245045e-03 3 -13 12 13 # 2.25360019632e-09
   5.245045e-03 3 -15 12 15 # 2.25360019632e-09
   5.225029e-03 3 -12 12 12 # 2.24500006772e-09
   5.156952e-03 3 -13 -12 13 # 2.21574992009e-09
   5.156952e-03 3 -15 -12 15 # 2.21574992009e-09
   5.126347e-03 3 -12 -12 12 # 2.20260009316e-09
#
# PDG Width
DECAY 9900014 0.000000e+00
#
# PDG Width
DECAY 9900016 0.000000e+00

#*********************************************************************
# MadGraph5_aMC@NLO *
# *
# run_card.dat MadEvent *
# *
# This file is used to set the parameters of the run. *
# *
# Some notation/conventions: *
# *
# Lines starting with a '# ' are info or comments *
# *
# mind the format: value = variable ! comment *
# *
# To display more options, you can type the command: *
# update full_run_card *
#*********************************************************************
#
#*******************
# Running parameters
#*******************
#
#*********************************************************************
# Tag name for the run (one word) *
#*********************************************************************
tag_1 = run_tag ! name of the run
#*********************************************************************
# Number of events and rnd seed *
# Warning: Do not generate more than 1M events in a single run *
# If you want to run Pythia, avoid more than 50k events in a run. *
#*********************************************************************
11000 = nevents ! Number of unweighted events requested
29111984 = iseed ! rnd seed (0=assigned automatically=default))
#*********************************************************************
# Collider type and energy *
# lpp: 0=No PDF, 1=proton, -1=antiproton, 2=photon from proton, *
# 3=photon from electron *
#*********************************************************************
1 = lpp1 ! beam 1 type
1 = lpp2 ! beam 2 type
6500.0 = ebeam1 ! beam 1 total energy in GeV
6500.0 = ebeam2 ! beam 2 total energy in GeV
# To see polarised beam options: type "update beam_pol"
#*********************************************************************
# PDF CHOICE: this automatically fixes also alpha_s and its evol. *
#*********************************************************************
nn23lo1 = pdlabel ! PDF set
230000 = lhaid ! if pdlabel=lhapdf, this is the lhapdf number
# To see heavy ion options: type "update ion_pdf"
#*********************************************************************
# Renormalization and factorization scales *
#*********************************************************************
False = fixed_ren_scale ! if .true. use fixed ren scale
False = fixed_fac_scale ! if .true. use fixed fac scale
91.188 = scale ! fixed ren scale
91.188 = dsqrt_q2fact1 ! fixed fact scale for pdf1
91.188 = dsqrt_q2fact2 ! fixed fact scale for pdf2
-1 = dynamical_scale_choice ! Choose one of the preselected dynamical choices
1.0 = scalefact ! scale factor for event-by-event scales
#*********************************************************************
# Type and output format
#*********************************************************************
False = gridpack !True = setting up the grid pack
-1.0 = time_of_flight ! threshold (in mm) below which the invariant livetime is not written (-1 means not written)
3.0 = lhe_version ! Change the way clustering information pass to shower.
True = clusinfo ! include clustering tag in output
average = event_norm ! average/sum. Normalization of the weight in the LHEF

#*********************************************************************
# Matching parameter (MLM only)
#*********************************************************************
0 = ickkw ! 0 no matching, 1 MLM
1.0 = alpsfact ! scale factor for QCD emission vx
False = chcluster ! cluster only according to channel diag
5 = asrwgtflavor ! highest quark flavor for a_s reweight
False = auto_ptj_mjj ! Automatic setting of ptj and mjj if xqcut >0
! (turn off for VBF and single top processes)
0.0 = xqcut ! minimum kt jet measure between partons
#*********************************************************************
#
#*********************************************************************
# handling of the helicities:
# 0: sum over all helicities
# 1: importance sampling over helicities
#*********************************************************************
0 = nhel ! using helicities importance sampling or not.
#*********************************************************************
# Generation bias, check the wiki page below for more information: *
# 'cp3.irmp.ucl.ac.be/projects/madgraph/wiki/LOEventGenerationBias' *
#*********************************************************************
None = bias_module ! Bias type of bias, [None, ptj_bias, -custom_folder-]
{} = bias_parameters ! Specifies the parameters of the module.
#
#*******************************
# Parton level cuts definition *
#*******************************
#
#
#*********************************************************************
# BW cutoff (M+/-bwcutoff*Gamma) ! Define on/off-shell for "$" and decay
#*********************************************************************
15.0 = bwcutoff ! (M+/-bwcutoff*Gamma)
#*********************************************************************
# Apply pt/E/eta/dr/mij/kt_durham cuts on decay products or not
# (note that etmiss/ptll/ptheavy/ht/sorted cuts always apply)
#*********************************************************************
False = cut_decays ! Cut decay products
#*********************************************************************
# Standard Cuts *
#*********************************************************************
# Minimum and maximum pt's (for max, -1 means no cut) *
#*********************************************************************
20.0 = ptj ! minimum pt for the jets
0.0 = ptb ! minimum pt for the b
10.0 = pta ! minimum pt for the photons
10.0 = ptl ! minimum pt for the charged leptons
0.0 = misset ! minimum missing Et (sum of neutrino's momenta)
-1.0 = ptjmax ! maximum pt for the jets
-1.0 = ptbmax ! maximum pt for the b
-1.0 = ptamax ! maximum pt for the photons
-1.0 = ptlmax ! maximum pt for the charged leptons
-1.0 = missetmax ! maximum missing Et (sum of neutrino's momenta)
{} = pt_min_pdg ! pt cut for other particles (use pdg code). Applied on particle and anti-particle
{} = pt_max_pdg ! pt cut for other particles (syntax e.g. {6: 100, 25: 50})
#*********************************************************************
# Minimum and maximum E's (in the center of mass frame) *
#*********************************************************************
0.0 = ej ! minimum E for the jets
0.0 = eb ! minimum E for the b
0.0 = ea ! minimum E for the photons
0.0 = el ! minimum E for the charged leptons
-1.0 = ejmax ! maximum E for the jets
-1.0 = ebmax ! maximum E for the b
-1.0 = eamax ! maximum E for the photons
-1.0 = elmax ! maximum E for the charged leptons
{} = e_min_pdg ! E cut for other particles (use pdg code). Applied on particle and anti-particle
{} = e_max_pdg ! E cut for other particles (syntax e.g. {6: 100, 25: 50})
#*********************************************************************
# Maximum and minimum absolute rapidity (for max, -1 means no cut) *
#*********************************************************************
5.0 = etaj ! max rap for the jets
-1.0 = etab ! max rap for the b
2.5 = etaa ! max rap for the photons
2.5 = etal ! max rap for the charged leptons
0.0 = etajmin ! min rap for the jets
0.0 = etabmin ! min rap for the b
0.0 = etaamin ! min rap for the photons
0.0 = etalmin ! main rap for the charged leptons
{} = eta_min_pdg ! rap cut for other particles (use pdg code). Applied on particle and anti-particle
{} = eta_max_pdg ! rap cut for other particles (syntax e.g. {6: 2.5, 23: 5})
#*********************************************************************
# Minimum and maximum DeltaR distance *
#*********************************************************************
0.4 = drjj ! min distance between jets
0.0 = drbb ! min distance between b's
0.4 = drll ! min distance between leptons
0.4 = draa ! min distance between gammas
0.0 = drbj ! min distance between b and jet
0.4 = draj ! min distance between gamma and jet
0.4 = drjl ! min distance between jet and lepton
0.0 = drab ! min distance between gamma and b
0.0 = drbl ! min distance between b and lepton
0.4 = dral ! min distance between gamma and lepton
-1.0 = drjjmax ! max distance between jets
-1.0 = drbbmax ! max distance between b's
-1.0 = drllmax ! max distance between leptons
-1.0 = draamax ! max distance between gammas
-1.0 = drbjmax ! max distance between b and jet
-1.0 = drajmax ! max distance between gamma and jet
-1.0 = drjlmax ! max distance between jet and lepton
-1.0 = drabmax ! max distance between gamma and b
-1.0 = drblmax ! max distance between b and lepton
-1.0 = dralmax ! maxdistance between gamma and lepton
#*********************************************************************
# Minimum and maximum invariant mass for pairs *
# WARNING: for four lepton final state mmll cut require to have *
# different lepton masses for each flavor! *
#*********************************************************************
0.0 = mmjj ! min invariant mass of a jet pair
0.0 = mmbb ! min invariant mass of a b pair
0.0 = mmaa ! min invariant mass of gamma gamma pair
0.0 = mmll ! min invariant mass of l+l- (same flavour) lepton pair
-1.0 = mmjjmax ! max invariant mass of a jet pair
-1.0 = mmbbmax ! max invariant mass of a b pair
-1.0 = mmaamax ! max invariant mass of gamma gamma pair
-1.0 = mmllmax ! max invariant mass of l+l- (same flavour) lepton pair
{} = mxx_min_pdg ! min invariant mass of a pair of particles X/X~ (e.g. {6:250})
{'default': False} = mxx_only_part_antipart ! if True the invariant mass is applied only
! to pairs of particle/antiparticle and not to pairs of the same pdg codes.
#*********************************************************************
# Minimum and maximum invariant mass for all letpons *
#*********************************************************************
0.0 = mmnl ! min invariant mass for all letpons (l+- and vl)
-1.0 = mmnlmax ! max invariant mass for all letpons (l+- and vl)
#*********************************************************************
# Minimum and maximum pt for 4-momenta sum of leptons *
#*********************************************************************
0.0 = ptllmin ! Minimum pt for 4-momenta sum of leptons(l and vl)
-1.0 = ptllmax ! Maximum pt for 4-momenta sum of leptons(l and vl)
#*********************************************************************
# Inclusive cuts *
#*********************************************************************
0.0 = ptheavy ! minimum pt for at least one heavy final state
0.0 = xptj ! minimum pt for at least one jet
0.0 = xptb ! minimum pt for at least one b
0.0 = xpta ! minimum pt for at least one photon
0.0 = xptl ! minimum pt for at least one charged lepton
#*********************************************************************
# Control the pt's of the jets sorted by pt *
#*********************************************************************
0.0 = ptj1min ! minimum pt for the leading jet in pt
0.0 = ptj2min ! minimum pt for the second jet in pt
0.0 = ptj3min ! minimum pt for the third jet in pt
0.0 = ptj4min ! minimum pt for the fourth jet in pt
-1.0 = ptj1max ! maximum pt for the leading jet in pt
-1.0 = ptj2max ! maximum pt for the second jet in pt
-1.0 = ptj3max ! maximum pt for the third jet in pt
-1.0 = ptj4max ! maximum pt for the fourth jet in pt
0 = cutuse ! reject event if fails any (0) / all (1) jet pt cuts
#*********************************************************************
# Control the pt's of leptons sorted by pt *
#*********************************************************************
0.0 = ptl1min ! minimum pt for the leading lepton in pt
0.0 = ptl2min ! minimum pt for the second lepton in pt
0.0 = ptl3min ! minimum pt for the third lepton in pt
0.0 = ptl4min ! minimum pt for the fourth lepton in pt
-1.0 = ptl1max ! maximum pt for the leading lepton in pt
-1.0 = ptl2max ! maximum pt for the second lepton in pt
-1.0 = ptl3max ! maximum pt for the third lepton in pt
-1.0 = ptl4max ! maximum pt for the fourth lepton in pt
#*********************************************************************
# Control the Ht(k)=Sum of k leading jets *
#*********************************************************************
0.0 = htjmin ! minimum jet HT=Sum(jet pt)
-1.0 = htjmax ! maximum jet HT=Sum(jet pt)
0.0 = ihtmin !inclusive Ht for all partons (including b)
-1.0 = ihtmax !inclusive Ht for all partons (including b)
0.0 = ht2min ! minimum Ht for the two leading jets
0.0 = ht3min ! minimum Ht for the three leading jets
0.0 = ht4min ! minimum Ht for the four leading jets
-1.0 = ht2max ! maximum Ht for the two leading jets
-1.0 = ht3max ! maximum Ht for the three leading jets
-1.0 = ht4max ! maximum Ht for the four leading jets
#***********************************************************************
# Photon-isolation cuts, according to hep-ph/9801442 *
# When ptgmin=0, all the other parameters are ignored *
# When ptgmin>0, pta and draj are not going to be used *
#***********************************************************************
0.0 = ptgmin ! Min photon transverse momentum
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)
#*********************************************************************
# WBF cuts *
#*********************************************************************
0.0 = xetamin ! minimum rapidity for two jets in the WBF case
0.0 = deltaeta ! minimum rapidity for two jets in the WBF case
#***********************************************************************
# Turn on either the ktdurham or ptlund cut to activate *
# CKKW(L) merging with Pythia8 [arXiv:1410.3012, arXiv:1109.4829] *
#***********************************************************************
-1.0 = ktdurham
0.4 = dparameter
-1.0 = ptlund
1, 2, 3, 4, 5, 6, 21, 82 = pdgs_for_merging_cut ! PDGs for two cuts above
#*********************************************************************
# maximal pdg code for quark to be considered as a light jet *
# (otherwise b cuts are applied) *
#*********************************************************************
5 = maxjetflavor ! Maximum jet pdg code
#*********************************************************************
#
#*********************************************************************
# Store info for systematics studies *
# WARNING: Do not use for interference type of computation *
#*********************************************************************
True = use_syst ! Enable systematics studies
#
systematics = systematics_program ! none, systematics [python], SysCalc [depreceted, C++]
['--pdf=errorset','--muf=0.5,1,2','--weight_info=MUR%(mur).1f_MUF%(muf).1f_PDF%(pdf)i','--mur=0.5,1,2'] = systematics_arguments ! see: https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/Systematics#Systematicspythonmodule
# Syscalc is deprecated but to see the associate options type'update syscalc'#*********************************************************************
# Additional hidden parameters
#*********************************************************************
['--mur=0.5,1,2', '--muf=0.5,1,2', '--pdf=errorset'] = systematics_arguments # Choose the argment to pass to the systematics command. like --mur=0.25,1,4. Look at the help of the systematics function for more details.

Hi,

I see that you are using this comand:
generate g g > t~ t [QCD] > b b~ e+ e+ w- w-

This is NOT a valid command in MG5aMC. Looks like the code is not crashing but i will make it crash in the next version.

This is certainly not a valid syntax for MadSpin (MadSpin will not be used with such syntax)
and specifying "g" in the inital state is not good for NLO computation (but maybe your are looking for LO computation via a loop-induced level?)
Note that loop-induced process are not supported by MadSpin.

The above point is crucial since LO process always defile the file Source/bias.inc (so also for loop-induced)
while NLO process does not have such file.

The fact that your code does not configure it does not mean that we do not need to write such file in any case.
Such that we can load it later. So the fact that we try to write such file is perfectly normal. Now the question is why your filesysteme does not allow us to write such file?
Did you remove the BIAS directory?
This directory should exists if you want to run the code:

/afs/cern.ch/work/m/mdacunha/HeavyNeutrino/ana-topq-2019-31/Analysis/SignalGeneration/01_Generation/allJobOptions/501695/HNtest/Source/BIAS/ <http://cern.ch/work/m/mdacunha/HeavyNeutrino/ana-topq-2019-31/Analysis/SignalGeneration/01_Generation/allJobOptions/501695/HNtest/Source/BIAS/bias.inc'>

Cheers,

Olivier

> On 7 Sep 2020, at 11:10, Mário Sousa <email address hidden> wrote:
>
> New question #692790 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/692790
>
> Dear helpers,
> I have follow some tutorial from my experiment and was able to run correctly a process for heavy neutrino at leading order where I defined all decays within the generate command. However, when I was asked to use higher order for the generation and madspin for the top decay, I got the message:
> 01:06:30 Py:MadGraphUtils ERROR IOError : [Errno 2] No such file or directory: '/afs/cern.ch/work/m/mdacunha/HeavyNeutrino/ana-topq-2019-31/Analysis/SignalGeneration/01_Generation/allJobOptions/501695/HNtest/Source/BIAS/bias.inc'
>
> This points to the bias module, which is not defined by default. In fact, our code is not suppose to configure it by default.
>
> I have discussed this already with members of the ATLAS Madgraph team and they found no problem with the configuration.
>
> My question is: are we suppose to use a bias card when using madspin and/or higher order computations?
>
> Thanks in advance for the help.
> Best regards
> Mário Sousa
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

Provide an answer of your own, or ask Mário Sousa for more information if necessary.

To post a message you must log in.