Error occuring while computing weights for g b -> t w- z

Asked by AMMAD MUHAMMAD on 2018-04-05

Dear Experts,

     I am computing weigts for g b -> t w- z , ( t-> b w+ ,w+ -> e+ ve) , (w- -> j j ) , (z -> e- e+)
but at the end it give me error i-e
"Command "launch" interrupted with error:
SAXParseException : /afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/twz1_weight/Events/fermi/P1_gb_twmz_t_bwp_wp_epve_wm_qq_z_epem/output.xml:728:9: mismatched tag
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
with MadWeight in the title of the bug report.More information is found in 'MW5_debug'.
Please attach this file to your report."
The MW5_debug is
#************************************************************
#* MadWeight 5 *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.6.0 2017-08-16 *
#* *
#* The MadGraph Development Team - Please visit us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadWeight *
#* *
#* run as ./bin/madweight.py FILENAME *
#* *
#************************************************************
launch
Traceback (most recent call last):
  File "/afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1438, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1392, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/madgraph/interface/madweight_interface.py", line 740, in do_launch
    self.exec_cmd('collect')
  File "/afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1465, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1392, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/madgraph/interface/madweight_interface.py", line 610, in do_collect
    data = xml_reader.read_file(pjoin(out_dir, 'output.xml'))
  File "/afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/madgraph/interface/madweight_interface.py", line 1030, in read_file
    parser.parse(filepos)
  File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 220, in feed
    self._err_handler.fatalError(exc)
  File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/handler.py", line 38, in fatalError
    raise exception
SAXParseException: /afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/twz1_weight/Events/fermi/P1_gb_twmz_t_bwp_wp_epve_wm_qq_z_epem/output.xml:728:9: mismatched tag
Value of current Options:
              text_editor : None
      notification_center : True
                    pjfry : None
       cluster_local_path : None
       group_subprocesses : Auto
ignore_six_quark_processes : False
    loop_optimized_output : True
    cluster_status_update : (600, 30)
         fortran_compiler : None
               hepmc_path : None
                  collier : ./HEPTools/lib
              auto_update : 7
             pythia8_path : None
                hwpp_path : None
low_mem_multicore_nlo_generation : False
                    golem : None
          pythia-pgs_path : /afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/pythia-pgs
                  td_path : None
             delphes_path : /afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/Delphes
              thepeg_path : None
             cluster_type : condor
        madanalysis5_path : None
      exrootanalysis_path : None
                      OLP : MadLoop
                 applgrid : applgrid-config
               eps_viewer : None
                  fastjet : None
                 run_mode : 2
              web_browser : None
   automatic_html_opening : True
        cluster_temp_path : /tmp
             cluster_size : 100
            cluster_queue : None
             syscalc_path : None
         madanalysis_path : None
                   lhapdf : lhapdf-config
             stdout_level : 20
                  nb_core : 10
            f2py_compiler : None
                    ninja : ./HEPTools/lib
                  amcfast : amcfast-config
       cluster_retry_wait : 300
      output_dependencies : external
           crash_on_error : False
mg5amc_py8_interface_path : None
         loop_color_flows : False
                  samurai : None
         cluster_nb_retry : 1
                 mg5_path : /afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0
                  timeout : 60
                    gauge : unitary
      complex_mass_scheme : False
             cpp_compiler : None
   max_npoint_for_channel : 0
#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.6.0 2017-08-16 *
#* *
#* 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 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 g b > t w- z , ( t > b w+ , w+ > e+ ve) ,(z > e+ e-),(w- > j \
j )
output madweight twz1_weight
######################################################################
## 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.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.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.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 *
#*********************************************************************
#
#*******************
# Running parameters
#*******************
#*********************************************************************
# 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. *
#*********************************************************************
  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
#*********************************************************************
# 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
#*********************************************************************
# Renormalization and factorization scales *
#*********************************************************************
 True = fixed_ren_scale ! if .true. use fixed ren scale
 True = 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 ! Select one of the preselect dynamical choice
 1.0 = scalefact ! scale factor for event-by-event scales

##################################################################################
##################################################################################
## INFORMATION USEFULL FOR MADWEIGHT STOPS HERE ##
##################################################################################
##################################################################################
#**********************************
# BW cutoff (M+/-bwcutoff*Gamma)
#**********************************
  15.0 = bwcutoff ! (M+/-bwcutoff*Gamma)
