About FO calculation

Asked by Bouaziz Hamza

Dear MG5 authors

I am doing some FO calculation in z+j process ,and have two questions regarding that.

1) I wrote my analysis in fortran and got my histograms but when i wanted to generate the LHE file (just to double check) i get the following error (i tried v3.2.0 & v3.1.1 and i tried ttbar production but still the same error, see down below):

2) For every channel in z+j, i managed to obtain the data values (thanks Matteo) for each observable. My question is: does each channel contribute equally to the overall histogram or not?

All the best,

Hamza.

<LesHouchesEvents version="3.0">
<header>
<!--
#*********************************************************************
# *
# MadGraph5_aMC@NLO *
# *
# Going Beyond *
# *
# http://madgraph.hep.uiuc.edu *
# http://madgraph.phys.ucl.ac.be *
# http://amcatnlo.cern.ch *
# *
# The MadGraph5_aMC@NLO team *
# *
#....................................................................*
# *
# This file contains all the information necessary to reproduce *
# the events generated: *
# *
# 1. software version *
# 2. proc_card : code generation info including model *
# 3. param_card : model primary parameters in the LH format *
# 4. run_card : running parameters (collider and cuts) *
# 5. pythia_card : present only if pythia has been run *
# 6. pgs_card : present only if pgs has been run *
# 7. delphes_cards : present only if delphes has been run *
# *
# *
#*********************************************************************
-->
<MGVersion>
3.1.1
</MGVersion>
<MGRunCard>
<![CDATA[
#***********************************************************************
# MadGraph5_aMC@NLO *
# *
# run_card.dat aMC@NLO *
# *
# This file is used to set the parameters of the run. *
# *
# Some notation/conventions: *
# *
# Lines starting with a hash (#) are info or comments *
# *
# mind the format: value = variable ! comment *
# *
# Some of the values of variables can be list. These can either be *
# comma or space separated. *
# *
# To display additional parameter, you can use the command: *
# update to_full *
#***********************************************************************
#
#*******************
# Running parameters
#*******************
#
#***********************************************************************
# Tag name for the run (one word) *
#***********************************************************************
  tag_1 = run_tag ! name of the run
#***********************************************************************
# Number of LHE events (and their normalization) and the required *
# (relative) accuracy on the Xsec. *
# These values are ignored for fixed order runs *
#***********************************************************************
 10000 = nevents ! Number of unweighted events requested
 -1.0 = req_acc ! Required accuracy (-1=auto determined from nevents)
 -1 = nevt_job! Max number of events per job in event generation.
                 ! (-1= no split).
#***********************************************************************
# Normalize the weights of LHE events such that they sum or average to *
# the total cross section *
#***********************************************************************
 average = event_norm ! valid settings: average, sum, bias
#***********************************************************************
# 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. *
#***********************************************************************
 nn23nlo = pdlabel ! PDF set
 244600 = lhaid ! If pdlabel=lhapdf, this is the lhapdf number. Only
              ! numbers for central PDF sets are allowed. Can be a list;
              ! PDF sets beyond the first are included via reweighting.
#***********************************************************************
# Include the NLO Monte Carlo subtr. terms for the following parton *
# shower (HERWIG6 | HERWIGPP | PYTHIA6Q | PYTHIA6PT | PYTHIA8) *
# WARNING: PYTHIA6PT works only for processes without FSR!!!! *
#***********************************************************************
  HERWIG6 = parton_shower
  1.0 = shower_scale_factor ! multiply default shower starting
                                  ! scale by this factor
#***********************************************************************
# Renormalization and factorization scales *
# (Default functional form for the non-fixed scales is the sum of *
# the transverse masses divided by two of all final state particles *
# and partons. This can be changed in SubProcesses/set_scales.f or via *
# dynamical_scale_choice option) *
#***********************************************************************
 False = fixed_ren_scale ! if .true. use fixed ren scale
 False = fixed_fac_scale ! if .true. use fixed fac scale
 91.118 = muR_ref_fixed ! fixed ren reference scale
 91.118 = muF_ref_fixed ! fixed fact reference scale
 -1 = dynamical_scale_choice ! Choose one (or more) of the predefined
           ! dynamical choices. Can be a list; scale choices beyond the
           ! first are included via reweighting
 1.0 = muR_over_ref ! ratio of current muR over reference muR
 1.0 = muF_over_ref ! ratio of current muF over reference muF
#***********************************************************************
# Reweight variables for scale dependence and PDF uncertainty *
#***********************************************************************
 1.0, 2.0, 0.5 = rw_rscale ! muR factors to be included by reweighting
 1.0, 2.0, 0.5 = rw_fscale ! muF factors to be included by reweighting
 False = reweight_scale ! Reweight to get scale variation using the
            ! rw_rscale and rw_fscale factors. Should be a list of
            ! booleans of equal length to dynamical_scale_choice to
            ! specify for which choice to include scale dependence.
 False = reweight_PDF ! Reweight to get PDF uncertainty. Should be a
            ! list booleans of equal length to lhaid to specify for
            ! which PDF set to include the uncertainties.
#***********************************************************************
# Store reweight information in the LHE file for off-line model- *
# parameter reweighting at NLO+PS accuracy *
#***********************************************************************
 False = store_rwgt_info ! Store info for reweighting in LHE file
#***********************************************************************
# ickkw parameter: *
# 0: No merging *
# 3: FxFx Merging - WARNING! Applies merging only at the hard-event *
# level. After showering an MLM-type merging should be applied as *
# well. See http://amcatnlo.cern.ch/FxFx_merging.htm for details. *
# 4: UNLOPS merging (with pythia8 only). No interface from within *
# MG5_aMC available, but available in Pythia8. *
# -1: NNLL+NLO jet-veto computation. See arxiv:1412.8408 [hep-ph]. *
#***********************************************************************
 0 = ickkw
#***********************************************************************
#
#***********************************************************************
# BW cutoff (M+/-bwcutoff*Gamma). Determines which resonances are *
# written in the LHE event file *
#***********************************************************************
 15.0 = bwcutoff
#***********************************************************************
# Cuts on the jets. Jet clustering is performed by FastJet. *
# - If gamma_is_j, photons are also clustered *
# - When matching to a parton shower, these generation cuts should be *
# considerably softer than the analysis cuts. *
# - More specific cuts can be specified in SubProcesses/cuts.f *
#***********************************************************************
  1.0 = jetalgo ! FastJet jet algorithm (1=kT, 0=C/A, -1=anti-kT)
  0.7 = jetradius ! The radius parameter for the jet algorithm
 10.0 = ptj ! Min jet transverse momentum
 -1.0 = etaj ! Max jet abs(pseudo-rap) (a value .lt.0 means no cut)
 True = gamma_is_j! Wether to cluster photons as jets or not
#***********************************************************************
# Cuts on the charged leptons (e+, e-, mu+, mu-, tau+ and tau-) *
# More specific cuts can be specified in SubProcesses/cuts.f *
#***********************************************************************
  0.0 = ptl ! Min lepton transverse momentum
 -1.0 = etal ! Max lepton abs(pseudo-rap) (a value .lt.0 means no cut)
  0.0 = drll ! Min distance between opposite sign lepton pairs
  0.0 = drll_sf ! Min distance between opp. sign same-flavor lepton pairs
  0.0 = mll ! Min inv. mass of all opposite sign lepton pairs
  30.0 = mll_sf ! Min inv. mass of all opp. sign same-flavor lepton pairs
#***********************************************************************
# Fermion-photon recombination parameters *
# If Rphreco=0, no recombination is performed *
#***********************************************************************
 0.1 = Rphreco ! Minimum fermion-photon distance for recombination
 -1.0 = etaphreco ! Maximum abs(pseudo-rap) for photons to be recombined (a value .lt.0 means no cut)
 True = lepphreco ! Recombine photons and leptons together
 True = quarkphreco ! Recombine photons and quarks together
#***********************************************************************
# Photon-isolation cuts, according to hep-ph/9801442 *
# Not applied if gamma_is_j *
# When ptgmin=0, all the other parameters are ignored *
# More specific cuts can be specified in SubProcesses/cuts.f *
#***********************************************************************
  20.0 = ptgmin ! Min photon transverse momentum
  -1.0 = etagamma ! Max photon abs(pseudo-rap)
  0.4 = R0gamma ! Radius of isolation code
  1.0 = xn ! n parameter of eq.(3.4) in hep-ph/9801442
  1.0 = epsgamma ! epsilon_gamma parameter of eq.(3.4) in hep-ph/9801442
 True = isoEM ! isolate photons from EM energy (photons and leptons)
#***********************************************************************
# Cuts associated to MASSIVE particles identified by their PDG codes. *
# All cuts are applied to both particles and anti-particles, so use *
# POSITIVE PDG CODES only. Example of the syntax is {6 : 100} or *
# {6:100, 25:200} for multiple particles *
#***********************************************************************
  {} = pt_min_pdg ! Min pT for a massive particle
  {} = pt_max_pdg ! Max pT for a massive particle
  {} = mxx_min_pdg ! inv. mass for any pair of (anti)particles
#***********************************************************************
# Use PineAPPL to generate PDF-independent fast-interpolation grid *
# (https://zenodo.org/record/3992765#.X2EWy5MzbVo) *
#***********************************************************************
 False = pineappl ! PineAPPL switch
#***********************************************************************
]]>
</MGRunCard>
<slha>
######################################################################
## 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.730000e+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.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
  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
  16 0.000000e+00 # vt : 0.0
  21 0.000000e+00 # g : 0.0
  22 0.000000e+00 # a : 0.0
  24 8.041900e+01 # 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 (Note that Parameter not used if you use a PDF set)

