Interactive mode ignoring my number of events

Asked by Gilberto Tetlalmatzi on 2021-05-11

Dear Madgraph developers

I am trying to generate events avoiding the interactive interface but using a previous session generated through the interactive mode.

Thus, first in the interactive mode I generate a simple event such as

generate p p > w+ w-, (w+ > j j), (w- > e- ve~)
add process p p > w+ w-, (w+ > j j), (w- > mu- vm~)
output w+w-

then to produce particular sets of events I write a script, say WpWm.script with the following content

---------------------------------------------------------------------------------------------------------------
launch w+w- -i

launch run_01
set nevents 250000
set iseed 01
0

launch run_02
set nevents 250000
set iseed 02
0
--------------------------------------------------------------------------------------------------

this with the aim of producing two folders with 250000 events each and random seeds 01 and 02. However, Madgraph ignores my commands "set " and does 10000 events in each case. Could you please bring some insight on what could be happening?

Thanks!
Gilberto

Question information

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

What is the log?

Olivier

Revision history for this message
Gilberto Tetlalmatzi (gtx83) said :
#2

Hi Oliver

Not sure to which log file you are referring to. There are several in the directory

./SubProcesses/P1_qq_wpwm_wp_qq_wm_lvl/

however attached is the output to the screen during the run.

Cheers

Gilberto

