Package madgraph :: Package interface :: Module madevent_interface :: Class MadEventCmd
[hide private]
[frames] | no frames]

Class MadEventCmd

source code

                               object --+        
                                        |        
                         CheckValidForCmd --+    
                                            |    
                               CompleteForCmd --+
                                                |
                           object --+           |
                                    |           |
       common_run_interface.HelpToCmd --+       |
                                        |       |
                           object --+   |       |
                                    |   |       |
common_run_interface.CheckValidForCmd --+       |
                                        |       |
                       object --+       |       |
                                |       |       |
            extended_cmd.CheckCmd --+   |       |
                                    |   |       |
                       object --+   |   |       |
                                |   |   |       |
             extended_cmd.HelpCmd --+   |       |
                                    |   |       |
                       object --+   |   |       |
                                |   |   |       |
         extended_cmd.CompleteCmd --+   |       |
                                    |   |       |
                      cmd.Cmd --+   |   |       |
                                |   |   |       |
            extended_cmd.BasicCmd --+   |       |
                                    |   |       |
                     extended_cmd.Cmd --+       |
                                        |       |
        common_run_interface.CommonRunCmd --+   |
                                            |   |
                                  CmdExtended --+
                                                |
                                   object --+   |
                                            |   |
                                    HelpToCmd --+
                                                |
                               object --+       |
                                        |       |
           common_run_interface.HelpToCmd --+   |
                                            |   |
                               object --+   |   |
                                        |   |   |
    common_run_interface.CheckValidForCmd --+   |
                                            |   |
                           object --+       |   |
                                    |       |   |
                extended_cmd.CheckCmd --+   |   |
                                        |   |   |
                           object --+   |   |   |
                                    |   |   |   |
                 extended_cmd.HelpCmd --+   |   |
                                        |   |   |
                           object --+   |   |   |
                                    |   |   |   |
             extended_cmd.CompleteCmd --+   |   |
                                        |   |   |
                          cmd.Cmd --+   |   |   |
                                    |   |   |   |
                extended_cmd.BasicCmd --+   |   |
                                        |   |   |
                         extended_cmd.Cmd --+   |
                                            |   |
            common_run_interface.CommonRunCmd --+
                                                |
                                               MadEventCmd
Known Subclasses:

The command line processor of MadGraph

Nested Classes [hide private]

Inherited from CmdExtended: ConfigurationError, InvalidCmd

Instance Methods [hide private]
 
__init__(self, me_dir=None, options={}, *completekey, **stdin)
add information to the cmd
source code
 
pass_in_web_mode(self)
configure web data
source code
 
check_output_type(self, path)
Check that the output path is a valid madevent directory
source code
 
set_configuration(self, amcatnlo=False, final=True, **opt)
assign all configuration variable from file loop over the different config file if config_file not define
source code
 
do_add_time_of_flight(self, line) source code
 
do_banner_run(self, line)
Make a run from the banner file
source code
 
do_display(self, line, output=sys.stderr)
Display current internal status
source code
 
do_save(self, line, check=True, to_keep={})
Not in help: Save information to file
source code
 
do_edit_cards(self, line)
Advanced commands: Basic edition of the cards
source code
 
do_generate_events(self, line)
Main Commands: launch the full chain
source code
 
do_initMadLoop(self, line)
Compile and run MadLoop for a certain number of PS point so as to initialize MadLoop (setup the zero helicity and loop filter.)
source code
 
do_launch(self, line, *args, **opt)
Main Commands: exec generate_events for 2>N and calculate_width for 1>N
source code
 
print_results_in_shell(self, data)
Have a nice results prints in the shell, data should be of type: gen_crossxhtml.OneTagResults
source code
 
print_results_in_file(self, data, path, mode='w', format='full')
Have a nice results prints in the shell, data should be of type: gen_crossxhtml.OneTagResults
source code
 
do_calculate_decay_widths(self, line)
Main Commands: launch decay width calculation and automatic inclusion of calculated widths and BRs in the param_card.
source code
 
collect_decay_widths(self)
Collect the decay widths and calculate BRs for all particles, and put in param_card form.
source code
 
do_multi_run(self, line) source code
 
do_treatcards(self, line, mode=None, opt=None)
Advanced commands: create .inc files from param_card.dat/run_card.dat
source code
 
do_survey(self, line)
Advanced commands: launch survey for the current process
source code
 
pass_in_difficult_integration_mode(self)
be more secure for the integration to not miss it due to strong cut
source code
 
do_refine(self, line)
Advanced commands: launch survey for the current process
source code
 
do_combine_iteration(self, line)
Not in help: Combine a given iteration combine_iteration Pdir Gdir S|R step S is for survey R is for refine step is the iteration number (not very critical)
source code
 
do_combine_events(self, line)
Advanced commands: Launch combine events
source code
 
do_store_events(self, line)
Advanced commands: Launch store events
source code
 
