survey option ?

Asked by Lianyou SHAN

Dear Expert,

By
./bin/generate < opt.txt
I can set the option between done/run/para where opt.txt has only one line with 0 or 1 or 2.

Now I wonder what format of opt.txt can I put to have option like
-iteration=10 -accuracy=0.01 -points=2000

Thanks and best regards !

Lian-You

Question information

Language:
English Edit question
Status:
Answered
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

Dear Lian-You,

> ./bin/generate < opt.txt
> I can set the option between done/run/para where opt.txt has only
> one line with 0 or 1 or 2.

Few questions first:
1) I suppose that you mean "./bin/generate_events < opt.txt" (we
don't have script generate)
2) Which version of MG did you use. The above syntax will not work
since 1.4.0. The equivalent syntax with no piping is still working:
./bin/generate_events 0 test
(if opt.txt was containing the line "0 test").

> Now I wonder what format of opt.txt can I put to have option like
> -iteration=10 -accuracy=0.01 -points=2000

Note that you need at least version 1.4.0 for doing this.
But those options are not options of generate_events script but survey
script.

So you need to use the script ./bin/madevent
by typing this command, you will start an interactive session
(equivalent to the one of ./bin/mg5)

then you have access to the function survey with the associate options
that you point above.
survey --iterations=10 --accuracy=0.01 --points=2000
(not the correct syntax: presence of "--" for prefixes and a "s" to
iteration)

after that you can continue with refine,... (the "help" command
indicates you what is the standard next command to do to "mimick"
generate_events.

For example after a survey:
MGME5>help

Documented commands (type help <topic>):
========================================
EOF display history plot save
banner_run exit multi_run pythia set
calculate_decay_widths generate_events open quit shell
delphes help pgs remove

Advanced commands (type help <topic>):
======================================
combine_events create_gridpack import refine store_events survey

Contextual Help
===============
The following command(s) may be useful in order to continue.
  refine

and the last line indicates that usually the next command after survey
is refine (see help refine to see the exact syntax)

When you have finished to test, you can write a file with all the
command that you have used ("history PATH" can do that for you if you
want)
and then you can run this list of command by typing ./bin/madevent PATH

Cheers,

Olivier

On Jun 28, 2012, at 5:11 AM, Lianyou SHAN wrote:

> New question #201706 on MadGraph5:
> https://answers.launchpad.net/madgraph5/+question/201706
>
> Dear Expert,
>
> By
> ./bin/generate < opt.txt
> I can set the option between done/run/para where opt.txt has only
> one line with 0 or 1 or 2.
>
> Now I wonder what format of opt.txt can I put to have option like
> -iteration=10 -accuracy=0.01 -points=2000
>
> Thanks and best regards !
>
> Lian-You
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Can you help with this problem?

Provide an answer of your own, or ask Lianyou SHAN for more information if necessary.

To post a message you must log in.