Package madgraph :: Package interface :: Module master_interface :: Class Switcher
[hide private]
[frames] | no frames]

Class Switcher

source code

object --+
         |
        Switcher
Known Subclasses:

Helping class containing all the switching routine

Instance Methods [hide private]
 
__init__(self, main='MadGraph', *args, **opt)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
setup(self, *args, **opts)
Function to initialize the interface when switched to it.
source code
 
debug_link_to_command(self)
redefine all the command to call directly the appropriate child
source code
 
do_add(self, line, *args, **opts) source code
 
do_check(self, line, *args, **opts) source code
 
do_generate(self, line, *args, **opts) source code
 
do_import(self, *args, **opts) source code
 
do_output(self, line, *args, **opts)
treat output aloha in order to use always the one in MG5
source code
 
check_output(self, arg, *args, **opts) source code
 
export(self, *args, **opts) source code
 
check_add(self, *args, **opts) source code
 
check_answer_in_input_file(self, *args, **opts) source code
 
check_check(self, *args, **opts) source code
 
check_define(self, *args, **opts) source code
 
check_decay_diagram(self, *args, **opts) source code
 
complete_decay_diagram(self, *args, **opts) source code
 
do_decay_diagram(self, *args, **opts) source code
 
help_decay_diagram(self, *args, **opts) source code
 
check_compute_widths(self, *args, **opts) source code
 
complete_compute_widths(self, *args, **opts) source code
 
do_compute_widths(self, *args, **opts) source code
 
help_compute_widths(self, *args, **opts) source code
 
check_display(self, *args, **opts) source code
 
check_draw(self, *args, **opts) source code
 
check_for_export_dir(self, *args, **opts) source code
 
check_generate(self, *args, **opts) source code
 
check_tutorial(self, *args, **opts) source code
 
check_history(self, *args, **opts) source code
 
check_import(self, *args, **opts) source code
 
check_install(self, *args, **opts) source code
 
check_launch(self, *args, **opts) source code
 
check_load(self, *args, **opts) source code
 
check_open(self, *args, **opts) source code
 
check_process_format(self, *args, **opts) source code
 
check_save(self, *args, **opts) source code
 
check_set(self, *args, **opts) source code
 
get_stored_line(self, *args, **opts) source code
 
complete_add(self, *args, **opts) source code
 
complete_switch(self, *args, **opts) source code
 
complete_check(self, *args, **opts) source code
 
complete_define(self, *args, **opts) source code
 
complete_display(self, *args, **opts) source code
 
complete_draw(self, *args, **opts) source code
 
complete_generate(self, *args, **opts) source code
 
complete_help(self, *args, **opts) source code
 
complete_history(self, *args, **opts) source code
 
complete_import(self, *args, **opts) source code
 
complete_install(self, *args, **opts) source code
 
complete_launch(self, *args, **opts) source code
 
complete_load(self, *args, **opts) source code
 
complete_open(self, *args, **opts) source code
 
complete_output(self, *args, **opts) source code
 
complete_save(self, *args, **opts) source code
 
complete_set(self, *args, **opts) source code
 
complete_tutorial(self, *args, **opts) source code
 
do_switch(self, *args, **opts)
Not in help
source code
 
do_EOF(self, *args, **opts) source code
 
do_define(self, *args, **opts) source code
 
do_display(self, *args, **opts) source code
 
do_exit(self, *args, **opts) source code
 
do_help(self, *args, **opts) source code
 
do_history(self, *args, **opts) source code
 
do_install(self, *args, **opts) source code
 
do_launch(self, line, *argss, **opts) source code
 
do_load(self, *args, **opts) source code
 
do_open(self, *args, **opts) source code
 
do_quit(self, *args, **opts) source code
 
do_save(self, *args, **opts) source code
 
do_set(self, *args, **opts) source code
 
do_tutorial(self, *args, **opts) source code
 
help_EOF(self, *args, **opts) source code
 
help_add(self, *args, **opts) source code
 
help_check(self, *args, **opts) source code
 
help_define(self, *args, **opts) source code
 
help_display(self, *args, **opts) source code
 
help_generate(self, *args, **opts) source code
 
help_help(self, *args, **opts) source code
 
help_history(self, *args, **opts) source code
 
help_import(self, *args, **opts) source code
 
help_install(self, *args, **opts) source code
 
help_launch(self, *args, **opts) source code
 
help_load(self, *args, **opts) source code
 
help_open(self, *args, **opts) source code
 
help_output(self, *args, **opts) source code
 
help_quit(self, *args, **opts) source code
 
help_save(self, *args, **opts) source code
 
help_set(self, *args, **opts) source code
 
help_tutorial(self, *args, **opts) source code
 
test_interface(self, *args, **opts) source code
 
set_configuration(self, *args, **opts) source code
 
check_customize_model(self, *args, **opts) source code
 
complete_customize_model(self, *args, **opts) source code
 
do_customize_model(self, *args, **opts) source code
 
help_customize_model(self, *args, **opts) source code

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

Static Methods [hide private]
 
extract_process_type(line)
Extract from a string what is the type of the computation.
source code
Class Variables [hide private]
  interface_names = {'MadGraph': ('MG5_aMC', <class 'madgraph.in...
  _switch_opts = ['aMC@NLO', 'MadGraph', 'MadLoop']
  current_interface = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, main='MadGraph', *args, **opt)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

setup(self, *args, **opts)

source code 

Function to initialize the interface when switched to it. It is not the same as __init__ as this latter functions would call its mother from madgraph_interface and this is only desirable for the first initialization when launching MG5

extract_process_type(line)
Static Method

source code 

Extract from a string what is the type of the computation. This returns a tuple (mode, option, pert_orders) where mode can be either 'NLO' or 'tree' and option 'all', 'real' or 'virt'.


Class Variable Details [hide private]

interface_names

Value:
{'MadGraph': ('MG5_aMC',
              <class 'madgraph.interface.madgraph_interface.MadGraphCm\
d'>),
 'MadLoop': ('MG5_aMC',
             <class 'madgraph.interface.loop_interface.LoopInterface'>\
),
 'aMC@NLO': ('MG5_aMC',
             <class 'madgraph.interface.amcatnlo_interface.aMCatNLOInt\
...