the shell script in the claculation of NLO

Asked by abulikim2011

I wanted to compute NLO process (p p> t t~) [QCD] for 50 times in MG5, I wrote a shell script for this computation, but I got an error every time I run it, as following:
ablikim@ablikim:~/ttbar555/bin$ bash run_PDF.sh
No module named madgraph
INFO: ************************************************************
* *
* W E L C O M E to M A D G R A P H 5 *
* a M C @ N L O *
* *
* * * *
* * * * * *
* * * * * 5 * * * * *
* * * * * *
* * * *
* *
* VERSION 5.2.3.3 20xx-xx-xx *
* *
* The MadGraph5_aMC@NLO Development Team - Find us at *
* http://amcatnlo.cern.ch *
* *
* Type 'help' for in-line help. *
* *
************************************************************
INFO: load configuration from /home/ablikim/ttbar555/Cards/amcatnlo_configuration.txt
INFO: load configuration from /home/ablikim/Documents/tools/MG5_aMC_v2_3_3/input/mg5_configuration.txt
INFO: load configuration from /home/ablikim/ttbar555/Cards/amcatnlo_configuration.txt
Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
Using default eps viewer "evince". Set another one in ./input/mg5_configuration.txt
Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt
launch launch.txt
Command "launch launch.txt" interrupted with error:
InvalidCmd : launch.txt is not a valid mode, please use "LO", "NLO", "aMC@NLO" or "aMC@LO"
Please report this bug on https://bugs.launchpad.net/madgraph5
More information is found in 'ME5_debug'.
Please attach this file to your report.
quit
INFO:

#!/bin/bash
function main {

 for (( i=1; i<=50; i++ ))
 do

  #run MadGraph
  ./generate_events launch.txt

 done
}
main

launch.txt :

fixed_order=ON

please help me soon, thank you so much!

Best regards
 Ablikim

Question information

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

Olivier Mattelaer suggests this article as an answer to your question:
FAQ #2186: “How to script MG5 run?”.

Revision history for this message
abulikim2011 (abulikim2011) said :
#2

Hi Olivier
in the lo calcualtion is it is okay,but in the NLO calculation processis it is not working ,always ocuur some like thi is not LO mode NLO mode ....etc.

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

The scripting approach is the same for LO/NLO.
so in your case you have to write:

launch
fixed_order=ON
launch
fixed_order=ON

(and this a total of 50 times)
and then do
./bin/aMCatNLO PATH_TO_ABOVE_FILE)

If you want to keep your bash approach. You should use the argument of the function launch (providing path is not correct)
and write the following:
#run MadGraph
  ./generate_events NLO

Cheers,

Olivier