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 --+   |       |
                                    |   |       |
                   object --+       |   |       |
                            |       |   |       |
     extended_cmd.OriginalCmd --+   |   |       |
                                |   |   |       |
            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 --+   |   |
                                        |   |   |
                       object --+       |   |   |
                                |       |   |   |
         extended_cmd.OriginalCmd --+   |   |   |
                                    |   |   |   |
                extended_cmd.BasicCmd --+   |   |
                                        |   |   |
                         extended_cmd.Cmd --+   |
                                            |   |
            common_run_interface.CommonRunCmd --+
                                                |
                                               MadEventCmd
Known Subclasses:

The command line processor of Mad Graph

Nested Classes [hide private]
  asking_for_run
a class for the question on what to do on a madevent run
  action_switcher
a class for the question on what to do on a madevent run

Inherited from CmdExtended: ConfigurationError, InvalidCmd

Inherited from common_run_interface.CommonRunCmd: RunWebHandling

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.stdout)
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_restart_gridpack(self, line)
syntax restart_gridpack --precision=1.0 --restart_zero collect the result of the current run and relaunch each channel not completed or optionally a completed one with a precision worse than a threshold (and/or the zero result channel)
source code
 
do_generate_events(self, line)
Main Commands: launch the full chain
source code
 
run_generate_events(obj, *args, **opts) 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
 
correct_bias(self)
check the first event and correct the weight by the bias and correct the cross-section.
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_shower(self, line)
launch the shower
source code
 
do_madanalysis5_parton(self, line)
launch MadAnalysis5 at the parton level.
source code
 
setup_Pythia8RunAndCard(self, PY8_Card, run_type)
Setup the Pythia8 Run environment and card.
source code
 
do_pythia8(self, line)
launch pythia8
source code
 
parse_PY8_log_file(self, log_file_path)
Parse a log file to extract number of event and cross-section.
source code
 
extract_cross_sections_from_DJR(self, djr_output)
Extract cross-sections from a djr XML output.
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_Gdir(self, Pdir=None, symfact=None)
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
 
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, pythia_version=6, banner=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_madanalysis5_parton, complete_multi_run, complete_open, complete_pgs, complete_plot, complete_pythia, complete_pythia8, complete_refine, complete_remove, complete_set, complete_shower, 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_display, check_generate_events, check_history, check_import, check_initMadLoop, check_multi_run, check_open, check_pgs, check_plot, check_pythia, check_pythia8, 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_pythia, help_pythia8, help_refine, help_remove, help_restart_gridpack, help_store_events, help_survey, help_syscalc, run_options_help

Inherited from common_run_interface.CommonRunCmd: __del__, add_error_log_in_html, ask_edit_cards, ask_madanalysis5_run_configuration, check_madanalysis5, check_param_card, complete_check_events, complete_compute_widths, complete_decay_events, complete_madanalysis5_hadron, complete_print_results, complete_reweight, complete_systematics, configure_run_mode, copy_lhapdf_set, create_plot, do_EOF, do_check_events, do_compute_widths, do_decay_events, do_delphes, do_exit, do_madanalysis5_hadron, do_open, do_pgs, do_print_results, do_reweight, do_set, do_systematics, find_model_name, gen_card_html, generate_Pythia8_HwU_plots, get_Pdir, get_available_tag, get_characteristics, get_lhapdf_libdir, get_lhapdf_pdfsets_list, get_lhapdf_pdfsetsdir, get_lhapdf_version, get_model, get_pdf_input_filename, get_pid_final_initial_states, help_print_result, help_systematics, install_lhapdf_pdfset, keep_cards, link_lhapdf, load_results_db, make_make_all_html_results, post_set, run_hep2lhe, run_madanalysis5, split_arg, store_scan_result, update_make_opts, update_status, write_RunWeb

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

Inherited from common_run_interface.CheckValidForCmd: check_check_events, check_compute_widths, check_decay_events, check_delphes, 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 extended_cmd.BasicCmd: complete, deal_multiple_categories, getTerminalSize, print_suggestions, set_readline_completion_display_matches_hook

Inherited from extended_cmd.OriginalCmd: columnize, complete_help, completedefault, completenames, get_names, parseline, print_topics

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

Static Methods [hide private]
 
update_width_in_param_card(decay_info, initial=None, output=None) source code
 
mg5amc_py8_interface_consistency_warning(options)
Check the consistency of the mg5amc_py8_interface installed with the current MG5 and Pythia8 versions.
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_MadAnalysis5_interpreter, get_lhapdf_pdfsets_list_static, install_lhapdf_pdfset_static, runMA5, static_check_param_card, static_compute_widths, update_make_opts_full, writeRunWeb

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.']
  _interfaced_showers = ['pythia', 'pythia8']
  _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, sleep_for_error

Inherited from extended_cmd.Cmd: PluginCandidate, allow_notification_center, dirlist, history_header, onedir, plugin_path

Inherited from extended_cmd.OriginalCmd: 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: object.__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.stdout)

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

run_generate_events(obj, *args, **opts)

source code 
Decorators:
  • @common_run.scanparamcardhandling()

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

correct_bias(self)

source code 

check the first event and correct the weight by the bias and correct the cross-section. If the event do not have the bias tag it means that the bias is one modifying the cross-section/shape so we have nothing to do

setup_Pythia8RunAndCard(self, PY8_Card, run_type)

source code 

Setup the Pythia8 Run environment and card. In particular all the process and run specific parameters of the card are automatically set here. This function returns the path where HEPMC events will be output, if any.

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

configure_directory(self, html_opening=True)

source code 

All action require before any type of run

Overrides: common_run_interface.CommonRunCmd.configure_directory

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',
...