spinmode none not working

Asked by Sihyun Jeon

Hi Olivier,

I am currently testing heavy neutrino NLO generations [1] but I ran into an error I did not expect.

After doing "generate p p > n1 l [QCD]"
in MadSpin, I set like below :

set ms_dir ./madspingrid
set Nevents_for_max_weigth 250 # number of events for the estimate of the max. weight
set max_weight_ps_point 400 # number of PS to estimate the maximum for each event
set spinmode none
set max_running_process 1
decay n1 > ldecay w+
decay w+ > ldecay v
decay n1 > ldecay w-
decay w- > ldecay v

When removing spinmode none, it worked, but when it is set like this, it fails.
Is there any reason why this fails?
I thought that spinmode none only washes out the spin correlations but still works for 2 body decays in terms of sample generation.

Regards,
Sihyun.

[1] https://feynrules.irmp.ucl.ac.be/wiki/HeavyN

#************************************************************
#* *
#* Command File for aMCatNLO *
#* *
#* run as ./bin/aMCatNLO.py filename *
#* *
#************************************************************
launch
Traceback (most recent call last):
  File "/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/HeavyNeutrino_trilepton_M-1000_V-0.01_tau_NLO/bin/internal/extended_cmd.py", line 1514, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/HeavyNeutrino_trilepton_M-1000_V-0.01_tau_NLO/bin/internal/extended_cmd.py", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/HeavyNeutrino_trilepton_M-1000_V-0.01_tau_NLO/bin/internal/amcatnlo_run_interface.py", line 1693, in do_launch
    self.exec_cmd('decay_events -from_cards', postcmd=False)
  File "/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/HeavyNeutrino_trilepton_M-1000_V-0.01_tau_NLO/bin/internal/extended_cmd.py", line 1543, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/HeavyNeutrino_trilepton_M-1000_V-0.01_tau_NLO/bin/internal/extended_cmd.py", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/HeavyNeutrino_trilepton_M-1000_V-0.01_tau_NLO/bin/internal/common_run_interface.py", line 3687, in do_decay_events
    madspin_cmd.import_command_file(path)
  File "/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1660, in import_command_file
    self.exec_cmd(line, precmd=True)
  File "/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1543, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/madgraph/various/misc.py", line 100, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/MadSpin/interface_madspin.py", line 574, in do_launch
    return self.run_bridge(line)
  File "/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/MadSpin/interface_madspin.py", line 852, in run_bridge
    evt_decayfile[pdg] = self.generate_events(pdg, min(nb_needed,100000), mg5)
  File "/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/MadSpin/interface_madspin.py", line 1266, in generate_events
    out[i] = lhe_parser.EventFile(pjoin(decay_dir, 'events.lhe.gz'))
  File "/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/madgraph/various/lhe_parser.py", line 210, in __init__
    super(EventFile, self).__init__(path, mode, *args, **opt)
  File "/cvmfs/cms.cern.ch/slc6_amd64_gcc630/external/python/2.7.11-mlhled2/lib/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/HeavyNeutrino_trilepton_M-1000_V-0.01_tau_NLO/madspingrid/decay_9900012_0/events.lhe.gz'
Related File: /data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/HeavyNeutrino_trilepton_M-1000_V-0.01_tau_NLO/madspingrid/decay_9900012_0/events.lhe.gz
Value of current Options:
              text_editor : vi
      notification_center : True
                    pjfry : None
       cluster_local_path : None
    cluster_status_update : (600, 30)
               hepmc_path : None
          pythia-pgs_path : None
              thepeg_path : None
        madanalysis5_path : None
                      OLP : MadLoop
                 applgrid : applgrid-config
                 run_mode : 2
        cluster_temp_path : None
            cluster_queue : None
         madanalysis_path : None
                   lhapdf : /data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/LHAPDF/bin/lhapdf-config
             stdout_level : None
            f2py_compiler : None
                    ninja : /data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/HEPTools/lib
   automatic_html_opening : False
       cluster_retry_wait : 300
      exrootanalysis_path : /data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/ExRootAnalysis
                  timeout : 60
                  nb_core : 72
         fortran_compiler : None
                  collier : /data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/HEPTools/lib
             pythia8_path : /data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/HEPTools/pythia8
                hwpp_path : None
                    golem : None
                  td_path : None
             delphes_path : None
              auto_update : 0
             cluster_type : condor
               eps_viewer : None
              web_browser : None
             cluster_size : 100
           cluster_memory : None
                  amcfast : amcfast-config
      output_dependencies : external
             cluster_time : None
