How to choose shower program from generate_events?

Asked by Jeff Asaf Dror on 2017-11-30

I like to run MadGraph from a ".mg5" file, where I invoke the command

"generate_events run_name --laststep=delphes"

However, by default this chooses to run the showering program which ran on that process previously (or just pythia6 if its the first time this is run). Is there a way to override this behavior to tell it what showering program to use? For example:

"generate_events run_name --laststep=delphes --shower=pythia8"

If this is not feasible is there a file I can edit ahead of time which will tell MG which shower program to use without having to open to interface itself? Playing with the cards doesn't seem to work.

Question information

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

Hi,

I do not know what a “.mg5” file is.

What you can do is the following
create a file with the following lines
> generate_events run_name
shower=Pythia8
detector=delphes
#you can include here all the line for the edition of the cards

then you can run those command with
./bin/madevent PATH_TO_YOUR_FILE

Cheers,

Olivier

> On Nov 30, 2017, at 20:07, Jeff Asaf Dror <email address hidden> wrote:
>
> New question #661301 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/661301
>
> I like to run MadGraph from a ".mg5" file, where I invoke the command
>
> "generate_events run_name --laststep=delphes"
>
> However, by default this chooses to run the showering program which ran on that process previously (or just pythia6 if its the first time this is run). Is there a way to override this behavior to tell it what showering program to use? For example:
>
> "generate_events run_name --laststep=delphes --shower=pythia8"
>
> If this is not feasible is there a file I can edit ahead of time which will tell MG which shower program to use without having to open to interface itself? Playing with the cards doesn't seem to work.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Jeff Asaf Dror (asafjeffdror) said : #2

Thanks Olivier Mattelaer, that solved my question.