AttributeError : 'aMCatNLOCmd' object has no attribute 'njobs'

Asked by Kristin Lohwasser

Dear all,

I am trying to move the generation of W+charm production with aMCatNLO from
MadGraph5_v2_0_0_beta3 (slc5 and Herwig++)
to
MG5_aMC_v2_1_2 (sl6 and Pythia8)

I am using the following model:
import model loop_sm-wcharm

However, I am running into compilation problems.
The first problem probably derived from the lack of lhapdf gcc48 libraries and it is removed by using the built-in PDF library.
The second compilation problems is when doing the launch -p command:

INFO: Generating events without running the shower.
INFO: Setting up grid
Command "launch auto --parton" interrupted with error:
AttributeError : 'aMCatNLOCmd' object has no attribute 'njobs'
Please report this bug on https://bugs.launchpad.net/madgraph5
More information is found in '/afs/cern.ch/user/k/kristin/testamcatnlo/MG5_aMC_v2_1_2/gen/run_01_tag_1_debug.log'.
Please attach this file to your report. ---> The file comes after the signature.

the gcc47 libraries are set as avertised on the webpage,
fastjet is: fastjet=/afs/cern.ch/sw/lcg/external/fastjet/3.0.3/x86_64-slc6-gcc47-opt/bin/fastjet-config

Thanks & Best
Kristin

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.1.2 2014-07-03 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* and *
#* http://amcatnlo.cern.ch *
#* *
#************************************************************
#* *
#* Command File for aMCatNLO *
#* *
#* run as ./bin/aMCatNLO.py filename *
#* *
#************************************************************
launch auto --parton
Traceback (most recent call last):
  File "/afs/cern.ch/user/k/kristin/testamcatnlo/MG5_aMC_v2_1_2/madgraph/interface/extended_cmd.py", line 879, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/afs/cern.ch/user/k/kristin/testamcatnlo/MG5_aMC_v2_1_2/madgraph/interface/extended_cmd.py", line 872, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/user/k/kristin/testamcatnlo/MG5_aMC_v2_1_2/madgraph/interface/amcatnlo_run_interface.py", line 1185, in do_launch
    evt_file = self.run(mode, options)
  File "/afs/cern.ch/user/k/kristin/testamcatnlo/MG5_aMC_v2_1_2/madgraph/interface/amcatnlo_run_interface.py", line 1484, in run
    self.run_all(job_dict, [['2', 'F', '%d' % i]], status, split_jobs = split)
  File "/afs/cern.ch/user/k/kristin/testamcatnlo/MG5_aMC_v2_1_2/madgraph/interface/amcatnlo_run_interface.py", line 2946, in run_all
    self.update_status((self.njobs - 1, 1, 0, run_type), level='parton')
AttributeError: 'aMCatNLOCmd' object has no attribute 'njobs'
Value of current Options:
              text_editor : None
              web_browser : None
        cluster_temp_path : None
       group_subprocesses : False
                  timeout : 60
            cluster_queue : None
         madanalysis_path : None
                   lhapdf : /afs/cern.ch/sw/lcg/external/MCGenerators/lhapdf/5.8.9/x86_64-slc6-gcc46-opt
ignore_six_quark_processes : False
             stdout_level : 20
    loop_optimized_output : True
    cluster_status_update : (600, 30)
               hepmc_path : None
             pythia8_path : None
                hwpp_path : None
   automatic_html_opening : False
       cluster_retry_wait : 300
      output_dependencies : external
          pythia-pgs_path : None
                 mg5_path : /afs/cern.ch/user/k/kristin/testamcatnlo/MG5_aMC_v2_1_2
                  td_path : None
             delphes_path : None
              thepeg_path : None
             cluster_type : condor
      exrootanalysis_path : None
         fortran_compiler : /afs/cern.ch/sw/lcg/external/gcc/4.7.0/x86_64-slc6-gcc47-opt/bin/gfortran
                  nb_core : 8
                      OLP : MadLoop
              auto_update : 7
         cluster_nb_retry : 1
               eps_viewer : None
             syscalc_path : None
                  fastjet : /afs/cern.ch/user/k/kristin/fastjet-3.0.3/fastjet-config
                    gauge : unitary
      complex_mass_scheme : False
             cpp_compiler : None
                 run_mode : 0
