systematics computation

Asked by Shao-Ping Li

Dear Olivier,

 I suppose there is a way to obtain the cross section in a form as 'central value \pm statistical uncertainty + upper systematical error - lower systematical error'. The statistical uncertainty can be quite automatically obtained, while the systematical errors, as far as I know, should be handled by setting 'T = use_syst '. Now I'd like to know the uncertainties caused by scale /PDF variances, then I compile the run_card as follows (I just copy the relevant parts)

#*********************************************************************
# 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
  3 = dynamical_scale_choice ! Choose one of the preselected dynamical choices
  1.0 = scalefact ! scale factor for event-by-event scales
#*********************************************************************
# Store info for systematics studies *
# WARNING: Do not use for interference type of computation *
#*********************************************************************
  T = use_syst ! Enable systematics studies
systematics = systematics_program ! none, systematics [python], SysCalc [depreceted, C++]
['--together=mur,muf,dyn', '--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.
#**************************************
# Parameter below of the systematics study
# will be used by SysCalc (if installed)
#**************************************
#
0.5 1 2 = sys_scalefact # factorization/renormalization scale factor
none = sys_alpsfact # lpha_s emission scale factors
auto = sys_matchscale # variation of merging scale
# PDF sets and number of members (0 or none for all members).
MSTW2008nlo68cl_nf4 = sys_pdf # list of pdf sets. (errorset not valid for syscalc)
# MSTW2008nlo68cl.LHgrid 1 = sys_pdf
#
#*********************************************************************
# Additional hidden parameters
#*********************************************************************
    1.0,2.0,0.5 = rw_fscale # hidden_parameter
  .true. = reweight_pdf # hidden_parameter
    .true. = reweight_scale # hidden_parameter
  -1 = sys_scalecorrelation # hidden_parameter
**********************************************************

before that, I have generated the process and launched it with the reweight=ON. I have also searched the relevant issues on the FAQs, tried many approaches, but it always fails with the following info,

AttributeError : 'module' object has no attribute 'mkPDF'
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/home/taylor/MG5_aMC_v2_6_3_2/pptowwj-4f/run_21_tag_1_debug.log'.
Please attach this file to your report.

Is there something wrong with the run_card compilation ? By the way, I use mg5_aMC-v2-6-3-2 with lhapdf6

Best regards,
Li

Question information

Language:
English Edit question
Status:
Expired
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

Dear Shao Ping,

You will always have an estimation of the statistical uncertainty whatever parameter you choose in the run_card.

The parameter use_syst=T allows the code to keep track of the various parameter needed for the computation of the systematics (scale variation and pdf variation). Those information are written inside the lhe file such that you can compute those systematics without the need to rerun the full computation.

If you want to run both steps (generation of the events + estimation of the systematics) one after each other, you have to set the run_card as follow:
use_syst = T
systematics = systematics_program
['--together=mur,muf,dyn', '--pdf=errorset'] = systematics_arguments

The last one can obviously changed if you want to use additional option for the systematics computation (change the value for mur/muf variation, compare with another PDF set, ...) [more details on the option here: https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/Systematics#LO

If you want to have the information written in the lhe file, but not compute the systematics right away, you should set the following parameter
use_syst = T
none = systematics_program
Then latter you should run the systematics.py script on that lhe file manually.

Note that
1) you should NOT set "reweight=ON" for the computation of the systematics. The reweight=ON options is dedicated to BSM reweighting where you change different theoretical hyppothesis. (see arXiv:1607.00763 for more details)
2) The above description works for LO generation not for NLO one. (for NLO one please look at https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/Systematics#NLO)
3) your parameters:
  1.0,2.0,0.5 = rw_fscale # hidden_parameter
  .true. = reweight_pdf # hidden_parameter
    .true. = reweight_scale # hidden_parameter
are invalid entry in the run_card (for LO run). I would remove those entry since presence of un-defined parameter are designed for plugin and can lead to crash otherwise.

