error with "shower=pythia8"

Asked by Sijing Zhang

Hi,

I got an error when I run my script for SM. I think it's from the pythia8(installed).
Here's the error:
"set ebeam1 4000.0" with error:
InvalidCmd : Possible options for set are ['group_subprocesses', 'ignore_six_quark_processes', 'stdout_level', 'fortran_compiler', 'cpp_compiler', 'loop_optimized_output', 'complex_mass_scheme', 'gauge', 'EWscheme', 'max_npoint_for_channel']

Here's my script:

 generate p p > a a Z, Z > mu+ mu-

output TEST_Zaa_8TeV_contur_SM
launch TEST_Zaa_8TeV_contur_SM

shower=pythia8

set ebeam1 4000.0
set ebeam2 4000.0

set nevents 1000.

launch TEST_Zaa_8TeV_contur_SM -i
print_results --path=./TEST_Zaa_8TeV_contur_SM/XS_TEST_Zphi.txt --format=short

Thanks!

Regards,
Sijing

Question information

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

Hi,

My guess is that you are trying to run with piping via the stdin.
When piping, the syntax is much more rigid and you are force to write explicitly when you pass from one question to the next.

A more robust way (in the context of retro-compability with future version) is to use your script but pass the path to your file as argument instead of piping it:
I.e. Do not do
./bin/mg5_aMC < PATH
But do
./bin/mg5_aMC PATH

With the second syntax, the syntax of your file is much more flexible and it runs as needed.

Cheers,

Olivier

PS: this would be the same without pythia8 actually.

On 30 Jun 2017, at 18:47, Sijing Zhang <<email address hidden><mailto:<email address hidden>>> wrote:

generate p p > a a Z, Z > mu+ mu-

output TEST_Zaa_8TeV_contur_SM
launch TEST_Zaa_8TeV_contur_SM

shower=pythia8

set ebeam1 4000.0
set ebeam2 4000.0

set nevents 1000.

launch TEST_Zaa_8TeV_contur_SM -i
print_results --path=./TEST_Zaa_8TeV_contur_SM/XS_TEST_Zphi.txt --format=short

Revision history for this message
Sijing Zhang (sijing) said :
#2

Hi Olivier,

Thanks for explanation! But the comand I'm using is the one you suggested. So what should I do? Thanks!

Regards,
Sijing

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

Hi,

This is really surprising. I have tested your file with both syntax, and I reproduce your error message when using the wrong syntax.
So are you really sure that you are using the correct syntax?

Otherwise, I would need you to tell me exactly what you do.
Such that I can try to reproduce your bug even with the correct syntax.
It might be useful that you send me your exact command file by mail to check if this is not a formatting issue (like \r\n for the end of the line)

Cheers,

Olivier

> On 1 Jul 2017, at 23:33, Sijing Zhang <email address hidden> wrote:
>
> Question #645737 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/645737
>
> Status: Answered => Open
>
> Sijing Zhang is still having a problem:
> Hi Olivier,
>
> Thanks for explanation! But the comand I'm using is the one you
> suggested. So what should I do? Thanks!
>
> Regards,
> Sijing
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Sijing Zhang (sijing) said :
#4

Hi Olivier,

Here attached is my script. The command I'm using is:
    ./bin/mg5_aMC script_contur_SM.txt
Maybe some issue I didn't realize, please point to me, if you find it.
Thanks a lot!

Cheers,
Sijing

On 2 July 2017 at 00:14, Olivier Mattelaer <
<email address hidden>> wrote:

> Your question #645737 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/645737
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> Hi,
>
> This is really surprising. I have tested your file with both syntax, and I
> reproduce your error message when using the wrong syntax.
> So are you really sure that you are using the correct syntax?
>
> Otherwise, I would need you to tell me exactly what you do.
> Such that I can try to reproduce your bug even with the correct syntax.
> It might be useful that you send me your exact command file by mail to
> check if this is not a formatting issue (like \r\n for the end of the line)
>
> Cheers,
>
> Olivier
>
>
> > On 1 Jul 2017, at 23:33, Sijing Zhang <question645737@answers.
> launchpad.net> wrote:
> >
> > Question #645737 on MadGraph5_aMC@NLO changed:
> > https://answers.launchpad.net/mg5amcnlo/+question/645737
> >
> > Status: Answered => Open
> >
> > Sijing Zhang is still having a problem:
> > Hi Olivier,
> >
> > Thanks for explanation! But the comand I'm using is the one you
> > suggested. So what should I do? Thanks!
> >
> > Regards,
> > Sijing
> >
> > --
> > You received this question notification because you are an answer
> > contact for MadGraph5_aMC@NLO.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/mg5amcnlo/+question/645737/+
> confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/mg5amcnlo/+question/645737
>
> You received this question notification because you asked the question.
>

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