mg5amc_py8_interface_path : /data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5/HEPTools/MG5aMC_PY8_interface
         cluster_nb_retry : 1
                 mg5_path : /data9/Users/shjeon/MadGraph/CMSSW_9_3_16/src/MG5_aMC_v2_6_5
             syscalc_path : None
             cpp_compiler : None
#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.6.5 2018-02-03 *
#* *
#* 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
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 group_subprocesses Auto
set ignore_six_quark_processes False
set loop_optimized_output True
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+ = ta+
define ldecay+ = e+ mu+ ta+
define l- = ta-
define ldecay- = e- mu- ta-
define l = l+ l-
define ldecay = ldecay+ ldecay-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
define v = vl vl~
define w = w- w+
import model SM_HeavyN_NLO
define p = 21 2 4 1 3 -2 -4 -1 -3 5 -5 # pass to 5 flavors
define p = p b b~
define j = p
generate p p > n1 l [QCD]
output HeavyNeutrino_trilepton_M-1000_V-0.01_tau_NLO -nojpeg
######################################################################
## 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
      23 9.118760e+01 # mz
      25 1.257000e+02 # mh
      9900012 1.000000e+03 # mn1
      9900014 5.000000e+02 # mn2
      9900016 1.000000e+03 # 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 0.000000e+00 # ven1
      2 0.000000e+00 # ven2
      3 0.000000e+00 # ven3
      4 0.000000e+00 # vmun1
      5 0.000000e+00 # vmun2
      6 0.000000e+00 # vmun3
      7 1.000000e-02 # vtan1
      8 0.000000e+00 # vtan2
      9 0.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 #
      6 1.733000e+02 # ymt
###################################
## 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.350000e+00
#
# 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.085000e+00
#
# PDG Width
DECAY 25 9.858161e-04
# BR NDA ID1 ID2 ...
   1.508750e-01 3 -2 1 24 # 0.000148735004088
   1.508750e-01 3 -4 3 24 # 0.000148735004088
   1.497896e-01 3 -24 -1 2 # 0.000147664999293
   1.497896e-01 3 -24 -3 4 # 0.000147664999293
   5.148019e-02 3 -12 11 24 # 5.07500001331e-05
   5.062100e-02 3 -24 -15 16 # 4.99029967981e-05
   5.058753e-02 3 -24 -11 12 # 4.98700015332e-05
   5.055405e-02 3 -16 15 24 # 4.98369964102e-05
   5.051043e-02 3 -24 -13 14 # 4.97939951119e-05
   5.036944e-02 3 -14 13 24 # 4.96550049e-05
   1.429509e-02 3 -1 1 23 # 1.40923298729e-05
   1.429509e-02 3 -3 3 23 # 1.40923298729e-05
   1.429509e-02 3 -5 5 23 # 1.40923298729e-05
   1.120138e-02 3 -2 2 23 # 1.10425007462e-05
   1.120138e-02 3 -4 4 23 # 1.10425007462e-05
   6.499184e-03 3 -16 16 23 # 6.40700022406e-06
   6.495329e-03 3 -14 14 23 # 6.403199903e-06
   6.455362e-03 3 -12 12 23 # 6.36379979093e-06
   3.270083e-03 3 -11 11 23 # 3.22370046974e-06
   3.270083e-03 3 -13 13 23 # 3.22370046974e-06
   3.270083e-03 3 -15 15 23 # 3.22370046974e-06
#
# 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 1.311335e-01
# BR NDA ID1 ID2 ...
   2.519728e-01 2 24 15 # 0.0330420751688
   2.519728e-01 2 -24 -15 # 0.0330420751688
   1.259758e-01 2 23 16 # 0.0165196475693
   1.259758e-01 2 23 -16 # 0.0165196475693
   1.220514e-01 2 25 16 # 0.0160050272619
   1.220514e-01 2 25 -16 # 0.0160050272619
#
# PDG Width
DECAY 9900014 1.500000e+00
#
# PDG Width
DECAY 9900016 1.230000e+01
#***********************************************************************
# 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 *
#***********************************************************************
#
#*******************
# 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 *
#***********************************************************************
  1000 = nevents ! Number of unweighted events requested
  0.001 = req_acc ! Required accuracy (-1=auto determined from nevents)
  100 = 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. *
#***********************************************************************
  lhapdf = pdlabel ! PDF set
  292200 = lhaid ! if pdlabel=lhapdf, this is the lhapdf number