Now concerning your crash, I would need the crash report to be 100% sure.
But it seems to be a problem with your lhapdf installation.
Which version of lhapdf6 did you have installed? It is possible (but unlikely that they have changed their python API in a recent version. I'm personally running with 6.1.6 without any issue (I think that this is also running with 6.2 but not 100% sure). Note that "install lhapdf" install 6.1.6

Cheers,

Olivier

Revision history for this message
Shao-Ping Li (shopping.lee) said :
#2

Dear Olivier,
     Thanks for your timely reply! I have followed your advice as follows,

         use_syst = T
         systematics = systematics_program
        ['--together=mur,muf,dyn', '--pdf=errorset'] = systematics_arguments

I've also set "reweight=OFF" and removed the invalid entries in (3). To make clearer, I also used lhapdf 6.1.6 via "install lhapdf". But the result still comes with the AttributeError. Actually, I need to apologize that I didn't post the WARNING at the very beginning, I suppose the WARNING to be quite relevant for this situation, which is given by:

WARNING: program /usr/bin/python -O /home/taylor/MG5_aMC_v2_6_3_2/pptowwj-4f/bin/internal/systematics.py unweighted_events.lhe.gz ./tmp_1_unweighted_events.lhe.gz --together=mur,muf,dyn --pdf=errorset --start_event=2500 --stop_event=5000 --result=./log_sys_1.txt --lhapdf_config=/home/taylor/MG5_aMC_v2_6_3_2/HEPTools/lhapdf6/bin/lhapdf-config launch ends with non zero status: 1. Stop all computation

Thanks for your hard work,

Shao-Ping

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

Can you copy-paste the content of
/home/taylor/MG5_aMC_v2_6_3_2/pptowwj-4f/run_21_tag_1_debug
(or the equivalent for your last run)

Thanks ,

Olivier

Revision history for this message
Shao-Ping Li (shopping.lee) said :
#4

Dear Olivier,
      The debug.log of my last tun (run_25) is:

generate_events run_25
Traceback (most recent call last):
  File "/home/taylor/MG5_aMC_v2_6_3_2/madgraph/interface/extended_cmd.py", line 1501, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/taylor/MG5_aMC_v2_6_3_2/madgraph/interface/extended_cmd.py", line 1450, in onecmd_orig
    return func(arg, **opt)
  File "/home/taylor/MG5_aMC_v2_6_3_2/madgraph/interface/madevent_interface.py", line 2469, in do_generate_events
    self.run_generate_events(switch_mode, args)
  File "/home/taylor/MG5_aMC_v2_6_3_2/madgraph/interface/common_run_interface.py", line 6711, in new_fct
    original_fct(obj, *args, **opts)
  File "/home/taylor/MG5_aMC_v2_6_3_2/madgraph/interface/madevent_interface.py", line 2551, in run_generate_events
    postcmd=False, printcmd=False)
  File "/home/taylor/MG5_aMC_v2_6_3_2/madgraph/interface/extended_cmd.py", line 1528, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/taylor/MG5_aMC_v2_6_3_2/madgraph/interface/extended_cmd.py", line 1450, in onecmd_orig
    return func(arg, **opt)
  File "/home/taylor/MG5_aMC_v2_6_3_2/madgraph/interface/common_run_interface.py", line 1835, in do_systematics
    out = self.do_systematics(line)
  File "/home/taylor/MG5_aMC_v2_6_3_2/madgraph/interface/common_run_interface.py", line 1787, in do_systematics
    result=result_file
  File "/home/taylor/MG5_aMC_v2_6_3_2/madgraph/various/systematics.py", line 1027, in call_systematics
    obj = Systematics(input, output, log=log, **opts)
  File "/home/taylor/MG5_aMC_v2_6_3_2/madgraph/various/systematics.py", line 195, in __init__
    pdfset = lhapdf.mkPDF(int(data)).set()
