Reweighting error for lepton collider (Info file not found for PDF set...)

Asked by Alfredo Glioti on 2020-07-22

Hello,

I'm trying to generate a simple process at LO
   mu+ mu- > Z h
with the SMEFTatNLO model trying to reweight on some of the new physics parameter, but I keep getting errors during the reweighting step.

It seems like it's trying to read some PDF files but then it gets stuck since in my process I'm not using any.

Please tell me if you need more informations,
Alfredo

Here is the debug log of one of the failed runs:

#************************************************************
#* MadGraph5_aMC@NLO/MadEvent *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.7.3 20xx-xx-xx *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadEvent *
#* *
#* run as ./bin/madevent.py filename *
#* *
#************************************************************
generate_events
Traceback (most recent call last):
  File "/data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/test_runs/Zh/bin/internal/extended_cmd.py", line 1515, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/test_runs/Zh/bin/internal/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/test_runs/Zh/bin/internal/madevent_interface.py", line 2468, in do_generate_events
    self.run_generate_events(switch_mode, args)
  File "/data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/test_runs/Zh/bin/internal/common_run_interface.py", line 7011, in new_fct
    original_fct(obj, *args, **opts)
  File "/data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/test_runs/Zh/bin/internal/madevent_interface.py", line 2566, in run_generate_events
    self.exec_cmd('reweight -from_cards', postcmd=False)
  File "/data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/test_runs/Zh/bin/internal/extended_cmd.py", line 1544, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/test_runs/Zh/bin/internal/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/test_runs/Zh/bin/internal/common_run_interface.py", line 2153, in do_reweight
    reweight_cmd.import_command_file(path)
  File "/data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/madgraph/interface/extended_cmd.py", line 1661, in import_command_file
    self.exec_cmd(line, precmd=True)
  File "/data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/madgraph/interface/extended_cmd.py", line 1544, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/madgraph/various/misc.py", line 100, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/madgraph/interface/reweight_interface.py", line 556, in do_launch
    weight = self.calculate_weight(event)
  File "/data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/madgraph/interface/reweight_interface.py", line 985, in calculate_weight
    self.pdf = lhapdf.mkPDF(self.banner.run_card.get_lhapdf_id())
  File "lhapdf.pyx", line 611, in lhapdf.mkPDF
  File "lhapdf.pyx", line 571, in lhapdf.mkPDF_lhaid
RuntimeError: Info file not found for PDF set 'NNPDF23_lo_as_0130_qed'
                              Run Options
                              -----------
               stdout_level : None

                         MadEvent Options
                         ----------------
     automatic_html_opening : False (user set)
        notification_center : True
          cluster_temp_path : None
             cluster_memory : None
               cluster_size : 100
              cluster_queue : None
                    nb_core : 32 (user set)
               cluster_time : None
                   run_mode : 2

                      Configuration Options
                      ---------------------
                text_editor : None
         cluster_local_path : None
      cluster_status_update : (600, 30)
               pythia8_path : None (user set)
                  hwpp_path : None (user set)
            pythia-pgs_path : None (user set)
                    td_path : None (user set)
               delphes_path : None (user set)
                thepeg_path : None (user set)
               cluster_type : condor
          madanalysis5_path : None (user set)
           cluster_nb_retry : 1
                 eps_viewer : None
                web_browser : None
               syscalc_path : None (user set)
           madanalysis_path : None (user set)
                     lhapdf : /data1/Data_aglioti/Cernbox/Muon_Collider/MG5_aMC_v2_7_3/HEPTools/lhapdf6/bin/lhapdf-config (user set)
              f2py_compiler : None
                 hepmc_path : None (user set)
         cluster_retry_wait : 300
           fortran_compiler : None
                auto_update : 7 (user set)
        exrootanalysis_path : None (user set)
                    timeout : 60
               cpp_compiler : None
