pythia8_path/examples/config.sh is not present

Asked by Siew Yan HOH

Hi,

I am trying to use pythia8.2 to produced parton shower event in .lhe format, I have followed the Pythia8 online manual
http://home.thep.lu.se/~torbjorn/pythia82html/Welcome.html
to interface madgraph to pythia, I have set the pythia8 path relative and also absolute path as it instructed. But when I type "output pythia8" it return error as

Command "output pythia8" interrupted with error:
IndexError : list index out of range
Please report this bug on https://bugs.launchpad.net/madgraph5
More information is found in 'MG5_debug'.
Please attach this file to your report.

I check the MG5_debug, the previous pythia8_path that I specified in the mg5_configuration.txt does not take effect. I followed the comment to locate the config.sh in pythia8/example/config.sh and the config.sh wasn't there ( it does not come with the Pythia8 package, it try to download the package again still not there)

Despite of that, I try another solution which is to specify the pythia8 path interactively:

output pythia8 Pythia8_path

It produced a folder and a makefile as expected in the specified path, while i try to run the make -f Makefile, it return error :
make: *** No rule to make target `../config.mk', needed by `all'. Stop.

I am using old version MG5_aMC_v2_1_0 for some reason, and latest pythia8201. The content of MG5_debug:

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.1.0 2014-02-21 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadGraph5_aMC@NLO *
#* *
#* run as ./bin/mg5_aMC filename *
#* *
#************************************************************
set group_subprocesses Auto
set ignore_six_quark_processes False
set loop_optimized_output True
set gauge unitary
set complex_mass_scheme False
import model sm
define p = g u c d s u~ c~ d~ s~
define j = g u c d s u~ c~ d~ s~
define l+ = e+ mu+
define l- = e- mu-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
import model EffDM_UFO --modelname
define p = g u c d s u~ c~ d~ s~
define j = g u c d s u~ c~ d~ s~
generate p p > chi chi~ j QED=0 D1=0 D2=0 D3=0 D4=0 D5=1 D6=0 D7=0 D8=0 D9=0 D10=0 D11=0 D12=0 D13=0 D14=0
output pythia8
Traceback (most recent call last):
  File "/afs/cern.ch/work/s/shoh/analysis/monojet/jetmatching/CMSMonojetDM/MG5_aMC_v2_1_0/madgraph/interface/extended_cmd.py", line 872, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/afs/cern.ch/work/s/shoh/analysis/monojet/jetmatching/CMSMonojetDM/MG5_aMC_v2_1_0/madgraph/interface/extended_cmd.py", line 865, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/work/s/shoh/analysis/monojet/jetmatching/CMSMonojetDM/MG5_aMC_v2_1_0/madgraph/interface/master_interface.py", line 264, in do_output
    self.cmd.do_output(self, line, *args, **opts)
  File "/afs/cern.ch/work/s/shoh/analysis/monojet/jetmatching/CMSMonojetDM/MG5_aMC_v2_1_0/madgraph/interface/madgraph_interface.py", line 5337, in do_output
    if not args[0] in ['.', '-f']:
IndexError: list index out of range
                          MadGraph5_aMC@NLO Options
                          ----------------
               stdout_level : 20 (user set)
         group_subprocesses : Auto
  ignore_six_quark_processes : False
      loop_optimized_output : True
                      gauge : unitary
        complex_mass_scheme : False

                         MadEvent Options
                          ----------------
     automatic_html_opening : False (user set)
                    nb_core : 8 (user set)
                   run_mode : 2

                      Configuration Options
                      ---------------------
                text_editor : emacs -nw (user set)
      cluster_status_update : (600, 30)
               pythia8_path : None (user set)
                  hwpp_path : None (user set)
            pythia-pgs_path : ./pythia-pgs
                    td_path : /afs/cern.ch/user/s/shoh/CMSMonojetDM/MG5_aMC_v2_1_0/td (user set)
               delphes_path : ./Delphes
                thepeg_path : None (user set)
               cluster_type : condor
           cluster_nb_retry : 1
                        OLP : MadLoop
                 eps_viewer : None
                    fastjet : /afs/cern.ch/work/s/shoh/analysis/monojet/jetmatching/CMSMonojetDM/MG5_aMC_v2_1_0/fastjet-3.0.6/fastjet-config (user set)
                web_browser : None
          cluster_temp_path : None
               syscalc_path : ./SysCalc
              cluster_queue : None
           madanalysis_path : ./MadAnalysis
                     lhapdf : /afs/cern.ch/user/s/shoh/LHAPDF-6.1.4/lhapdf-config.in (user set)
                 hepmc_path : None (user set)
         cluster_retry_wait : 300
           fortran_compiler : None
                auto_update : 7
        exrootanalysis_path : ./ExRootAnalysis
                    timeout : 60