#***********************************************************************
# 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 of all final state particles and partons. This *
# can be changed in SubProcesses/set_scales.f) *
#***********************************************************************
  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 = muF1_ref_fixed ! fixed fact reference scale for pdf1
  91.118 = muF2_ref_fixed ! fixed fact reference scale for pdf2
  -1 = dynamical_scale_choice ! Choose one of the preselected dynamical choices
#***********************************************************************
# Renormalization and factorization scales (advanced and NLO options) *
#***********************************************************************
  False = fixed_QES_scale ! if .true. use fixed Ellis-Sexton scale
  91.118 = QES_ref_fixed ! fixed Ellis-Sexton reference scale
  1.0 = muR_over_ref ! ratio of current muR over reference muR
  1.0 = muF1_over_ref ! ratio of current muF1 over reference muF1
  1.0 = muF2_over_ref ! ratio of current muF2 over reference muF2
  1.0 = QES_over_ref ! ratio of current QES over reference QES
#***********************************************************************
# Reweight flags to get scale dependence and PDF uncertainty *
# For scale dependence: factor rw_scale_up/down around central scale *
# For PDF uncertainty: use LHAPDF with supported set *
#***********************************************************************
  True = reweight_scale ! reweight to get scale dependence
  0.5 = rw_Rscale_down ! lower bound for ren scale variations
  2.0 = rw_Rscale_up ! upper bound for ren scale variations
  0.5 = rw_Fscale_down ! lower bound for fact scale variations
  2.0 = rw_Fscale_up ! upper bound for fact scale variations
  True = reweight_PDF ! reweight to get PDF uncertainty
  292201 = PDF_set_min ! First of the error PDF sets
  292302 = PDF_set_max ! Last of the error PDF sets
#***********************************************************************
#***********************************************************************
# 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) *
#***********************************************************************
  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
  0.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 gen 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
  4.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 *
#***********************************************************************
  0.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)
#***********************************************************************
# Maximal PDG code for quark to be considered a jet when applying cuts.*
# At least all massless quarks of the model should be included here. *
#***********************************************************************
  5 = maxjetflavor
 #***********************************************************************
# For aMCfast+APPLGRID use in PDF fitting (http://amcfast.hepforge.org)*
#***********************************************************************
  0 = iappl ! aMCfast switch (0=OFF, 1=prepare APPLgrids, 2=fill grids)
#***********************************************************************

Question information

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

Hi,

1. Is it really the syntax that you want? Or do you want that one?
decay n1 > ldecay w+, ldecay v
decay n1 > ldecay w-, w- > ldecay v

(in your syntax the w- are not decay by madspin)

2. Could you try with the latest version? I doubt that it helps but this worth the try.

> When removing spinmode none, it worked, but when it is set like this, it fails.
Is there any reason why this fails?
I thought that spinmode none only washes out the spin correlations but still works for 2 body decays in terms of sample generation.

Well behind the curtain, this flag is actually running a completely different code which has quite few overlap with the standard madspin (mainly the interface, not even the method to read/write the events actually). This is why the limitation of the normal madspin and of the spinmode=none are so different.

Cheers,

Olivier

Revision history for this message
Sihyun Jeon (shjeon) said :
#2

Hi Olivier,

I have one more question..

(1) decay n1 > ldecay w+, w+ > ldecay v
(2) decay n1 > ldecay w+ AND decay w+ > ldecay v

For (1), are both n1 and w+ decay by madspin? Or is it only w+ decay by madspin, but not n1?
For (2) are both n1 and w+ not a decay by madspin?

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

let put three syntax:

1. decay n1 > ldecay w+, w+ > ldecay v

2. decay n1 > ldecay w+, w+ > ldecay v
 decay w+ > ldecay v

3. decay n1 > ldecay w+
decay w+ > ldecay v