Hi,

Please either send me the file on my email or convert first the question to a bug (attachment are not allowed for questions).

Cheers,

Olivier

> On 3 Jul 2017, at 07:53, Sijing Zhang <email address hidden> wrote:
>
> Question #645737 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/645737
>
> Status: Answered => Open
>
> Sijing Zhang is still having a problem:
> Hi Olivier,
>
> Here attached is my script. The command I'm using is:
> ./bin/mg5_aMC script_contur_SM.txt
> Maybe some issue I didn't realize, please point to me, if you find it.
> Thanks a lot!
>
> Cheers,
> Sijing
>
> On 2 July 2017 at 00:14, Olivier Mattelaer <
> <email address hidden>> wrote:
>
>> Your question #645737 on MadGraph5_aMC@NLO changed:
>> https://answers.launchpad.net/mg5amcnlo/+question/645737
>>
>> Status: Open => Answered
>>
>> Olivier Mattelaer proposed the following answer:
>> Hi,
>>
>> This is really surprising. I have tested your file with both syntax, and I
>> reproduce your error message when using the wrong syntax.
>> So are you really sure that you are using the correct syntax?
>>
>> Otherwise, I would need you to tell me exactly what you do.
>> Such that I can try to reproduce your bug even with the correct syntax.
>> It might be useful that you send me your exact command file by mail to
>> check if this is not a formatting issue (like \r\n for the end of the line)
>>
>> Cheers,
>>
>> Olivier
>>
>>
>>> On 1 Jul 2017, at 23:33, Sijing Zhang <question645737@answers.
>> launchpad.net> wrote:
>>>
>>> Question #645737 on MadGraph5_aMC@NLO changed:
>>> https://answers.launchpad.net/mg5amcnlo/+question/645737
>>>
>>> Status: Answered => Open
>>>
>>> Sijing Zhang is still having a problem:
>>> Hi Olivier,
>>>
>>> Thanks for explanation! But the comand I'm using is the one you
>>> suggested. So what should I do? Thanks!
>>>
>>> Regards,
>>> Sijing
>>>
>>> --
>>> You received this question notification because you are an answer
>>> contact for MadGraph5_aMC@NLO.
>>
>> --
>> If this answers your question, please go to the following page to let us
>> know that it is solved:
>> https://answers.launchpad.net/mg5amcnlo/+question/645737/+
>> confirm?answer_id=2
>>
>> If you still need help, you can reply to this email or go to the
>> following page to enter your feedback:
>> https://answers.launchpad.net/mg5amcnlo/+question/645737
>>
>> You received this question notification because you asked the question.
>>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

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

Hi,

I actually do not reproduce your error when doing
>> ./bin/mg5_aMC script_contur_SM.txt

So my only suggestions would be to change your script to: (i.e. explicitly write when you finish a question to avoid problem with the automatic detection of the end of such question)

Cheers,

Olivier