do_create_gridpack(self, line)
Advanced commands: Create gridpack from present run
source code
 
do_pythia(self, line)
launch pythia
source code
 
do_remove(self, line)
Remove one/all run or only part of it
source code
 
do_plot(self, line)
Create the plot for a given run
source code
 
do_syscalc(self, line)
Evaluate systematics variation weights for a given run
source code
 
store_result(self)
tar the pythia results.
source code
 
launch_job(self, exe, cwd=None, stdout=None, argument=[], remaining=0, run_type='', mode=None, **opt) source code
 
find_madevent_mode(self)
Find if Madevent is in Group mode or not
source code
 
monitor(self, run_type='monitor', mode=None, html=False)
monitor the progress of running job
source code
 
configure_directory(self, html_opening=True)
All action require before any type of run
source code
 
get_Pdir(self)
get the list of Pdirectory if not yet saved.
source code
 
get_Gdir(self)
get the list of Gdirectory if not yet saved.
source code
 
set_run_name(self, name, tag=None, level='parton', reload_card=False, allow_new_tag=True)
define the run name, the run_tag, the banner and the results.
source code
 
find_model_name(self)
return the model name
source code
 
check_nb_events(self)
Find the number of event in the run_card, and check that this is not too large
source code
 
update_random(self)
change random number
source code
 
save_random(self)
save random number in appropirate file
source code
 
do_quit(self, *args, **opts)
Not in help: exit
source code
 
treat_CKKW_matching(self)
check for ckkw
source code
 
create_root_file(self, input='unweighted_events.lhe', output='unweighted_events.root')
create the LHE root file
source code
 
run_syscalc(self, mode='parton', event_path=None, output=None)
create the syscalc output
source code
 
ask_run_configuration(self, mode=None, args=[])
Ask the question when launching generate_events/multi_run
source code
 
ask_pythia_run_configuration(self, mode=None)
Ask the question when launching pythia
source code

Inherited from CompleteForCmd: complete_add_time_of_flight, complete_banner_run, complete_calculate_decay_widths, complete_combine_events, complete_create_gridpack, complete_delphes, complete_display, complete_generate_events, complete_history, complete_initMadLoop, complete_launch, complete_multi_run, complete_open, complete_pgs, complete_plot, complete_pythia, complete_refine, complete_remove, complete_set, complete_survey, complete_syscalc, complite_store

Inherited from CheckValidForCmd: check_add_time_of_flight, check_banner_run, check_calculate_decay_widths, check_combine_events, check_delphes, check_display, check_generate_events, check_history, check_import, check_initMadLoop, check_multi_run, check_open, check_pgs, check_plot, check_pythia, check_refine, check_remove, check_save, check_set, check_survey, check_syscalc, check_treatcards

Inherited from CmdExtended: get_history_header, nice_config_error, nice_error_handling, nice_user_error, postcmd, stop_on_keyboard_stop

Inherited from HelpToCmd: help_add_time_of_flight, help_banner_run, help_calculate_decay_widths, help_combine_events, help_create_gridpack, help_generate_events, help_import, help_initMadLoop, help_launch, help_multi_run, help_open, help_refine, help_remove, help_store_events, help_survey, help_syscalc, run_options_help

Inherited from common_run_interface.CommonRunCmd: add_error_log_in_html, ask_edit_cards, check_param_card, complete_check_events, complete_compute_widths, complete_decay_events, complete_print_results, complete_reweight, configure_run_mode, copy_lhapdf_set, create_plot, do_EOF, do_check_events, do_compute_widths, do_decay_events, do_delphes, do_exit, do_open, do_pgs, do_print_results, do_reweight, do_set, get_available_tag, get_characteristics, get_lhapdf_libdir, get_lhapdf_pdfsets_list, get_lhapdf_pdfsetsdir, get_lhapdf_version, get_pdf_input_filename, get_pid_final_initial_states, help_print_result, install_lhapdf_pdfset, keep_cards, link_lhapdf, load_results_db, post_set, run_hep2lhe, split_arg, update_make_opts, update_status

Inherited from common_run_interface.HelpToCmd: help_compute_widths, help_decay_events, help_delphes, help_pgs, help_plot, help_pythia, help_set, help_treatcards

Inherited from common_run_interface.CheckValidForCmd: check_check_events, check_compute_widths, check_decay_events, get_events_path

Inherited from extended_cmd.Cmd: ask, avoid_history_duplicate, check_answer_in_input_file, cmdloop, compile, default, define_child_cmd_interface, do_help, do_history, do_import, emptyline, error_handling, exec_cmd, get_stored_line, import_command_file, no_notification, onecmd, onecmd_orig, postloop, precmd, preloop, run_cmd, store_line, write_configuration

Inherited from extended_cmd.HelpCmd: help_EOF, help_display, help_help, help_history, help_quit, help_save