#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.1.2 2014-07-03 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadGraph5_aMC@NLO *
#* *
#* run as ./bin/mg5_aMC filename *
#* *
#************************************************************
set group_subprocesses Auto
set ignore_six_quark_processes False
set loop_optimized_output True
set gauge unitary
set complex_mass_scheme False
import model loop_sm-wcharm
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~
define p = g u d s u~ d~ s~
generate p p > e+ ve c~ [QCD]
output gen
######################################################################
## 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 LOOP
###################################
Block loop
    1 9.118800e+01 # MU_R

###################################
## INFORMATION FOR MASS
###################################
Block mass
    4 1.550000e+00 # MC
    5 4.700000e+00 # MB
    6 1.730000e+02 # MT
   15 1.777000e+00 # MTA
   23 9.118800e+01 # MZ
   25 1.200000e+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
  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)))
  82 0.000000 # gh : 0.0

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

###################################
## INFORMATION FOR WOLFENSTEIN
###################################
Block wolfenstein
    1 2.253000e-01 # lamWS
    2 8.080000e-01 # AWS
    3 1.320000e-01 # rhoWS
    4 3.410000e-01 # etaWS

###################################
## 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 5.753088e-03 # WH
## Dependent parameters, given by model restrictions.
## Those values should be edited following the
## analytical expression. MG5 ignores those values
## but they are important for interfacing the output of MG5
## to external program such as Pythia.
DECAY 1 0.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
DECAY 82 0.000000 # gh : 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)
#***********************************************************************
# MadGraph5_aMC@NLO *
# *
# run_card.dat aMC@NLO *
# *
# This file is used to set the parameters of the run. *
# *
# Some notation/conventions: *
# *
# Lines starting with a hash (#) are info or comments *
# *
# mind the format: value = variable ! comment *
#***********************************************************************
#
#*******************
# Running parameters
#*******************
#
#***********************************************************************
# Tag name for the run (one word) *
#***********************************************************************
  tag_1 = run_tag ! name of the run
#***********************************************************************
# Number of events (and their normalization) and the required *
# (relative) accuracy on the Xsec. *
# These values are ignored for fixed order runs *
#***********************************************************************
  5000 = nevents ! Number of unweighted events requested
  -1 = req_acc ! Required accuracy (-1=auto determined from nevents)
  -1 = nevt_job ! Max number of events per job in event generation.
                 ! (-1= no split).
  average = event_norm ! Normalize events to sum or average to the X sect.
#***********************************************************************
# 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 *
#***********************************************************************
  10 = 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)
  3500 = ebeam1 ! beam 1 energy in GeV
  3500 = ebeam2 ! beam 2 energy in GeV
#***********************************************************************
# PDF choice: this automatically fixes also alpha_s(MZ) and its evol. *
#***********************************************************************
  nn23nlo = pdlabel ! PDF set
  230000 = lhaid ! if pdlabel=lhapdf, this is the lhapdf number
#***********************************************************************
# Include the NLO Monte Carlo subtr. terms for the following parton *
# shower (HERWIG6 | HERWIGPP | PYTHIA6Q | PYTHIA6PT | PYTHIA8) *
# WARNING: PYTHIA6PT works only for processes without FSR!!!! *
#***********************************************************************
  pythia8 = parton_shower
 #***********************************************************************
# Renormalization and factorization scales *
# (Default functional form for the non-fixed scales is the sum of *
# the transverse masses of all final state particles and partons. This *
# can be changed in SubProcesses/set_scales.f) *
#***********************************************************************
  F = fixed_ren_scale ! if .true. use fixed ren scale
  F = fixed_fac_scale ! if .true. use fixed fac scale
  91.188 = muR_ref_fixed ! fixed ren reference scale
  91.188 = muF1_ref_fixed ! fixed fact reference scale for pdf1
  91.188 = muF2_ref_fixed ! fixed fact reference scale for pdf2