#*********************************************************************
# Tag name for the run (one word) *
#*********************************************************************
   ' ' = run_tag ! name of the run
  10000 = nevents ! Number of unweighted events requested
#*********************************************************************
# Run to generate the grid pack *
#*********************************************************************
  False = gridpack !True = setting up the grid pack
#*********************************************************************
# Matching - Warning! ickkw > 1 is still beta
#*********************************************************************
 0 = ickkw ! 0 no matching, 1 MLM, 2 CKKW matching
 1 = highestmult ! for ickkw=2, highest mult group
 1 = ktscheme ! for ickkw=1, 1 Durham kT, 2 Pythia pTE
 1.0 = alpsfact ! scale factor for QCD emission vx
 False = chcluster ! cluster only according to channel diag
 True = pdfwgt ! for ickkw=1, perform pdf reweighting
 5 = asrwgtflavor ! highest quark flavor for a_s reweight
 True = clusinfo ! include clustering tag in output
 3.0 = lhe_version ! Change the way clustering information pass to shower.
#*********************************************************************
#**********************************************************
#
#**********************************************************
# Automatic ptj and mjj cuts if xqcut > 0
# (turn off for VBF and single top processes)
#**********************************************************
   False = auto_ptj_mjj ! Automatic setting of ptj and mjj
#**********************************************************
#
#**********************************************************
# Apply pt/E/eta/dr/mij cuts on decay products or not
# (note that etmiss/ptll/ptheavy/ht/sorted cuts always apply)
#**********************************************************
   False = cut_decays ! Cut decay products
#*************************************************************
# Number of helicities to sum per event (0 = all helicities)
# 0 gives more stable result, but longer run time (needed for
# long decay chains e.g.).
# Use >=2 if most helicities contribute, e.g. pure QCD.
#*************************************************************
   0 = nhel ! Number of helicities used per event
#*******************
# Standard Cuts
#*******************
#
#*********************************************************************
# Minimum and maximum pt's (for max, -1 means no cut) *
#*********************************************************************
 0.0 = ptj ! minimum pt for the jets
 0.0 = ptb ! minimum pt for the b
 0.0 = pta ! minimum pt for the photons
 0.0 = ptl ! minimum pt for the charged leptons
 0.0 = misset ! minimum missing Et (sum of neutrino's momenta)
 0.0 = ptheavy ! minimum pt for one heavy final state
 -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)
#*********************************************************************
# 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
#*********************************************************************
# Maximum and minimum absolute rapidity (for max, -1 means no cut) *
#*********************************************************************
  -1.0 = etaj ! max rap for the jets
  -1.0 = etab ! max rap for the b
 -1.0 = etaa ! max rap for the photons
 -1.0 = 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
#*********************************************************************
# Minimum and maximum DeltaR distance *
#*********************************************************************
 0.0 = drjj ! min distance between jets
 0.0 = drbb ! min distance between b's
 0.0 = drll ! min distance between leptons
 0.0 = draa ! min distance between gammas
 0.0 = drbj ! min distance between b and jet
 0.0 = draj ! min distance between gamma and jet
 0.0 = 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.0 = 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
#*********************************************************************
# 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 = 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
 -1.0 = deltaeta ! minimum rapidity for two jets in the WBF case
#*********************************************************************
# KT DURHAM CUT *
#*********************************************************************
 0.0 = ktdurham
 0.0 = dparameter
#*********************************************************************
# maximal pdg code for quark to be considered as a light jet *
# (otherwise b cuts are applied) *
#*********************************************************************
 4 = maxjetflavor ! Maximum jet pdg code
#*********************************************************************
# Jet measure cuts *
#*********************************************************************
 0.0 = xqcut ! minimum kt jet measure between partons
#*********************************************************************
#
#*********************************************************************
# Store info for systematics studies *
# WARNING: If use_syst is T, matched Pythia output is *
# meaningful ONLY if plotted taking matchscale *
# reweighting into account! *
#*********************************************************************
   F = use_syst ! Enable systematics studies
#
#**************************************
# Parameter of the systematics study
# will be used by SysCalc (if installed)
#**************************************
#
0.5 1 2 = sys_scalefact # factorization/renormalization scale factor
None = sys_alpsfact # \alpha_s emission scale factors
auto = sys_matchscale # variation of merging scale
# PDF sets and number of members (0 or none for all members).
NNPDF23_lo_as_0130_qed = sys_pdf # matching scales
# MSTW2008nlo68cl.LHgrid 1 = sys_pdf