###################################
## INFORMATION FOR YUKAWA
###################################
Block yukawa
    5 4.700000e+00 # ymb
    6 1.730000e+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.000000e+00 # d : 0.0
DECAY 2 0.000000e+00 # u : 0.0
DECAY 3 0.000000e+00 # s : 0.0
DECAY 4 0.000000e+00 # c : 0.0
DECAY 5 0.000000e+00 # b : 0.0
DECAY 11 0.000000e+00 # e- : 0.0
DECAY 12 0.000000e+00 # ve : 0.0
DECAY 13 0.000000e+00 # mu- : 0.0
DECAY 14 0.000000e+00 # vm : 0.0
DECAY 15 0.000000e+00 # ta- : 0.0
DECAY 16 0.000000e+00 # vt : 0.0
DECAY 21 0.000000e+00 # g : 0.0
DECAY 22 0.000000e+00 # a : 0.0
#===========================================================
# QUANTUM NUMBERS OF NEW STATE(S) (NON SM PDG CODE)
#===========================================================

Block QNUMBERS 82 # gh
        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)
</slha>
<run_settings>
order = NLO
fixed_order = ON
shower = OFF
madspin = OFF
reweight = OFF
madanalysis = OFF
runshower = False
</run_settings>
<foanalyse>
<![CDATA[
#######################################################################
#
# This file contains the settings for analyses to be linked to fixed
# order runs. Analysis files are meant to be put (or linked) inside
# <PROCDIR>/FixedOrderAnalysis/ (<PROCDIR> is the name of the exported
# process directory). See the
# <PROCDIR>/FixedOrderAnalysis/analysis_*_template.f file for details
# on how to write your own analysis.
#
#######################################################################
#
# Analysis format.
# Can either be 'topdrawer', 'root', 'HwU', 'LHE' or 'none'.
# When choosing HwU, it comes with a GnuPlot wrapper. When choosing
# topdrawer, the histogramming package 'dbook.f' is included in the
# code, while when choosing root the 'rbook_fe8.f' and 'rbook_be8.cc'
# are included. If 'none' is chosen, all the other entries below have
# to be set empty.
FO_ANALYSIS_FORMAT = LHE
#
#
# Needed extra-libraries (FastJet is already linked):
FO_EXTRALIBS =
#
# (Absolute) path to the extra libraries. Directory names should be
# separated by white spaces.
FO_EXTRAPATHS =
#
# (Absolute) path to the dirs containing header files needed by the
# libraries (e.g. C++ header files):
FO_INCLUDEPATHS =
#
# User's analysis (to be put in the <PROCDIR>/FixedOrderAnalysis/
# directory). Please use .o as extension and white spaces to separate
# files.
FO_ANALYSE =
#
#
## When linking with root, the following settings are a working
## example on lxplus (CERN) as of July 2014. When using this, comment
## out the lines above and replace <PATH_TO_ROOT> with the physical
## path to root,
## e.g. /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.11/x86_64-slc6-gcc46-dbg/root/
#FO_ANALYSIS_FORMAT = root
#FO_EXTRALIBS = Core Cint Hist Matrix MathCore RIO dl Thread
#FO_EXTRAPATHS = <PATH_TO_ROOT>/lib
#FO_INCLUDEPATHS = <PATH_TO_ROOT>/include
#FO_ANALYSE = analysis_root_template.o
]]>
</foanalyse>
</header>
</LesHouchesEvents>
INFO: Update the dependent parameter of the param_card.dat
INFO: Starting run
INFO: Compiling the code
INFO: For gauge cancellation, the width of 'Z' has been set to zero.
INFO: Using built-in libraries for PDFs
INFO: Compiling source...
ATTENTION: default value of option mesa_glthread overridden by environment.
INFO: ...done, continuing with P* directories
INFO: Compiling directories...
INFO: Compiling on 4 cores
INFO: Compiling P0_gu_zu...
INFO: Compiling P0_gc_zc...
INFO: Compiling P0_gs_zs...
INFO: Compiling P0_gd_zd...
WARNING: fct <function compile_dir at 0x7f1f846df790> does not return 0. Stopping the code in a clean way. The error was:
A compilation Error occurs when trying to compile /home/hamza/Downloads/MG5_aMC_v3_1_1/my_1st_try_@FO/SubProcesses/P0_gs_zs.
The compilation fails with the following output message:
    gfortran -O -fno-automatic -ffixed-line-length-132 -c -I. -I../../lib/ analysis_lhe.f
    analysis_lhe.f:138:30:

      138 | wgtxsecmu(jj,ii,kk)= wwgts(i_wgt)
          | 1
    Error: Rank mismatch in array reference at (1) (3/4)
    analysis_lhe.f:143:24:

      143 | wgtxsecmu(1,1,kk)= wwgts(i_wgt)
          | 1
    Error: Rank mismatch in array reference at (1) (3/4)
    make: *** [makefile:72: analysis_lhe.o] Error 1