#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.7.3 2020-06-21 *
#* *
#* 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~
import model SMEFTatNLO_U2_2_U3_3_cG_4F_LO_UFO-Zh
define p = 21 2 4 1 3 -2 -4 -1 -3 5 -5 # pass to 5 flavors
define j = p
generate mu+ mu- > Z h NP=2
output test_runs/Zh
######################################################################
## 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 DIM6
###################################
Block dim6
    1 1.000000e+03 # Lambda

###################################
## INFORMATION FOR DIM62F
###################################
Block dim62f
    2 1.100000e-03 # cpl2
    5 1.200000e-03 # c3pl2
    8 1.300000e-03 # cpmu

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

###################################
## INFORMATION FOR MASS
###################################
Block mass
    6 1.720000e+02 # MT
   23 9.118760e+01 # MZ
   24 7.982440e+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.118760e+01 # ghz : MZ
  9000003 7.982440e+01 # ghwp : MW
  9000004 7.982440e+01 # ghwm : MW

###################################
## INFORMATION FOR RENOR
###################################
Block renor
    1 5.550000e+02 # Mreno

###################################
## INFORMATION FOR SMINPUTS
###################################
Block sminputs
    2 1.166370e-05 # Gf
    3 1.184000e-01 # aS

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

###################################
## INFORMATION FOR DECAY
###################################
DECAY 23 2.495200e+00 # WZ
DECAY 24 2.085000e+00 # WW
DECAY 25 5.753088e-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 6 0.000000e+00 # t : 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 9000002 2.495200e+00 # ghz : WZ
DECAY 9000003 2.085000e+00 # ghwp : WW
DECAY 9000004 2.085000e+00 # ghwm : 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)
#*********************************************************************
# 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 *
#*********************************************************************
#
#*********************************************************************
# 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 *
#*********************************************************************
  10000 = nevents ! Number of unweighted events requested
  0 = 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 *
#*********************************************************************
     0 = lpp1 ! beam 1 type
     0 = lpp2 ! beam 2 type
     6500.0 = ebeam1 ! beam 1 total energy in GeV
     6500.0 = ebeam2 ! beam 2 total energy in GeV
#*********************************************************************
# Beam polarization from -100 (left-handed) to 100 (right-handed) *
#*********************************************************************
     0.0 = polbeam1 ! beam polarization for beam 1
     0.0 = polbeam2 ! beam polarization for beam 2

#*********************************************************************
# 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)
  average = event_norm ! average/sum. Normalization of the weight in the LHEF
# To see MLM/CKKW merging options: type "update MLM" or "update CKKW"

#*********************************************************************
#
#*********************************************************************
# 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)
#*********************************************************************
# Standard Cuts *
#*********************************************************************
# Minimum and maximum pt's (for max, -1 means no cut) *
#*********************************************************************
 {} = 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})
#
# For display option for energy cut in the partonic center of mass frame type 'update ecut'
#
#*********************************************************************
# Maximum and minimum absolute rapidity (for max, -1 means no cut) *
#*********************************************************************
 {} = 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 *
#*********************************************************************
#*********************************************************************
# Minimum and maximum invariant mass for pairs *
#*********************************************************************
 {} = 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.
#*********************************************************************
# Inclusive cuts *
#*********************************************************************
 0.0 = ptheavy ! minimum pt for at least one heavy final state
#*********************************************************************
# maximal pdg code for quark to be considered as a light jet *
# (otherwise b cuts are applied) *
#*********************************************************************
 4 = maxjetflavor ! Maximum jet pdg code
#*********************************************************************
#
#*********************************************************************
# Store info for systematics studies *
# WARNING: Do not use for interference type of computation *
#*********************************************************************
   False = use_syst ! Enable systematics studies
#
systematics = systematics_program ! none, systematics [python], SysCalc [depreceted, C++]
['--mur=0.5,1,2', '--muf=0.5,1,2', '--pdf=errorset'] = 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'

          ---------------------------------------

and the reweight_card:

#*************************************************************************
# Reweight Module *
# Matrix-Element reweighting at LO/NLO *
# Mattelaer Olivier arxiv:1607.00763 *
#*************************************************************************
#
# Note:
# 1) the value of alpha_s will be used from the event so the value in
# the param_card is not taken into account.
# 2) It is (in general) dangerous/wrong to change parameters by a large
# amount, if this changes the shape of the matrix elements a lot.
# (For example, changing a particle's mass by much more than its
# width leads to very inaccurate result). In such a case, separate
# event generation runs are needed.
#
#************************************************************************
# ENTER YOUR COMMANDS BELOW.
#************************************************************************

change mode LO # Define type of Reweighting. For LO sample this command
                   # has no effect since only "LO" mode is allowed.

launch
 set dim62f 2 scan:[-1.0e-3, 1.0e-10, 1.0e-3]
 set dim62f 5 scan:[-1.0e-3, 1.0e-10, 1.0e-3]
 set dim62f 8 scan:[-1.0e-3, 1.0e-10, 1.0e-3]

# SPECIFY A PATH OR USE THE SET COMMAND LIKE THIS:
# set sminputs 1 130 # modify 1/alpha_EW

#************************************************************************
# Manual: https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/Reweight
#************************************************************************
#
# Example of (standard) code for the computation of two weights:
#
# launch ! tag to start the computation of the first weight
# set BLOCKNAME ID VALUE ! rule to modify the current param_card
# set BLOCKNAME ID VALUE ! rule to modify the current param_card
# launch ! start to compute a second weight
# /home/Cards/param_card_2.dat ! you can also enter a path to a valid card
#
# Note: The command to specify the parameter are AFTER the associated "launch"
#
# Possible options:
# You can enter one of the following lines to customize the reweighting
# procedure. These need to be given before the 'launch' command.
#
# change model NAME : use another model for the matrix-elements to reweight
# with. In this case you need to provide the path to a correct
# param_card for the new model; you cannot modify the original one
# with the 'set' command.
# change process DEF [--add]: change the process by which you reweight.
# The initial and final state particles of the new process should
# be exactly identical to the ones in the original process.
# change helicity False: perform the reweighting by helicity summed
# matrix-elements even if the events have been written with a
# single helicity state.
# change mode XXX: change the type of reweighting performed.
# allowed values: LO, NLO, LO+NLO
# - This command has no effect for reweighting an .lhe event file with LO accuracy.
# In that case LO mode is always used (whatever entry is set).
# - When the .lhe file reweighted is at NLO accuracy, then all modes are allowed.
# * "LO" is an approximate leading order method
# * "NLO" is the NLO accurate method
# * "LO+NLO" runs both
# - "NLO" and "LO+NLO" modes requires 'store_rwgt_info' equals True (run_card.dat)
# If the reweighting is done at generation level this parameter will
# automatically be set on True.
#************************************************************************

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2020-07-22
Last reply:
2020-07-29

You have two options:
1. reinstall lhapdf (or install that PDF set inside your version of lhapdf)
2. apply that patch:
=== modified file 'madgraph/interface/reweight_interface.py'
--- madgraph/interface/reweight_interface.py 2020-06-16 13:10:57 +0000
+++ madgraph/interface/reweight_interface.py 2020-07-29 21:21:49 +0000
@@ -980,11 +980,12 @@
     def calculate_weight(self, event):
         """space defines where to find the calculator (in multicore)"""

- if not hasattr(self,'pdf'):
- lhapdf = misc.import_python_lhapdf(self.mg5cmd.options['lhapdf'])
- self.pdf = lhapdf.mkPDF(self.banner.run_card.get_lhapdf_id())
-
+
         if self.has_nlo and self.rwgt_mode != "LO":
+ if not hasattr(self,'pdf'):
+ lhapdf = misc.import_python_lhapdf(self.mg5cmd.options['lhapdf'])
+ self.pdf = lhapdf.mkPDF(self.banner.run_card.get_lhapdf_id())
+
             return self.calculate_nlo_weight(event)

         event.parse_reweight()

Cheers,

Olivier

Can you help with this problem?

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

To post a message you must log in.