# import model Neutral_scalar_CPeven_UFO
generate p p > a a Z, Z > mu+ mu- #QED=1 QCD=0 f0=1 #4 processes with 8 diagrams
add process p p > a a #QCD=2 QED=0 f0=1 #1 diagrams
add process p p > a a W+ #QED=1 QCD=0 f0=1 #4 diagrams
add process p p > a a W- #QED=1 QCD=0 f0=1 #4 diagrams
add process p p > a a j j #QED=2 f0=1 QCD=0 $ z w #120 processes with 396 diagrams
output TEST_Zaa_8TeV_contur_SM
launch TEST_Zaa_8TeV_contur_SM
#output TEST_Zaa_8TeV_contur_SM_noPhythia
#launch TEST_Zaa_8TeV_contur_SM_noPhythia
shower=pythia8
done
set ebeam1 4000.0
set ebeam2 4000.0
# set auto_ptj_mjj False # This is only for VBF
set nevents 1000.
done
#set Wphi 10.
#set f0w 1000.
#set f0g=3000.
#set f0b 1000.
#set f0h 1000.
#set mphi 1000.
# This is to write down total cross-sections
   launch TEST_Zaa_8TeV_contur_SM -i
  print_results --path=./TEST_Zaa_8TeV_contur_SM/XS_TEST_Zphi.txt --format=short
# launch TEST_Zaa_8TeV_contur_SM_noPhythia -i
# print_results --path=./TEST_Zaa_8TeV_contur_SM_noPhythia/XS_TEST_Zphi.txt --format=short

> On 3 Jul 2017, at 08:16, Olivier Mattelaer <email address hidden> wrote:
>
> Hi,
>
> Please either send me the file on my email or convert first the question to a bug (attachment are not allowed for questions).
>
> Cheers,
>
> Olivier
>
>> On 3 Jul 2017, at 07:53, Sijing Zhang <email address hidden> wrote:
>>
>> Question #645737 on MadGraph5_aMC@NLO changed:
>> https://answers.launchpad.net/mg5amcnlo/+question/645737
>>
>> Status: Answered => Open
>>
>> Sijing Zhang is still having a problem:
>> Hi Olivier,
>>
>> Here attached is my script. The command I'm using is:
>> ./bin/mg5_aMC script_contur_SM.txt
>> Maybe some issue I didn't realize, please point to me, if you find it.
>> Thanks a lot!
>>
>> Cheers,
>> Sijing
>>
>> On 2 July 2017 at 00:14, Olivier Mattelaer <
>> <email address hidden>> wrote:
>>
>>> Your question #645737 on MadGraph5_aMC@NLO changed:
>>> https://answers.launchpad.net/mg5amcnlo/+question/645737
>>>
>>> Status: Open => Answered
>>>
>>> Olivier Mattelaer proposed the following answer:
>>> Hi,
>>>
>>> This is really surprising. I have tested your file with both syntax, and I
>>> reproduce your error message when using the wrong syntax.
>>> So are you really sure that you are using the correct syntax?
>>>
>>> Otherwise, I would need you to tell me exactly what you do.
>>> Such that I can try to reproduce your bug even with the correct syntax.
>>> It might be useful that you send me your exact command file by mail to
>>> check if this is not a formatting issue (like \r\n for the end of the line)
>>>
>>> Cheers,
>>>
>>> Olivier
>>>
>>>
>>>> On 1 Jul 2017, at 23:33, Sijing Zhang <question645737@answers.
>>> launchpad.net> wrote:
>>>>
>>>> Question #645737 on MadGraph5_aMC@NLO changed:
>>>> https://answers.launchpad.net/mg5amcnlo/+question/645737
>>>>
>>>> Status: Answered => Open
>>>>
>>>> Sijing Zhang is still having a problem:
>>>> Hi Olivier,
>>>>
>>>> Thanks for explanation! But the comand I'm using is the one you
>>>> suggested. So what should I do? Thanks!
>>>>
>>>> Regards,
>>>> Sijing
>>>>
>>>> --
>>>> You received this question notification because you are an answer
>>>> contact for MadGraph5_aMC@NLO.
>>>
>>> --
>>> If this answers your question, please go to the following page to let us
>>> know that it is solved:
>>> https://answers.launchpad.net/mg5amcnlo/+question/645737/+
>>> confirm?answer_id=2
>>>
>>> If you still need help, you can reply to this email or go to the
>>> following page to enter your feedback:
>>> https://answers.launchpad.net/mg5amcnlo/+question/645737
>>>
>>> You received this question notification because you asked the question.
>>>
>>
>> --
>> You received this question notification because you are an answer
>> contact for MadGraph5_aMC@NLO.
>

Revision history for this message
Sijing Zhang (sijing) said :
#7

Hi Olivier,

My problem solved.Thanks a lot!

Cheers,
Sijing