Please try to fix this compilations issue and retry.
Help might be found at https://answers.launchpad.net/mg5amcnlo.
If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
WARNING: fct <function compile_dir at 0x7f1f846df790> does not return 0. Stopping the code in a clean way. The error was:
A compilation Error occurs when trying to compile /home/hamza/Downloads/MG5_aMC_v3_1_1/my_1st_try_@FO/SubProcesses/P0_gd_zd.
The compilation fails with the following output message:
    gfortran -O -fno-automatic -ffixed-line-length-132 -c -I. -I../../lib/ analysis_lhe.f
    analysis_lhe.f:138:30:

      138 | wgtxsecmu(jj,ii,kk)= wwgts(i_wgt)
          | 1
    Error: Rank mismatch in array reference at (1) (3/4)
    analysis_lhe.f:143:24:

      143 | wgtxsecmu(1,1,kk)= wwgts(i_wgt)
          | 1
    Error: Rank mismatch in array reference at (1) (3/4)
    make: *** [makefile:72: analysis_lhe.o] Error 1

Please try to fix this compilations issue and retry.
Help might be found at https://answers.launchpad.net/mg5amcnlo.
If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
WARNING: fct <function compile_dir at 0x7f1f846df790> does not return 0. Stopping the code in a clean way. The error was:
A compilation Error occurs when trying to compile /home/hamza/Downloads/MG5_aMC_v3_1_1/my_1st_try_@FO/SubProcesses/P0_gu_zu.
The compilation fails with the following output message:
    gfortran -O -fno-automatic -ffixed-line-length-132 -c -I. -I../../lib/ analysis_lhe.f
    analysis_lhe.f:138:30:

      138 | wgtxsecmu(jj,ii,kk)= wwgts(i_wgt)
          | 1
    Error: Rank mismatch in array reference at (1) (3/4)
    analysis_lhe.f:143:24:

      143 | wgtxsecmu(1,1,kk)= wwgts(i_wgt)
          | 1
    Error: Rank mismatch in array reference at (1) (3/4)
    make: *** [makefile:72: analysis_lhe.o] Error 1

