how to compile and run pythia8 by hand

Asked by yuanfang

Hi,
    I am using MadGraph V3.5.1. I want to modify part of pythia8 code and compile and so that I can use it as before, i.e type launch then madgraph will generate LHE eventns and call pythia8 for parton shower for me. But if I just type "install pythia8", then madgraph will download a new pythia8 and compile automatically ,which is not what I want.
    Is it possible to compile my modified pythia8 and compile it by hand?
    Thank you!

Best,
Yuanfang

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

Hi,

Yes you can install a version of Pythia8 on your system which is compiled by hand.
You will then need to indicate to MG5aMC where the code is by editting the file input/mg5_configuration.txt

Note that for LO run (this is not the case for NLO), we need a dedicated pythia8 main file (which implement pythia8 hook as well).
this is the package called mg5amc_py8_interface
that you can either install standalone (via install mg5amc_py8_interface) or also outside of MG5 and then specify his path within the same file.

Cheers,

Olivier

Revision history for this message
yuanfang (yuanfang405) said :
#2

Hi Olivier,
     Thank you very much. That solved my problem.

Revision history for this message
yuanfang (yuanfang405) said :
#3

Thanks Olivier Mattelaer, that solved my question.