Kindly help me in resolving this error.

Best regards,
Ammad

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2018-04-06
Last reply:
2018-04-06

Can you attach the following file?

/afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/twz1_weight/Events/fermi/P1_gb_twmz_t_bwp_wp_epve_wm_qq_z_epem/output.xml<http://cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/twz1_weight/Events/fermi/P1_gb_twmz_t_bwp_wp_epve_wm_qq_z_epem/output.xml:728:9:>

Thanks,

Olivier

AMMAD MUHAMMAD (ammadm) said : #2

Thank you for your quick response.
please find the output.xml file in the attachment.

Best regards,
Ammad
________________________________________
From: <email address hidden> [<email address hidden>] on behalf of Olivier Mattelaer [<email address hidden>]
Sent: 05 April 2018 20:52
To: Ammad Muhammad
Subject: Re: [Question #667600]: Error occuring while computing weights for g b -> t w- z

Your question #667600 on MadGraph5_aMC@NLO changed:
https://answers.launchpad.net/mg5amcnlo/+question/667600

    Status: Open => Answered

Olivier Mattelaer proposed the following answer:
Can you attach the following file?

/afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/twz1_weight/Events/fermi/P1_gb_twmz_t_bwp_wp_epve_wm_qq_z_epem/output.xml<http://cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/twz1_weight/Events/fermi/P1_gb_twmz_t_bwp_wp_epve_wm_qq_z_epem/output.xml:728:9:>

Thanks,

Olivier

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/mg5amcnlo/+question/667600/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/mg5amcnlo/+question/667600

You received this question notification because you asked the question.

Hi,

Question on launchpad does not allow attachment.
Can you send me directly to my email : <email address hidden><mailto:<email address hidden>>
or put it somewhere where I can download it?
(you can also convert the question to a bug report where attachment are allowed.

Cheers,

Olivier

On 6 Apr 2018, at 05:57, AMMAD MUHAMMAD <<email address hidden><mailto:<email address hidden>>> wrote:

Question #667600 on MadGraph5_aMC@NLO changed:
https://answers.launchpad.net/mg5amcnlo/+question/667600

   Status: Answered => Open

AMMAD MUHAMMAD is still having a problem:
Thank you for your quick response.
please find the output.xml file in the attachment.

Best regards,
Ammad
________________________________________
From: <email address hidden> [<email address hidden>] on behalf of Olivier Mattelaer [<email address hidden>]
Sent: 05 April 2018 20:52
To: Ammad Muhammad
Subject: Re: [Question #667600]: Error occuring while computing weights for g b -> t w- z

Your question #667600 on MadGraph5_aMC@NLO changed:
https://answers.launchpad.net/mg5amcnlo/+question/667600

   Status: Open => Answered

Olivier Mattelaer proposed the following answer:
Can you attach the following file?

/afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/twz1_weight/Events/fermi/P1_gb_twmz_t_bwp_wp_epve_wm_qq_z_epem/output.xml<http://cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/twz1_weight/Events/fermi/P1_gb_twmz_t_bwp_wp_epve_wm_qq_z_epem/output.xml:728:9:>

Thanks,

Olivier

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/mg5amcnlo/+question/667600/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/mg5amcnlo/+question/667600

You received this question notification because you asked the question.

--
You received this question notification because you are an answer
contact for MadGraph5_aMC@NLO.

AMMAD MUHAMMAD (ammadm) said : #4

Thank you I sent you on your email.

Cheers,
Ammad
________________________________________
From: <email address hidden> [<email address hidden>] on behalf of Olivier Mattelaer [<email address hidden>]
Sent: 06 April 2018 09:53
To: Ammad Muhammad
Subject: Re: [Question #667600]: Error occuring while computing weights for g b -> t w- z

Your question #667600 on MadGraph5_aMC@NLO changed:
https://answers.launchpad.net/mg5amcnlo/+question/667600

    Status: Open => Answered

Olivier Mattelaer proposed the following answer:
Hi,

Question on launchpad does not allow attachment.
Can you send me directly to my email : <email address hidden><mailto:<email address hidden>>
or put it somewhere where I can download it?
(you can also convert the question to a bug report where attachment are allowed.

Cheers,

Olivier

On 6 Apr 2018, at 05:57, AMMAD MUHAMMAD <<email address hidden><mailto:<email address hidden>>> wrote:

Question #667600 on MadGraph5_aMC@NLO changed:
https://answers.launchpad.net/mg5amcnlo/+question/667600

   Status: Answered => Open

AMMAD MUHAMMAD is still having a problem:
Thank you for your quick response.
please find the output.xml file in the attachment.

Best regards,
Ammad
________________________________________
From: <email address hidden> [<email address hidden>] on behalf of Olivier Mattelaer [<email address hidden>]
Sent: 05 April 2018 20:52
To: Ammad Muhammad
Subject: Re: [Question #667600]: Error occuring while computing weights for g b -> t w- z

Your question #667600 on MadGraph5_aMC@NLO changed:
https://answers.launchpad.net/mg5amcnlo/+question/667600

   Status: Open => Answered

Olivier Mattelaer proposed the following answer:
Can you attach the following file?

/afs/cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/twz1_weight/Events/fermi/P1_gb_twmz_t_bwp_wp_epve_wm_qq_z_epem/output.xml<http://cern.ch/work/a/amuhamma/Ammad/CMSSW_7_3_0/MG5_aMC_v2_6_0/twz1_weight/Events/fermi/P1_gb_twmz_t_bwp_wp_epve_wm_qq_z_epem/output.xml:728:9:>

Thanks,

Olivier

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/mg5amcnlo/+question/667600/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/mg5amcnlo/+question/667600

You received this question notification because you asked the question.

--
You received this question notification because you are an answer
contact for MadGraph5_aMC@NLO.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/mg5amcnlo/+question/667600/+confirm?answer_id=2

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/mg5amcnlo/+question/667600

You received this question notification because you asked the question.

Hi,

Looks like some jobs are crashing and unfortunatly I have not enough log to know why.

The following patch should solve the problem since it will first fix the formatting issue due to the crash.
And will include addinitional information about the crash.

Cheers,

Olivier

=== modified file 'madgraph/madweight/MW_driver.py'
--- madgraph/madweight/MW_driver.py 2015-10-01 16:00:08 +0000
+++ madgraph/madweight/MW_driver.py 2018-04-06 12:10:27 +0000
@@ -48,6 +48,21 @@
         else:
             self.allow_event = lambda x: True

+ class output_handler(object):
+
+ def __init__(self, card_nb, sample_nb):
+ self.fsock = open('output_%s_%s.xml' % (card_nb, sample_nb), 'w')
+ self.fsock.write('<card id=\'%s\'>\n' % card_nb)
+
+ def __enter__(self):
+ return self.fsock
+
+ def __exit__(self, type, value, traceback):
+ if type is None:
+ self.fsock.write('</card>\n')
+ else:
+ self.fsock.write('<failmsg>%s\n%s\n%s</failmsg></card>\n' % (type, value, traceback))
+
     def run(self):
         """Run the computation"""

@@ -56,18 +71,16 @@
         fsock.writelines(str(self.mw_int_points)+'\n')
         fsock.close()

- self.fsock = open('output_%s_%s.xml' % (self.card_nb, self.sample_nb), 'w')
- self.fsock.write('<card id=\'%s\'>\n' % self.card_nb)
- while self.get_next_event(create=True):
- if not self.debug:
- subprocess.call('./comp_madweight', stdout=open('log.txt','w'))
- else:
- print 'submit in debug mode'
+ with self.output_handler(self.card_nb, self.sample_nb) as self.fsock:
+ while self.get_next_event(create=True):
+ if not self.debug:
+ subprocess.call('./comp_madweight', stdout=open('log.txt','w'))
+ else:
+ print 'submit in debug mode'

- os.system('echo "./comp_madweight" > log.txt')
- os.system('bash log.txt')
- self.get_one_job_result()
- self.fsock.write('</card>')
+ os.system('echo "./comp_madweight" > log.txt')
+ os.system('bash log.txt')
+ self.get_one_job_result()

     def get_next_event(self, create=True, update_event_nb=True):
         """prepare the verif.lhco"""

Can you help with this problem?

Provide an answer of your own, or ask AMMAD MUHAMMAD for more information if necessary.

To post a message you must log in.