Please try to fix this compilations issue and retry.
Help might be found at https://answers.launchpad.net/mg5amcnlo.
If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
WARNING: fct <function compile_dir at 0x7f1f846df790> does not return 0. Stopping the code in a clean way. The error was:
A compilation Error occurs when trying to compile /home/hamza/Downloads/MG5_aMC_v3_1_1/my_1st_try_@FO/SubProcesses/P0_gc_zc.
The compilation fails with the following output message:
    gfortran -O -fno-automatic -ffixed-line-length-132 -c -I. -I../../lib/ analysis_lhe.f
    analysis_lhe.f:138:30:

      138 | wgtxsecmu(jj,ii,kk)= wwgts(i_wgt)
          | 1
    Error: Rank mismatch in array reference at (1) (3/4)
    analysis_lhe.f:143:24:

      143 | wgtxsecmu(1,1,kk)= wwgts(i_wgt)
          | 1
    Error: Rank mismatch in array reference at (1) (3/4)
    make: *** [makefile:72: analysis_lhe.o] Error 1

Please try to fix this compilations issue and retry.
Help might be found at https://answers.launchpad.net/mg5amcnlo.
If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo

Question information

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

Hi,

1) This might be an issue with too recent compiler. But maybe a deeper issue related to a change of structure in the weight that was not passed to the lhe output mode. Myabe the best is to test with 2.9.6 here.

2) No the relative contribution should not be uniform.

Cheers,

Olivier