is the problem the config.sh is not present or the compatibility of older madgraph5 version ? Is that any other way out? Thanks

Question information

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

Hi,

I’m not sure if this is your problem or not, but at some point Pythia8 change a lot of convention in their way to handle files and this breaks down the function “output pythia8”.
This has been fixed in MG5_aMC 2.2.0. So clearly if you want to have it work with Pythia8.1, you need a more recent version.
I never try with Pythia8.2 but the same should be true.

Tell me if it work after that, if not, I will contact the Pythia author, to see if they change some other stuff.

Cheers,

Olivier

On Nov 3, 2014, at 1:31 PM, Siew Yan HOH <email address hidden> wrote:

> New question #256707 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/256707
>
> Hi,
>
> I am trying to use pythia8.2 to produced parton shower event in .lhe format, I have followed the Pythia8 online manual
> http://home.thep.lu.se/~torbjorn/pythia82html/Welcome.html
> to interface madgraph to pythia, I have set the pythia8 path relative and also absolute path as it instructed. But when I type "output pythia8" it return error as
>
> Command "output pythia8" interrupted with error:
> IndexError : list index out of range
> Please report this bug on https://bugs.launchpad.net/madgraph5
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> I check the MG5_debug, the previous pythia8_path that I specified in the mg5_configuration.txt does not take effect. I followed the comment to locate the config.sh in pythia8/example/config.sh and the config.sh wasn't there ( it does not come with the Pythia8 package, it try to download the package again still not there)
>
> Despite of that, I try another solution which is to specify the pythia8 path interactively:
>
> output pythia8 Pythia8_path
>
> It produced a folder and a makefile as expected in the specified path, while i try to run the make -f Makefile, it return error :
> make: *** No rule to make target `../config.mk', needed by `all'. Stop.
>
> I am using old version MG5_aMC_v2_1_0 for some reason, and latest pythia8201. The MG5_debug is attached.
>
> is the problem the config.sh is not present or the compatibility of older madgraph5 version ? Is that any other way out? Thanks
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Siew Yan HOH (siew-yan-hoh) said :
#2

Hi,

I tried with latest version MG5_aMC 2.2.1, to pythia8.1, despite I have specified the pythia8 path in the mg5_configuration, this is what i got

