How to script MG5 run (and also edit param_card)

Asked by Saiyad Ashanujjaman on 2019-05-11

Hi,
     What I want is to script MG5 run and also to replace the param_card.dat (generated by MG) with the mass spectrum file from SPheno (which is written in the same format and all the information of the param_card is written in this file) in each run.

Is it possible to write such a script?

Thanks,

Saiyad

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
2019-05-12
Last query:
2019-05-12
Last reply:
2019-05-11

Hi,

here is an example of command file

generate p p > t t~
output MYDIR
launch
shower=PY8
~/SPENO/spectrum_1.dat

that you can run via
./bin/mg5_aMC PATH_TO_SCRIPT

Cheers,

Olivier

> On 11 May 2019, at 22:42, Saiyad Ashanujjaman <email address hidden> wrote:
>
> Question #680759 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/680759
>
> Description changed to:
> Hi,
> What I want is to script MG5 run and also to replace the param_card.dat (generated by MG) with the mass spectrum file from SPheno (which is written in the same format and all the information of the param_card is written in this file) in each run.
>
> Is it possible to write such a script?
>
> Thanks,
>
> Saiyad
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Thanks Olivier Mattelaer, that solved my question.