Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorial:madgraph [2018/12/11 18:56] – minerva1993 | tutorial:madgraph [2023/03/06 13:44] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Install Madgraph | + | ==== Install Madgraph ==== |
- | You have to install MG5 in your home directory. | + | <alert type=" |
- | <alert type=" | + | |
- | <alert type=" | + | </ |
- | Initial setup - install | + | Initial setup - install MG5 from launchpad |
< | < | ||
mkdir -p ~/work/MG5 | mkdir -p ~/work/MG5 | ||
cd ~/work/MG5 | cd ~/work/MG5 | ||
- | wget https:// | + | wget https:// |
- | tar xzf MG5_aMC_v2.6.0.tar.gz | + | tar xzf MG5_aMC_v2.6.4.tar.gz |
</ | </ | ||
Setup the devtoolset to use updated gcc and python. | Setup the devtoolset to use updated gcc and python. | ||
< | < | ||
+ | # Don't need to source following lines in Ubuntu and Mac. | ||
# source / | # source / | ||
# source / | # source / | ||
Line 19: | Line 19: | ||
</ | </ | ||
- | Install missing tools. | + | Install missing tools. Order does matter. |
< | < | ||
bin/mg5_aMC | bin/mg5_aMC | ||
Line 31: | Line 31: | ||
</ | </ | ||
- | <alert type=" | + | <alert type=" |
Open the fortran source code '' | Open the fortran source code '' | ||
This is because of a gfortran bug. See https:// | This is because of a gfortran bug. See https:// | ||
Line 57: | Line 57: | ||
./b2 | ./b2 | ||
\cp stage/lib/* ../lib/ | \cp stage/lib/* ../lib/ | ||
- | cd ../.. /lib | + | cd ../.. |
+ | cd lib | ||
for i in ../ | for i in ../ | ||
cd ../.. | cd ../.. | ||
Line 63: | Line 64: | ||
</ | </ | ||
+ | Then add the following lines to fix build flags https:// | ||
+ | < | ||
+ | sed -i " | ||
+ | sed -i ' | ||
+ | sed -i ' | ||
+ | </ | ||
+ | enable lhapdf6 for all of your generation (download other PDFSets depending on your needs) | ||
+ | < | ||
+ | cd HEPTools/ | ||
+ | bin/lhapdf get NNPDF23_lo_as_0130_qed | ||
+ | </ | ||
+ | |||
+ | Then you will be able to start the generation. | ||
+ | < | ||
+ | ./ | ||
+ | MG5_aMC> generate p p > t t~ [QCD] | ||
+ | MG5_aMC> output ttNLO | ||
+ | MG5_aMC> launch | ||
+ | </ | ||
+ | |||
+ | <alert type=" | ||
+ | |||
+ | You can rerun the shower program. | ||
+ | < | ||
+ | cd ttNLO | ||
+ | bin/shower run_01 | ||
+ | </ | ||
+ | |||
+ | If you run the MG5 at the leading order, LHAPDF is required during the runtime, related on systematics. Set the environmental variables before running the mg5_aMC (or put into your .bashrc file) to prevent such a problem. | ||
+ | < | ||
+ | export PYTHONPATH=YOUR_MADGRAPH_PATH/ | ||
+ | export LD_LIBRARY_PATH=YOUR_MADGRAPH_PATH/ | ||
+ | </ | ||
+ | |||
+ | To speed up the parton shower step, you can set '' | ||
+ | |||
+ | ==== Running on Cluster mode ==== | ||
+ | The default setup is '' | ||
+ | Edit the '' | ||
+ | |||
+ | < | ||
+ | command = [' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | </ | ||
+ | |||
+ | and add the following lines to your configuration file, '' | ||
+ | < | ||
+ | cluster_type = sge | ||
+ | cluster_size = 96 | ||
+ | </ | ||
+ | |||
+ | and run with '' | ||
+ | < | ||
+ | bin/ | ||
+ | </ | ||
+ | But in this case, you should not run delphes automatically because multiple delphes sessions will make a crash. | ||
+ | |||
+ | ==== Basic Syntax ==== | ||
+ | |||
+ | ==== Get New PDF ==== | ||
+ | |||
+ | ==== Parameters for Run Card ==== | ||
+ | |||
+ | ==== Disable HEPMC compression ==== | ||
+ | 만들어진 HEPMC파일을 압축하는데에는 시간이 오래 걸리므로, | ||
+ | < | ||
+ | vi path_to-MG5/ | ||
+ | </ | ||
+ | line 5291의 '' | ||
+ | < | ||
+ | vi bin/ | ||
+ | rm bin/ | ||
+ | </ | ||