> On 10 Nov 2021, at 10:41, Bouaziz Hamza <email address hidden> wrote:
>
> New question #699423 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/699423
>
> Dear MG5 authors
>
> I am doing some FO calculation in z+j process ,and have two questions regarding that.
>
> 1) I wrote my analysis in fortran and got my histograms but when i wanted to generate the LHE file (just to double check) i get the following error (i tried v3.2.0 & v3.1.1 and i tried ttbar production but still the same error, see down below):
>
> 2) For every channel in z+j, i managed to obtain the data values (thanks Matteo) for each observable. My question is: does each channel contribute equally to the overall histogram or not?
>
> All the best,
>
> Hamza.
>
>
> <LesHouchesEvents version="3.0">
> <header>
> <!--
> #*********************************************************************
> # *
> # MadGraph5_aMC@NLO *
> # *
> # Going Beyond *
> # *
> # http://madgraph.hep.uiuc.edu *
> # http://madgraph.phys.ucl.ac.be *
> # http://amcatnlo.cern.ch *
> # *
> # The MadGraph5_aMC@NLO team *
> # *
> #....................................................................*
> # *
> # This file contains all the information necessary to reproduce *
> # the events generated: *
> # *
> # 1. software version *
> # 2. proc_card : code generation info including model *
> # 3. param_card : model primary parameters in the LH format *
> # 4. run_card : running parameters (collider and cuts) *
> # 5. pythia_card : present only if pythia has been run *
> # 6. pgs_card : present only if pgs has been run *
> # 7. delphes_cards : present only if delphes has been run *
> # *
> # *
> #*********************************************************************
> -->
> <MGVersion>
> 3.1.1
> </MGVersion>
> <MGRunCard>
> <![CDATA[
> #***********************************************************************
> # MadGraph5_aMC@NLO *
> # *
> # run_card.dat aMC@NLO *
> # *
> # This file is used to set the parameters of the run. *
> # *
> # Some notation/conventions: *
> # *
> # Lines starting with a hash (#) are info or comments *
> # *
> # mind the format: value = variable ! comment *
> # *
> # Some of the values of variables can be list. These can either be *
> # comma or space separated. *
> # *
> # To display additional parameter, you can use the command: *
> # update to_full *
> #***********************************************************************
> #
> #*******************
> # Running parameters
> #*******************
> #
> #***********************************************************************
> # Tag name for the run (one word) *
> #***********************************************************************
> tag_1 = run_tag ! name of the run
> #***********************************************************************
> # Number of LHE events (and their normalization) and the required *
> # (relative) accuracy on the Xsec. *
> # These values are ignored for fixed order runs *
> #***********************************************************************
> 10000 = nevents ! Number of unweighted events requested
> -1.0 = req_acc ! Required accuracy (-1=auto determined from nevents)
> -1 = nevt_job! Max number of events per job in event generation.
> ! (-1= no split).
> #***********************************************************************
> # Normalize the weights of LHE events such that they sum or average to *
> # the total cross section *
> #***********************************************************************
> average = event_norm ! valid settings: average, sum, bias
> #***********************************************************************
> # 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. *
> #***********************************************************************
> nn23nlo = pdlabel ! PDF set
> 244600 = lhaid ! If pdlabel=lhapdf, this is the lhapdf number. Only
> ! numbers for central PDF sets are allowed. Can be a list;
> ! PDF sets beyond the first are included via reweighting.
> #***********************************************************************
> # Include the NLO Monte Carlo subtr. terms for the following parton *
> # shower (HERWIG6 | HERWIGPP | PYTHIA6Q | PYTHIA6PT | PYTHIA8) *
> # WARNING: PYTHIA6PT works only for processes without FSR!!!! *
> #***********************************************************************
> HERWIG6 = parton_shower
> 1.0 = shower_scale_factor ! multiply default shower starting
> ! scale by this factor
> #***********************************************************************
> # Renormalization and factorization scales *
> # (Default functional form for the non-fixed scales is the sum of *
> # the transverse masses divided by two of all final state particles *
> # and partons. This can be changed in SubProcesses/set_scales.f or via *
> # dynamical_scale_choice option) *
> #***********************************************************************
> False = fixed_ren_scale ! if .true. use fixed ren scale
> False = fixed_fac_scale ! if .true. use fixed fac scale
> 91.118 = muR_ref_fixed ! fixed ren reference scale
> 91.118 = muF_ref_fixed ! fixed fact reference scale
> -1 = dynamical_scale_choice ! Choose one (or more) of the predefined
> ! dynamical choices. Can be a list; scale choices beyond the
> ! first are included via reweighting
> 1.0 = muR_over_ref ! ratio of current muR over reference muR
> 1.0 = muF_over_ref ! ratio of current muF over reference muF
> #***********************************************************************
> # Reweight variables for scale dependence and PDF uncertainty *
> #***********************************************************************
> 1.0, 2.0, 0.5 = rw_rscale ! muR factors to be included by reweighting
> 1.0, 2.0, 0.5 = rw_fscale ! muF factors to be included by reweighting
> False = reweight_scale ! Reweight to get scale variation using the
> ! rw_rscale and rw_fscale factors. Should be a list of
> ! booleans of equal length to dynamical_scale_choice to
> ! specify for which choice to include scale dependence.
> False = reweight_PDF ! Reweight to get PDF uncertainty. Should be a
> ! list booleans of equal length to lhaid to specify for
> ! which PDF set to include the uncertainties.
> #***********************************************************************
> # Store reweight information in the LHE file for off-line model- *
> # parameter reweighting at NLO+PS accuracy *
> #***********************************************************************
> False = store_rwgt_info ! Store info for reweighting in LHE file
> #***********************************************************************
> # ickkw parameter: *
> # 0: No merging *
> # 3: FxFx Merging - WARNING! Applies merging only at the hard-event *
> # level. After showering an MLM-type merging should be applied as *
> # well. See http://amcatnlo.cern.ch/FxFx_merging.htm for details. *
> # 4: UNLOPS merging (with pythia8 only). No interface from within *
> # MG5_aMC available, but available in Pythia8. *
> # -1: NNLL+NLO jet-veto computation. See arxiv:1412.8408 [hep-ph]. *
> #***********************************************************************
> 0 = ickkw
> #***********************************************************************
> #
> #***********************************************************************
> # BW cutoff (M+/-bwcutoff*Gamma). Determines which resonances are *
> # written in the LHE event file *
> #***********************************************************************
> 15.0 = bwcutoff
> #***********************************************************************
> # Cuts on the jets. Jet clustering is performed by FastJet. *
> # - If gamma_is_j, photons are also clustered *
> # - When matching to a parton shower, these generation cuts should be *
> # considerably softer than the analysis cuts. *
> # - More specific cuts can be specified in SubProcesses/cuts.f *
> #***********************************************************************
> 1.0 = jetalgo ! FastJet jet algorithm (1=kT, 0=C/A, -1=anti-kT)
> 0.7 = jetradius ! The radius parameter for the jet algorithm
> 10.0 = ptj ! Min jet transverse momentum
> -1.0 = etaj ! Max jet abs(pseudo-rap) (a value .lt.0 means no cut)
> True = gamma_is_j! Wether to cluster photons as jets or not
> #***********************************************************************
> # Cuts on the charged leptons (e+, e-, mu+, mu-, tau+ and tau-) *
> # More specific cuts can be specified in SubProcesses/cuts.f *
> #***********************************************************************
> 0.0 = ptl ! Min lepton transverse momentum
> -1.0 = etal ! Max lepton abs(pseudo-rap) (a value .lt.0 means no cut)
> 0.0 = drll ! Min distance between opposite sign lepton pairs
> 0.0 = drll_sf ! Min distance between opp. sign same-flavor lepton pairs
> 0.0 = mll ! Min inv. mass of all opposite sign lepton pairs
> 30.0 = mll_sf ! Min inv. mass of all opp. sign same-flavor lepton pairs
> #***********************************************************************
> # Fermion-photon recombination parameters *
> # If Rphreco=0, no recombination is performed *
> #***********************************************************************
> 0.1 = Rphreco ! Minimum fermion-photon distance for recombination
> -1.0 = etaphreco ! Maximum abs(pseudo-rap) for photons to be recombined (a value .lt.0 means no cut)
> True = lepphreco ! Recombine photons and leptons together
> True = quarkphreco ! Recombine photons and quarks together
> #***********************************************************************
> # Photon-isolation cuts, according to hep-ph/9801442 *
> # Not applied if gamma_is_j *
> # When ptgmin=0, all the other parameters are ignored *
> # More specific cuts can be specified in SubProcesses/cuts.f *
> #***********************************************************************
> 20.0 = ptgmin ! Min photon transverse momentum
> -1.0 = etagamma ! Max photon abs(pseudo-rap)
> 0.4 = R0gamma ! Radius of isolation code
> 1.0 = xn ! n parameter of eq.(3.4) in hep-ph/9801442
> 1.0 = epsgamma ! epsilon_gamma parameter of eq.(3.4) in hep-ph/9801442
> True = isoEM ! isolate photons from EM energy (photons and leptons)
> #***********************************************************************
> # Cuts associated to MASSIVE particles identified by their PDG codes. *
> # All cuts are applied to both particles and anti-particles, so use *
> # POSITIVE PDG CODES only. Example of the syntax is {6 : 100} or *
> # {6:100, 25:200} for multiple particles *
> #***********************************************************************
> {} = pt_min_pdg ! Min pT for a massive particle
> {} = pt_max_pdg ! Max pT for a massive particle
> {} = mxx_min_pdg ! inv. mass for any pair of (anti)particles
> #***********************************************************************
> # Use PineAPPL to generate PDF-independent fast-interpolation grid *
> # (https://zenodo.org/record/3992765#.X2EWy5MzbVo) *
> #***********************************************************************
> False = pineappl ! PineAPPL switch
> #***********************************************************************
> ]]>
> </MGRunCard>
> <slha>
> ######################################################################
> ## 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.730000e+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.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
> 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
> 16 0.000000e+00 # vt : 0.0
> 21 0.000000e+00 # g : 0.0
> 22 0.000000e+00 # a : 0.0
> 24 8.041900e+01 # 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 (Note that Parameter not used if you use a PDF set)
>
> ###################################
> ## INFORMATION FOR YUKAWA
> ###################################
> Block yukawa
> 5 4.700000e+00 # ymb
> 6 1.730000e+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.000000e+00 # d : 0.0
> DECAY 2 0.000000e+00 # u : 0.0
> DECAY 3 0.000000e+00 # s : 0.0
> DECAY 4 0.000000e+00 # c : 0.0
> DECAY 5 0.000000e+00 # b : 0.0
> DECAY 11 0.000000e+00 # e- : 0.0
> DECAY 12 0.000000e+00 # ve : 0.0
> DECAY 13 0.000000e+00 # mu- : 0.0
> DECAY 14 0.000000e+00 # vm : 0.0
> DECAY 15 0.000000e+00 # ta- : 0.0
> DECAY 16 0.000000e+00 # vt : 0.0
> DECAY 21 0.000000e+00 # g : 0.0
> DECAY 22 0.000000e+00 # a : 0.0
> #===========================================================
> # QUANTUM NUMBERS OF NEW STATE(S) (NON SM PDG CODE)
> #===========================================================
>
> Block QNUMBERS 82 # gh
> 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)
> </slha>
> <run_settings>
> order = NLO
> fixed_order = ON
> shower = OFF
> madspin = OFF
> reweight = OFF
> madanalysis = OFF
> runshower = False
> </run_settings>
> <foanalyse>
> <![CDATA[
> #######################################################################
> #
> # This file contains the settings for analyses to be linked to fixed
> # order runs. Analysis files are meant to be put (or linked) inside
> # <PROCDIR>/FixedOrderAnalysis/ (<PROCDIR> is the name of the exported
> # process directory). See the
> # <PROCDIR>/FixedOrderAnalysis/analysis_*_template.f file for details
> # on how to write your own analysis.
> #
> #######################################################################
> #
> # Analysis format.
> # Can either be 'topdrawer', 'root', 'HwU', 'LHE' or 'none'.
> # When choosing HwU, it comes with a GnuPlot wrapper. When choosing
> # topdrawer, the histogramming package 'dbook.f' is included in the
> # code, while when choosing root the 'rbook_fe8.f' and 'rbook_be8.cc'
> # are included. If 'none' is chosen, all the other entries below have
> # to be set empty.
> FO_ANALYSIS_FORMAT = LHE
> #
> #
> # Needed extra-libraries (FastJet is already linked):
> FO_EXTRALIBS =
> #
> # (Absolute) path to the extra libraries. Directory names should be
> # separated by white spaces.
> FO_EXTRAPATHS =
> #
> # (Absolute) path to the dirs containing header files needed by the
> # libraries (e.g. C++ header files):
> FO_INCLUDEPATHS =
> #
> # User's analysis (to be put in the <PROCDIR>/FixedOrderAnalysis/
> # directory). Please use .o as extension and white spaces to separate
> # files.
> FO_ANALYSE =
> #
> #
> ## When linking with root, the following settings are a working
> ## example on lxplus (CERN) as of July 2014. When using this, comment
> ## out the lines above and replace <PATH_TO_ROOT> with the physical
> ## path to root,
> ## e.g. /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.11/x86_64-slc6-gcc46-dbg/root/
> #FO_ANALYSIS_FORMAT = root
> #FO_EXTRALIBS = Core Cint Hist Matrix MathCore RIO dl Thread
> #FO_EXTRAPATHS = <PATH_TO_ROOT>/lib
> #FO_INCLUDEPATHS = <PATH_TO_ROOT>/include
> #FO_ANALYSE = analysis_root_template.o
> ]]>
> </foanalyse>
> </header>
> </LesHouchesEvents>
> INFO: Update the dependent parameter of the param_card.dat
> INFO: Starting run
> INFO: Compiling the code
> INFO: For gauge cancellation, the width of 'Z' has been set to zero.
> INFO: Using built-in libraries for PDFs
> INFO: Compiling source...
> ATTENTION: default value of option mesa_glthread overridden by environment.
> INFO: ...done, continuing with P* directories
> INFO: Compiling directories...
> INFO: Compiling on 4 cores
> INFO: Compiling P0_gu_zu...
> INFO: Compiling P0_gc_zc...
> INFO: Compiling P0_gs_zs...
> INFO: Compiling P0_gd_zd...
> WARNING: fct <function compile_dir at 0x7f1f846df790> does not return 0. Stopping the code in a clean way. The error was:
> A compilation Error occurs when trying to compile /home/hamza/Downloads/MG5_aMC_v3_1_1/my_1st_try_@FO/SubProcesses/P0_gs_zs.
> The compilation fails with the following output message:
> gfortran -O -fno-automatic -ffixed-line-length-132 -c -I. -I../../lib/ analysis_lhe.f
> analysis_lhe.f:138:30:
>
> 138 | wgtxsecmu(jj,ii,kk)= wwgts(i_wgt)
> | 1
> Error: Rank mismatch in array reference at (1) (3/4)
> analysis_lhe.f:143:24:
>
> 143 | wgtxsecmu(1,1,kk)= wwgts(i_wgt)
> | 1
> Error: Rank mismatch in array reference at (1) (3/4)
> make: *** [makefile:72: analysis_lhe.o] Error 1
>
> Please try to fix this compilations issue and retry.
> Help might be found at https://answers.launchpad.net/mg5amcnlo.
> If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
> WARNING: fct <function compile_dir at 0x7f1f846df790> does not return 0. Stopping the code in a clean way. The error was:
> A compilation Error occurs when trying to compile /home/hamza/Downloads/MG5_aMC_v3_1_1/my_1st_try_@FO/SubProcesses/P0_gd_zd.
> The compilation fails with the following output message:
> gfortran -O -fno-automatic -ffixed-line-length-132 -c -I. -I../../lib/ analysis_lhe.f
> analysis_lhe.f:138:30:
>
> 138 | wgtxsecmu(jj,ii,kk)= wwgts(i_wgt)
> | 1
> Error: Rank mismatch in array reference at (1) (3/4)
> analysis_lhe.f:143:24:
>
> 143 | wgtxsecmu(1,1,kk)= wwgts(i_wgt)
> | 1
> Error: Rank mismatch in array reference at (1) (3/4)
> make: *** [makefile:72: analysis_lhe.o] Error 1
>
> Please try to fix this compilations issue and retry.
> Help might be found at https://answers.launchpad.net/mg5amcnlo.
> If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
> WARNING: fct <function compile_dir at 0x7f1f846df790> does not return 0. Stopping the code in a clean way. The error was:
> A compilation Error occurs when trying to compile /home/hamza/Downloads/MG5_aMC_v3_1_1/my_1st_try_@FO/SubProcesses/P0_gu_zu.
> The compilation fails with the following output message:
> gfortran -O -fno-automatic -ffixed-line-length-132 -c -I. -I../../lib/ analysis_lhe.f
> analysis_lhe.f:138:30:
>
> 138 | wgtxsecmu(jj,ii,kk)= wwgts(i_wgt)
> | 1
> Error: Rank mismatch in array reference at (1) (3/4)
> analysis_lhe.f:143:24:
>
> 143 | wgtxsecmu(1,1,kk)= wwgts(i_wgt)
> | 1
> Error: Rank mismatch in array reference at (1) (3/4)
> make: *** [makefile:72: analysis_lhe.o] Error 1
>
> Please try to fix this compilations issue and retry.
> Help might be found at https://answers.launchpad.net/mg5amcnlo.
> If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
> WARNING: fct <function compile_dir at 0x7f1f846df790> does not return 0. Stopping the code in a clean way. The error was:
> A compilation Error occurs when trying to compile /home/hamza/Downloads/MG5_aMC_v3_1_1/my_1st_try_@FO/SubProcesses/P0_gc_zc.
> The compilation fails with the following output message:
> gfortran -O -fno-automatic -ffixed-line-length-132 -c -I. -I../../lib/ analysis_lhe.f
> analysis_lhe.f:138:30:
>
> 138 | wgtxsecmu(jj,ii,kk)= wwgts(i_wgt)
> | 1
> Error: Rank mismatch in array reference at (1) (3/4)
> analysis_lhe.f:143:24:
>
> 143 | wgtxsecmu(1,1,kk)= wwgts(i_wgt)
> | 1
> Error: Rank mismatch in array reference at (1) (3/4)
> make: *** [makefile:72: analysis_lhe.o] Error 1
>
> Please try to fix this compilations issue and retry.
> Help might be found at https://answers.launchpad.net/mg5amcnlo.
> If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Bouaziz Hamza (b-hamza) said :
#2

Thanks Olivier Mattelaer, that solved my question.