#***********************************************************************
# Renormalization and factorization scales (advanced and NLO options) *
#***********************************************************************
  F = fixed_QES_scale ! if .true. use fixed Ellis-Sexton scale
  91.188 = QES_ref_fixed ! fixed Ellis-Sexton reference scale
  1 = muR_over_ref ! ratio of current muR over reference muR
  1 = muF1_over_ref ! ratio of current muF1 over reference muF1
  1 = muF2_over_ref ! ratio of current muF2 over reference muF2
  1 = QES_over_ref ! ratio of current QES over reference QES
#***********************************************************************
# Reweight flags to get scale dependence and PDF uncertainty *
# For scale dependence: factor rw_scale_up/down around central scale *
# For PDF uncertainty: use LHAPDF with supported set *
#***********************************************************************
  .true. = reweight_scale ! reweight to get scale dependence
  0.5 = rw_Rscale_down ! lower bound for ren scale variations
  2.0 = rw_Rscale_up ! upper bound for ren scale variations
  0.5 = rw_Fscale_down ! lower bound for fact scale variations
  2.0 = rw_Fscale_up ! upper bound for fact scale variations
  .false. = reweight_PDF ! reweight to get PDF uncertainty
  230001 = PDF_set_min ! First of the error PDF sets
  230100 = PDF_set_max ! Last of the error PDF sets
#***********************************************************************
# 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 more details. *
#***********************************************************************
  0 = ickkw ! 0 no merging, 3 FxFx merging
#***********************************************************************
#
#***********************************************************************
# BW cutoff (M+/-bwcutoff*Gamma) *
#***********************************************************************
  15 = bwcutoff
 #***********************************************************************
# Cuts on the jets *
# Jet clustering is performed by FastJet.
# When matching to a parton shower, these generation cuts should be *
# considerably softer than the analysis cuts. *
# (more specific cuts can be specified in SubProcesses/cuts.f) *
#***********************************************************************
  1 = jetalgo ! FastJet jet algorithm (1=kT, 0=C/A, -1=anti-kT)
  0.7 = jetradius ! The radius parameter for the jet algorithm
  10 = ptj ! Min jet transverse momentum
  -1 = etaj ! Max jet abs(pseudo-rap) (a value .lt.0 means no cut)
#***********************************************************************
# Cuts on the charged leptons (e+, e-, mu+, mu-, tau+ and tau-) *
# (more specific gen cuts can be specified in SubProcesses/cuts.f) *
#***********************************************************************
  0 = ptl ! Min lepton transverse momentum
  -1 = etal ! Max lepton abs(pseudo-rap) (a value .lt.0 means no cut)
  0 = drll ! Min distance between opposite sign lepton pairs
  0 = drll_sf ! Min distance between opp. sign same-flavor lepton pairs
  0 = mll ! Min inv. mass of all opposite sign lepton pairs
  30 = mll_sf ! Min inv. mass of all opp. sign same-flavor lepton pairs
#***********************************************************************
# Photon-isolation cuts, according to hep-ph/9801442 *
# When ptgmin=0, all the other parameters are ignored *
#***********************************************************************
  20 = ptgmin ! Min photon transverse momentum
  -1 = etagamma ! Max photon abs(pseudo-rap)
  0.4 = R0gamma ! Radius of isolation code
  1.0 = xn ! n parameter of eq.(3.4) in hep-ph/9801442
  1.0 = epsgamma ! epsilon_gamma parameter of eq.(3.4) in hep-ph/9801442
  .true. = isoEM ! isolate photons from EM energy (photons and leptons)
#***********************************************************************
# Maximal PDG code for quark to be considered a jet when applying cuts.*
# At least all massless quarks of the model should be included here. *
#***********************************************************************
  4 = maxjetflavor
 #***********************************************************************
  230000 = lhaid

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

Dear Kristin,

did you try with the latest version of the code (2.2.2)
It is likely that the problem is already solved.

Cheers,

Olivier

Revision history for this message
Kristin Lohwasser (kristin-lohwasser) said :
#2

Thanks Olivier Mattelaer, that solved my question.

Revision history for this message
Kristin Lohwasser (kristin-lohwasser) said :
#3

Sorry, I had not checked this before asking (and I knew this version worked for a colleague albeit with the built-in shower, now that I think of it), but with the holidays coming up, I was pressed for time... better to launch the production before.

Thanks you so much! very much appreciated.

Have a happy holidays!!