MG5_aMC>output pythia8
Create output in /afs/cern.ch/user/s/shoh/MG5_aMC_v2_2_1/bin/Pythia8_proc_0
INFO: Organizing processes into subprocess groups
INFO: Generating Helas calls for process: g g > t t~ WEIGHTED=2
INFO: Processing color information for process: g g > t t~
INFO: Generating Helas calls for process: u u~ > t t~ WEIGHTED=2
INFO: Processing color information for process: u u~ > t t~
INFO: Combined process c c~ > t t~ WEIGHTED=2 with process u u~ > t t~ WEIGHTED=2
INFO: Combined process d d~ > t t~ WEIGHTED=2 with process u u~ > t t~ WEIGHTED=2
INFO: Combined process s s~ > t t~ WEIGHTED=2 with process u u~ > t t~ WEIGHTED=2
INFO: Created files Sigma_sm_gg_ttx.h and Sigma_sm_gg_ttx.cc in directory /afs/cern.ch/user/s/shoh/MG5_aMC_v2_2_1/bin/Pythia8_proc_0/Processes_sm
INFO: Created files Sigma_sm_qq_ttx.h and Sigma_sm_qq_ttx.cc in directory /afs/cern.ch/user/s/shoh/MG5_aMC_v2_2_1/bin/Pythia8_proc_0/Processes_sm
WARNING: Directory /afs/cern.ch/user/s/shoh/MG5_aMC_v2_2_1/bin/Pythia8_proc_0 is not a valid Pythia 8 main dir.
ALOHA: aloha creates SSS1 routines
ALOHA: aloha creates FFS1 routines
ALOHA: aloha creates FFS2 routines
ALOHA: aloha creates FFS3 routines
ALOHA: aloha creates FFS4 routines
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates FFV2 routines
ALOHA: aloha creates FFV3 routines
ALOHA: aloha creates FFV4 routines
ALOHA: aloha creates FFV5 routines
ALOHA: aloha creates VSS1 routines
ALOHA: aloha creates VVS1 routines
ALOHA: aloha creates VVV1 routines
ALOHA: aloha creates SSSS1 routines
ALOHA: aloha creates VVSS1 routines
ALOHA: aloha creates VVVV1 routines
ALOHA: aloha creates VVVV2 routines
ALOHA: aloha creates VVVV3 routines
ALOHA: aloha creates VVVV4 routines
ALOHA: aloha creates VVVV5 routines
INFO: Created files HelAmps_sm.h and HelAmps_sm.cc in directory
INFO: /afs/cern.ch/user/s/shoh/MG5_aMC_v2_2_1/bin/Pythia8_proc_0/Processes_sm and /afs/cern.ch/user/s/shoh/MG5_aMC_v2_2_1/bin/Pythia8_proc_0/Processes_sm
INFO: Created files Parameters_sm.h and Parameters_sm.cc in directory
INFO: /afs/cern.ch/user/s/shoh/MG5_aMC_v2_2_1/bin/Pythia8_proc_0/Processes_sm and /afs/cern.ch/user/s/shoh/MG5_aMC_v2_2_1/bin/Pythia8_proc_0/Processes_sm
INFO: Created Makefile in directory /afs/cern.ch/user/s/shoh/MG5_aMC_v2_2_1/bin/Pythia8_proc_0/Processes_sm
INFO: Created param_card_sm.dat in directory /afs/cern.ch/user/s/shoh/MG5_aMC_v2_2_1/bin/Pythia8_proc_0/Processes_sm
INFO: Created files main_sm_1.cc and Makefile_sm_1 in directory /afs/cern.ch/user/s/shoh/MG5_aMC_v2_2_1/bin/Pythia8_proc_0/examples
Generated helas calls for 2 subprocesses (4 diagrams) in 0.041 s
- All necessary files for Pythia 8 generated.
- Run "launch" and select main_sm_1.cc,
  or go to /afs/cern.ch/user/s/shoh/MG5_aMC_v2_2_1/bin/Pythia8_proc_0/examples and run
      make -f /afs/cern.ch/user/s/shoh/MG5_aMC_v2_2_1/bin/Pythia8_proc_0/examples/Makefile_sm_1
  (with process_name replaced by process name).
  You can then run ./main_sm_1 to produce events for the process
MG5_aMC>exit

Madgraph cannot output into the Pythia8, but put the folder in madgraph bin folder.

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

Hi,

Could you try the following patch:

=== modified file 'madgraph/interface/madgraph_interface.py'
--- madgraph/interface/madgraph_interface.py 2014-11-22 14:28:19 +0000
+++ madgraph/interface/madgraph_interface.py 2014-11-26 15:52:15 +0000
@@ -5018,7 +5018,7 @@
                     continue
                 path = self.options[key]
                 #this is for pythia8
- if key == 'pythia8_path' and not os.path.isfile(pjoin(MG5DIR, path, 'include', 'Pythia.h')):
+ if key == 'pythia8_path' and not os.path.isfile(pjoin(MG5DIR, path, 'include', 'Pythia8', 'Pythia.h')):
                     if not os.path.isfile(pjoin(path, 'include', 'Pythia.h')):
                         self.options['pythia8_path'] = None
                     else:

This should solve the problem ( I guess).

Thanks,

Olivier

Can you help with this problem?

Provide an answer of your own, or ask Siew Yan HOH for more information if necessary.

To post a message you must log in.