________________________________
From: <email address hidden> <email address hidden> on behalf of Olivier Mattelaer <email address hidden>
Sent: 11 May 2021 13:35:40
To: Tetlalmatzi-Xolocotzi, Gilberto, Dr.
Subject: Re: [Question #697004]: Interactive mode ignoring my number of events

Your question #697004 on MadGraph5_aMC@NLO changed:
https://answers.launchpad.net/mg5amcnlo/+question/697004

    Status: Open => Answered

Olivier Mattelaer proposed the following answer:
What is the log?

Olivier

--
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/697004/+confirm?answer_id=0

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/697004

You received this question notification because you asked the question.

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

In this case the one in stdout.

Cheers,

Olivier

> On 11 May 2021, at 14:55, Gilberto Tetlalmatzi <email address hidden> wrote:
>
> Question #697004 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/697004
>
> Status: Answered => Open
>
> Gilberto Tetlalmatzi is still having a problem:
> Hi Oliver
>
> Not sure to which log file you are referring to. There are several in
> the directory
>
>
> ./SubProcesses/P1_qq_wpwm_wp_qq_wm_lvl/
>
>
> however attached is the output to the screen during the run.
>
>
> Cheers
>
> Gilberto
>
>
> ________________________________
> From: <email address hidden> <email address hidden> on behalf of Olivier Mattelaer <email address hidden>
> Sent: 11 May 2021 13:35:40
> To: Tetlalmatzi-Xolocotzi, Gilberto, Dr.
> Subject: Re: [Question #697004]: Interactive mode ignoring my number of events
>
> Your question #697004 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/697004
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> What is the log?
>
> Olivier
>
> --
> 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/697004/+confirm?answer_id=0
>
> 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/697004
>
> 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
Gilberto Tetlalmatzi (gtx83) said :
#4

Hi Oliver

The stdout information is as in the attachment.

Cheers

Gilberto

________________________________
From: <email address hidden> <email address hidden> on behalf of Olivier Mattelaer <email address hidden>
Sent: 11 May 2021 15:20:48
To: Tetlalmatzi-Xolocotzi, Gilberto, Dr.
Subject: Re: [Question #697004]: Interactive mode ignoring my number of events

Your question #697004 on MadGraph5_aMC@NLO changed:
https://answers.launchpad.net/mg5amcnlo/+question/697004

    Status: Open => Answered

Olivier Mattelaer proposed the following answer:
In this case the one in stdout.

Cheers,

Olivier

> On 11 May 2021, at 14:55, Gilberto Tetlalmatzi <email address hidden> wrote:
>
> Question #697004 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/697004
>
> Status: Answered => Open
>
> Gilberto Tetlalmatzi is still having a problem:
> Hi Oliver
>
> Not sure to which log file you are referring to. There are several in
> the directory
>
>
> ./SubProcesses/P1_qq_wpwm_wp_qq_wm_lvl/
>
>
> however attached is the output to the screen during the run.
>
>
> Cheers
>
> Gilberto
>
>
> ________________________________
> From: <email address hidden> <email address hidden> on behalf of Olivier Mattelaer <email address hidden>
> Sent: 11 May 2021 13:35:40
> To: Tetlalmatzi-Xolocotzi, Gilberto, Dr.
> Subject: Re: [Question #697004]: Interactive mode ignoring my number of events
>
> Your question #697004 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/697004
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> What is the log?
>
> Olivier
>
> --
> 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/697004/+confirm?answer_id=0
>
> 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/697004
>
> 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.

--
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/697004/+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/697004

You received this question notification because you asked the question.

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

Attachment are not allowed/going trough for question.
could you copy-paste it (or put it online somewhere)

Olivier

Revision history for this message
Gilberto Tetlalmatzi (gtx83) said :
#6

Hi Oliver

I found the problem, there were some missing 0 between the instructions, so the following works:

launch zw_bb_lnu -i

launch run_01
0
set iseed 01
set nevents 250000
0

launch run_02
0
set iseed 02
set nevents 250000
0

launch run_03
0
set iseed 03
set nevents 250000
0

launch run_04
0
set iseed 04
set nevents 250000
0

Cheers

Gilberto

________________________________
From: <email address hidden> <email address hidden> on behalf of Gilberto Tetlalmatzi <email address hidden>
Sent: 11 May 2021 16:50:47
To: Tetlalmatzi-Xolocotzi, Gilberto, Dr.
Subject: Re: [Question #697004]: Interactive mode ignoring my number of events

Your question #697004 on MadGraph5_aMC@NLO changed:
https://answers.launchpad.net/mg5amcnlo/+question/697004
[https://answers.launchpad.net/@@/launchpad.png]<https://answers.launchpad.net/mg5amcnlo/+question/697004>

Question #697004 : Questions : MadGraph5_aMC@NLO<https://answers.launchpad.net/mg5amcnlo/+question/697004>
answers.launchpad.net
Dear Madgraph developers I am trying to generate events avoiding the interactive interface but using a previous session generated through the interactive mode. Thus, first in the interactive mode I generate a simple event such as generate p p > w&#43; w-, (w&#43; > j j), (w- > e- ve~) add process p p > w&#43; w-, (w&#43; > j j), (w- > mu- vm~) output w&#43;w- then to produce particular sets of events I write a script, say WpWm.script with the following content ------------------------------------------...

    Status: Answered => Open

You are still having a problem:
Hi Oliver

The stdout information is as in the attachment.

Cheers

Gilberto

________________________________
From: <email address hidden> <email address hidden> on behalf of Olivier Mattelaer <email address hidden>
Sent: 11 May 2021 15:20:48
To: Tetlalmatzi-Xolocotzi, Gilberto, Dr.
Subject: Re: [Question #697004]: Interactive mode ignoring my number of events

Your question #697004 on MadGraph5_aMC@NLO changed:
https://answers.launchpad.net/mg5amcnlo/+question/697004
[https://answers.launchpad.net/@@/launchpad.png]<https://answers.launchpad.net/mg5amcnlo/+question/697004>

Question #697004 : Questions : MadGraph5_aMC@NLO<https://answers.launchpad.net/mg5amcnlo/+question/697004>
answers.launchpad.net
Dear Madgraph developers I am trying to generate events avoiding the interactive interface but using a previous session generated through the interactive mode. Thus, first in the interactive mode I generate a simple event such as generate p p > w&#43; w-, (w&#43; > j j), (w- > e- ve~) add process p p > w&#43; w-, (w&#43; > j j), (w- > mu- vm~) output w&#43;w- then to produce particular sets of events I write a script, say WpWm.script with the following content ------------------------------------------...

    Status: Open => Answered

Olivier Mattelaer proposed the following answer:
In this case the one in stdout.

Cheers,

Olivier

> On 11 May 2021, at 14:55, Gilberto Tetlalmatzi <email address hidden> wrote:
>
> Question #697004 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/697004
[https://answers.launchpad.net/@@/launchpad.png]<https://answers.launchpad.net/mg5amcnlo/+question/697004>

Question #697004 : Questions : MadGraph5_aMC@NLO<https://answers.launchpad.net/mg5amcnlo/+question/697004>
answers.launchpad.net
Dear Madgraph developers I am trying to generate events avoiding the interactive interface but using a previous session generated through the interactive mode. Thus, first in the interactive mode I generate a simple event such as generate p p > w&#43; w-, (w&#43; > j j), (w- > e- ve~) add process p p > w&#43; w-, (w&#43; > j j), (w- > mu- vm~) output w&#43;w- then to produce particular sets of events I write a script, say WpWm.script with the following content ------------------------------------------...

>
> Status: Answered => Open
>
> Gilberto Tetlalmatzi is still having a problem:
> Hi Oliver
>
> Not sure to which log file you are referring to. There are several in
> the directory
>
>
> ./SubProcesses/P1_qq_wpwm_wp_qq_wm_lvl/
>
>
> however attached is the output to the screen during the run.
>
>
> Cheers
>
> Gilberto
>
>
> ________________________________
> From: <email address hidden> <email address hidden> on behalf of Olivier Mattelaer <email address hidden>
> Sent: 11 May 2021 13:35:40
> To: Tetlalmatzi-Xolocotzi, Gilberto, Dr.
> Subject: Re: [Question #697004]: Interactive mode ignoring my number of events
>
> Your question #697004 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/697004
[https://answers.launchpad.net/@@/launchpad.png]<https://answers.launchpad.net/mg5amcnlo/+question/697004>

Question #697004 : Questions : MadGraph5_aMC@NLO<https://answers.launchpad.net/mg5amcnlo/+question/697004>
answers.launchpad.net
Dear Madgraph developers I am trying to generate events avoiding the interactive interface but using a previous session generated through the interactive mode. Thus, first in the interactive mode I generate a simple event such as generate p p > w&#43; w-, (w&#43; > j j), (w- > e- ve~) add process p p > w&#43; w-, (w&#43; > j j), (w- > mu- vm~) output w&#43;w- then to produce particular sets of events I write a script, say WpWm.script with the following content ------------------------------------------...

>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> What is the log?
>
> Olivier
>
> --
> 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/697004/+confirm?answer_id=0
>
> 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/697004
>
> 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.

--
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/697004/+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/697004

You received this question notification because you asked the question.

--
You received this question notification because you asked the question.

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

If you have missing 0 issue it means that you are not scripting in the correct way.
You should not use
./EXEC < my_file
but rather
./EXEC my_file

In the second case the code is much more robust and avoid issue with missing line

Revision history for this message
Gilberto Tetlalmatzi (gtx83) said :
#8

OK, thanks!

________________________________
From: <email address hidden> <email address hidden> on behalf of Olivier Mattelaer <email address hidden>
Sent: 11 May 2021 17:20:48
To: Tetlalmatzi-Xolocotzi, Gilberto, Dr.
Subject: Re: [Question #697004]: Interactive mode ignoring my number of events

Your question #697004 on MadGraph5_aMC@NLO changed:
https://answers.launchpad.net/mg5amcnlo/+question/697004

    Status: Open => Answered

Olivier Mattelaer proposed the following answer:
If you have missing 0 issue it means that you are not scripting in the correct way.
You should not use
./EXEC < my_file
but rather
./EXEC my_file

In the second case the code is much more robust and avoid issue with
missing line

--
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/697004/+confirm?answer_id=6

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/697004

You received this question notification because you asked the question.

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