Now the first step is to look at your production matrix element:
in your case (let's forget NLO here) :
generate p p > n1 l

You have two particles in your final states: n1 and l
in all three syntax, you ask to decay "n1" and we apply such decay so with
1. it is a sequence of two two-body decay
with 2. it is the same decay as in 1
with 3. we decay it in a two body decay [NO decay of the W here!!]

then we look at "l" and you do not ask to decay it, so we do nothing.

If your process was
generate p p > n1 l w+ w-
Then in addition of the n1 decay (same as above) you would also have the decay of the W with the syntax 2 and 3. (but not with syntax 1)

Cheers,

Olivier

Revision history for this message
Sihyun Jeon (shjeon) said :
#4

Hi Olivier,
Thanks for the kind answers.

Apart from this, I have another question regarding MadSpin.
I wonder if you remember the problem I had when using spinmode onshell.
https://answers.launchpad.net/mg5amcnlo/+question/662694

The problem was, in short,
when I expect (from BSM theory) and get (by using spinmode none) 1:1 SS and OS dileptons,
I get (by using spinmode onshell) not 1:1, it was 49.30 : 50.70.
Was there any fix applied to MadSpin afterwards for this kind of issue?
Or possibly, do you not consider this as a problem, instead a problem from perhaps the UFO model card?

Regards,
Sihyun.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#5

Did you made a run without NWA in order to check that ratio?
I'm still not convinced that the ratio should really be 1:1 (and that NWA is really valid in that case)

Concerning the code, I do not think that we change anything to it.

Cheers,

Olivier

Revision history for this message
Sihyun Jeon (shjeon) said :
#6

Sorry Olivier, how do I "run without NWA"?

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#7

You can do
generate p p > l ldecay ldecay v

Cheers,

Olivier

Revision history for this message
Sihyun Jeon (shjeon) said :
#8

Hi, thanks for suggestion

I will check this by doing
generate p p > n1 > l l j j
since generate p p > l1 l2 l3 v, this gives you l2l3v 3body decay, I cannot distinguish which l2 or l3 is attached to n1.
But by p p > n1 > l l j j it's pretty much obvious that 2 leptons are both attached to n1.

Revision history for this message
Sihyun Jeon (shjeon) said :
#9

Hi Olivier,

I tried several things (using v265)

1. NLO + MadSpin (spinmode none)
define mu = mu+ mu- -> MadGraph
generate p p > n1 mu [QCD] -> MadGraph
set spinmode none -> MadSpin
decay n1 > mu j j -> MadSpin

This gave me 50:50 = SS:OS.

2. NLO + MadSpin (spinmode onshell)
define mu = mu+ mu- -> MadGraph
generate p p > n1 mu [QCD] -> MadGraph
set spinmode onshell -> MadSpin
decay n1 > mu j j -> MadSpin

This gave me 47:53 = SS:OS
(Sorry I wrote "it was 49.30 : 50.70." above, my memories were not clear)

3. LO
define mu = mu+ mu-
generate p p > n1 > mu mu j j

This gave me 50:50 = SS:OS
Cross section was also stable, compared to NLO cross sections, the difference was only about 20% which I guess it's okay considering the k-factors. Thus, the events were correctly made for the diagrams that I've targetted "p p > w > mu n1, (n1 > mu j j)".

100K events were made and checked its charge ratios so I don't think the stat is an issue here.

So based on these results, only NLO+onshell giving me not 50:50, how could we interpret this behaviour?

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#10

Interesting, this is a clear indication that something is not valid with the onshell model of madspin.

Cheers,

Olivier

> On 16 Aug 2020, at 12:05, Sihyun Jeon <email address hidden> wrote:
>
> Question #692130 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/692130
>
> Status: Answered => Open
>
> Sihyun Jeon is still having a problem:
> Hi Olivier,
>
> I tried several things (using v265)
>
> 1. NLO + MadSpin (spinmode none)
> define mu = mu+ mu- -> MadGraph
> generate p p > n1 mu [QCD] -> MadGraph
> set spinmode none -> MadSpin
> decay n1 > mu j j -> MadSpin
>
> This gave me 50:50 = SS:OS.
>
> 2. NLO + MadSpin (spinmode onshell)
> define mu = mu+ mu- -> MadGraph
> generate p p > n1 mu [QCD] -> MadGraph
> set spinmode onshell -> MadSpin
> decay n1 > mu j j -> MadSpin
>
> This gave me 47:53 = SS:OS
> (Sorry I wrote "it was 49.30 : 50.70." above, my memories were not clear)
>
> 3. LO
> define mu = mu+ mu-
> generate p p > n1 > mu mu j j
>
> This gave me 50:50 = SS:OS
> Cross section was also stable, compared to NLO cross sections, the difference was only about 20% which I guess it's okay considering the k-factors. Thus, the events were correctly made for the diagrams that I've targetted "p p > w > mu n1, (n1 > mu j j)".
>
> 100K events were made and checked its charge ratios so I don't think the
> stat is an issue here.
>
> So based on these results, only NLO+onshell giving me not 50:50, how
> could we interpret this behaviour?
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#11

Can you help with this problem?

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

To post a message you must log in.