Inherited from extended_cmd.CompleteCmd: complete_save

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Inherited from extended_cmd.BasicCmd: complete, deal_multiple_categories, getTerminalSize, print_suggestions

Inherited from cmd.Cmd: columnize, complete_help, completedefault, completenames, get_names, parseline, print_topics

Static Methods [hide private]
 
update_width_in_param_card(decay_info, initial=None, output=None) source code
 
check_dir(path, default='')
check if the directory exists.
source code

Inherited from common_run_interface.CommonRunCmd: ask_edit_card_static, detect_card_type, find_available_run_name, get_lhapdf_pdfsets_list_static, install_lhapdf_pdfset_static, update_make_opts_full

Inherited from extended_cmd.Cmd: timed_input

Inherited from extended_cmd.BasicCmd: list_completion, path_completion

Class Variables [hide private]
  _run_options = ['--cluster', '--multicore', '--nb_core=', '--n...
  _generate_options = ['-f', '--laststep=parton', '--laststep=py...
  _calculate_decay_options = ['-f', '--accuracy=0.']
  _set_options = ['stdout_level', 'fortran_compiler', 'timeout']
  _plot_mode = ['all', 'parton', 'pythia', 'pgs', 'delphes', 'ch...
  _syscalc_mode = ['all', 'parton', 'pythia']
  _clean_mode = ['all', 'parton', 'pythia', 'pgs', 'delphes', 'c...
  _display_opts = ['run_name', 'options', 'variable', 'results']
  _save_opts = ['options']
  _initMadLoop_opts = ['-f', '-r', '--nPS=']
  _survey_options = {'accuracy': ('float', 0.1, 'Required accura...
  true = ['T', '.true.', True, 'true', 1, '1']
  web = False
  cluster_mode = 0
  queue = 'madgraph'
  nb_core = None
hash(x)
  next_possibility = {'calculate_decay_widths': ['calculate_deca...

Inherited from CmdExtended: config_debug, debug_output, error_debug, keyboard_stop_msg

Inherited from common_run_interface.CommonRunCmd: helporder, options_configuration, options_madevent, options_madgraph

Inherited from extended_cmd.Cmd: allow_notification_center, history_header

Inherited from cmd.Cmd: doc_header, doc_leader, identchars, intro, lastcmd, misc_header, nohelp, prompt, ruler, undoc_header, use_rawinput

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, me_dir=None, options={}, *completekey, **stdin)
(Constructor)

source code 

add information to the cmd

Overrides: cmd.Cmd.__init__

set_configuration(self, amcatnlo=False, final=True, **opt)

source code 

assign all configuration variable from file loop over the different config file if config_file not define

Overrides: common_run_interface.CommonRunCmd.set_configuration

do_display(self, line, output=sys.stderr)

source code 

Display current internal status

Overrides: extended_cmd.Cmd.do_display

do_save(self, line, check=True, to_keep={})

source code 

Not in help: Save information to file

Overrides: extended_cmd.Cmd.do_save

do_treatcards(self, line, mode=None, opt=None)

source code 

Advanced commands: create .inc files from param_card.dat/run_card.dat

Overrides: common_run_interface.CommonRunCmd.do_treatcards

store_result(self)

source code 

tar the pythia results. This is done when we are quite sure that the pythia output will not be use anymore

Overrides: common_run_interface.CommonRunCmd.store_result

check_dir(path, default='')
Static Method

source code 

check if the directory exists. if so return the path otherwise the default

do_quit(self, *args, **opts)

source code 

Not in help: exit

Overrides: extended_cmd.Cmd.do_quit
(inherited documentation)

Class Variable Details [hide private]

_run_options

Value:
['--cluster', '--multicore', '--nb_core=', '--nb_core=2', '-c', '-m']

_generate_options

Value:
['-f',
 '--laststep=parton',
 '--laststep=pythia',
 '--laststep=pgs',
 '--laststep=delphes']

_plot_mode

Value:
['all', 'parton', 'pythia', 'pgs', 'delphes', 'channel', 'banner']

_clean_mode

Value:
['all', 'parton', 'pythia', 'pgs', 'delphes', 'channel', 'banner']

_survey_options

Value:
{'accuracy': ('float', 0.1, 'Required accuracy'),
 'gridpack': ('str', '.false.', 'Gridpack generation'),
 'iterations': ('int', 5, 'Number of iterations'),
 'points': ('int', 1000, 'Number of points for first iteration')}

next_possibility

Value:
{'calculate_decay_widths': ['calculate_decay_widths [OPTIONS]',
                            'generate_events [OPTIONS]'],
 'combine_events': ['store'],
 'delphes': ['generate_events [OPTIONS]', 'multi_run [OPTIONS]'],
 'generate_events': ['generate_events [OPTIONS]',
                     'multi_run [OPTIONS]',
                     'pythia',
                     'pgs',
...