AttributeError: 'module' object has no attribute 'mkPDF'
                              Run Options
                              -----------
               stdout_level : 20 (user set)

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

                      Configuration Options
                      ---------------------
                text_editor : None
         cluster_local_path : None
      cluster_status_update : (600, 30)
               pythia8_path : /home/taylor/MG5_aMC_v2_6_3_2/HEPTools/pythia8 (user set)
                  hwpp_path : None (user set)
            pythia-pgs_path : /home/taylor/MG5_aMC_v2_6_3_2/pythia-pgs (user set)
                    td_path : None (user set)
               delphes_path : None (user set)
                thepeg_path : None (user set)
               cluster_type : condor
          madanalysis5_path : /home/taylor/MG5_aMC_v2_6_3_2/HEPTools/madanalysis5/madanalysis5 (user set)
           cluster_nb_retry : 1
                 eps_viewer : None
                web_browser : None
               syscalc_path : None (user set)
           madanalysis_path : None (user set)
                     lhapdf : /home/taylor/MG5_aMC_v2_6_3_2/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.6.3.2 2018-06-22 *
#* *
#* 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~
generate p p > w+ w- j
output pptowwj-4f
######################################################################
## 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
    5 4.700000e+00 # MB
    6 1.732000e+02 # MT
   15 1.777000e+00 # MTA
   23 9.118800e+01 # MZ
   25 1.250000e+02 # MH
## Dependent parameters, given by model restrictions.
## Those values should be edited following the
## analytical expression. MG5 ignores those values
## but they are important for interfacing the output of MG5
## to external program such as Pythia.
  1 0.000000 # d : 0.0
  2 0.000000 # u : 0.0
  3 0.000000 # s : 0.0
  4 0.000000 # c : 0.0
  11 0.000000 # e- : 0.0
  12 0.000000 # ve : 0.0
  13 0.000000 # mu- : 0.0
  14 0.000000 # vm : 0.0
  16 0.000000 # vt : 0.0
  21 0.000000 # g : 0.0
  22 0.000000 # a : 0.0
  24 80.419002 # w+ : cmath.sqrt(MZ__exp__2/2. + cmath.sqrt(MZ__exp__4/4. - (aEW*cmath.pi*MZ__exp__2)/(Gf*sqrt__2)))

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

###################################
## INFORMATION FOR YUKAWA
###################################
Block yukawa
    5 4.700000e+00 # ymb
    6 1.732000e+02 # ymt
   15 1.777000e+00 # ymtau

###################################
## INFORMATION FOR DECAY
###################################
DECAY 6 1.491500e+00 # WT
DECAY 23 2.441404e+00 # WZ
DECAY 24 2.047600e+00 # WW
DECAY 25 6.382339e-03 # WH
## Dependent parameters, given by model restrictions.
## Those values should be edited following the
## analytical expression. MG5 ignores those values
## but they are important for interfacing the output of MG5
## to external program such as Pythia.
DECAY 1 0.000000 # d : 0.0
DECAY 2 0.000000 # u : 0.0
DECAY 3 0.000000 # s : 0.0
DECAY 4 0.000000 # c : 0.0
DECAY 5 0.000000 # b : 0.0
DECAY 11 0.000000 # e- : 0.0
DECAY 12 0.000000 # ve : 0.0
DECAY 13 0.000000 # mu- : 0.0
DECAY 14 0.000000 # vm : 0.0
DECAY 15 0.000000 # ta- : 0.0
DECAY 16 0.000000 # vt : 0.0
DECAY 21 0.000000 # g : 0.0
DECAY 22 0.000000 # a : 0.0
#*********************************************************************
# MadGraph5_aMC@NLO *
# *
# run_card.dat 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. *
#*********************************************************************
  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 *
#*********************************************************************
  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. *
#*********************************************************************
  lhapdf= pdlabel ! PDF set
  23300 = 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
  3 = 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
  sum = event_norm ! average/sum. Normalization of the weight in the LHEF

#*********************************************************************
# Matching parameter (MLM only)
#*********************************************************************
  1 = ickkw ! 0 no matching, 1 MLM
  1.0 = alpsfact ! scale factor for QCD emission vx
  False = chcluster ! cluster only according to channel diag
  4 = 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) *
#*********************************************************************
  30.0 = ptj ! minimum pt for the jets
  0.0 = ptb ! minimum pt for the b
  20.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) *
#*********************************************************************
  4.0 = etaj ! max rap for the jets
  -1.0 = etab ! max rap for the b
  2.0 = 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.5 = drjj ! min distance between jets
  0.0 = drbb ! min distance between b's
  0.4 = drll ! min distance between leptons
  0.7 = 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 = 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) *
#*********************************************************************
  4 = 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++]
  ['--together=mur,muf,dyn', '--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.
#['--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
#**************************************
# Parameter below of the systematics study
# will be used by SysCalc (if installed)
#**************************************
#
 0.5 1 2 = sys_scalefact # factorization/renormalization scale factor
none = sys_alpsfact # lpha_s emission scale factors
auto = sys_matchscale # variation of merging scale
# PDF sets and number of members (0 or none for all members).
  MSTW2008nlo68cl_nf4 = sys_pdf # list of pdf sets. (errorset not valid for syscalc)
# MSTW2008nlo68cl.LHgrid 1 = sys_pdf
#
#*********************************************************************
# Additional hidden parameters
#*********************************************************************
# True = store_rwgt_info ! store info for reweighting in the LHE file
# 1.0,2.0,0.5 = rw_fscale # hidden_parameter
# .true. = reweight_pdf # hidden_parameter
# .true. = reweight_scale # hidden_parameter

 # -1 = sys_scalecorrelation # hidden_parameter
 # 1.0,2.0,0.5 = rw_rscale # hidden_parameter

Thanks,
Shao Ping

Revision history for this message
Shao-Ping Li (shopping.lee) said :
#5

Hello,
     It seems strange to me about the systematic computation.
     I have obtained the previous error with the standard model, as described above. Recently, I use SARAH to create UFO and SPheno files, and generate some events. Basically, everything just goes well. I use the same run_card.bat as in the standard model case. Guess what, I didn't receive the same error , i.e. "AttributeError : 'module' object has no attribute 'mkPDF'". Instead, there is a warning as

INFO: Running Systematics computation
INFO: Trying to download NNPDF23_lo_as_0130_qed
Traceback (most recent call last):
  File "/home/taylor/MG5_aMC_v2_6_3_2/HEPTools/lhapdf6/bin/lhapdf", line 12, in <module>
    __version__ = lhapdf.__version__
AttributeError: 'module' object has no attribute '__version__'
WARNING: impossible to download all the pdfsets. Bypass systematics

Although I didn't receive any errors after the run, the systematic result couldn't be obtained.

So, what does the warning mean?

Thanks a lot.

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

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

HI,

That's an issue between lhapdf and hepforge. The script from lhapdf to download the pdf set on hepforge is currently broken (even on their latest version). So for the moment, You have to download that set manually into lhapdf if you want to have the systematics working.

For the moment, I'm hoping that such issue will be either solve by lhapdf author (or by hepforge). If ~6/12 months this is still not the case, then I would see how I can create my own script.

Cheers,

Olivier

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

HI,

I have finally decide to add a workearound the lhapdf/hepforge issue and implement our own method to download the pdf (via hepforge but bypassing lhapdf python interface).

This will be include in 2.6.4

Cheers,

Olivier

Revision history for this message
Christoph Imfeld (chris1991) said :
#9

Dear Olivier,

I also am stuck with that first error that Shao-Ping Li got 1.5 years ago, using all the newest Versions.
Do you know a fix to the "make PDF" error?
The above only answers how to deal with this other error, but the first one seems to persist.

Best regards,
Christoph

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

Hi,

No one reported a fix concerning that issue.
It seems to have an issue with lhapdf.
My best guess so far is that you have another python module/file name lhapdf (lhapdf.py if this is a file).
and therefore the wrong library is loaded.

Cheers,

Olivier

Revision history for this message
Christoph Imfeld (chris1991) said :
#11

Dear Olivier,

Thank you for your Response and help:
That was exactly it - while trying to fix a first problem (Python not being able to find a .so file it needed for the lhapdf to be properly imported in the systematics code) I installed lhapdf additionally externally which led to two lhapdf python modules being present.
After removing this module externally again, it put me back to the error message, which I got initially, which I solved now as well - it now works fine.

Best regards,
Christoph