Package madgraph :: Package interface :: Module reweight_interface :: Class ReweightInterface
[hide private]
[frames] | no frames]

Class ReweightInterface

source code

                  object --+        
                           |        
       extended_cmd.CheckCmd --+    
                               |    
                  object --+   |    
                           |   |    
        extended_cmd.HelpCmd --+    
                               |    
                  object --+   |    
                           |   |    
    extended_cmd.CompleteCmd --+    
                               |    
              object --+       |    
                       |       |    
extended_cmd.OriginalCmd --+   |    
                           |   |    
       extended_cmd.BasicCmd --+    
                               |    
                extended_cmd.Cmd --+
                                   |
                                  ReweightInterface

Basic interface for reweighting operation

Nested Classes [hide private]

Inherited from extended_cmd.Cmd: ConfigurationError, InvalidCmd

Instance Methods [hide private]
 
__init__(self, *args, **opt)
initialize the interface with potentially an event_path
source code
 
do_import(self, inputfile, allow_madspin=False)
import the event file
source code
 
check_events(self)
Check some basic property of the events file
source code
 
complete_import(*args, **opt)
Complete the import command
source code
 
help_change(self)
help for change command
source code
 
do_change(self, line)
allow to define a second model/processes
source code
 
check_launch(self, args)
check the validity of the launch command
source code
 
help_launch(self)
help for the launch command
source code
 
get_weight_names(self)
return the various name for the computed weights
source code
 
do_launch(self, *args, **opt)
end of the configuration launched the code
source code
 
handle_param_card(self, model_line, args, type_rwgt) source code
 
do_set(self, line)
Not in help
source code
 
default(self, line, log=True)
Default action if line is not recognized
source code
 
write_reweighted_event(self, event, tag_name, **opt)
a function for running in multicore
source code
 
do_compute_widths(self, line) source code
 
change_kinematics(self, event) source code
 
calculate_weight(self, event)
space defines where to find the calculator (in multicore)
source code
 
calculate_nlo_weight(self, event) source code
 
calculate_matrix_element(self, event, hypp_id, scale2=0)
routine to return the matrix element
source code
 
terminate_fortran_executables(self, new_card_only=False)
routine to terminate all fortran executables
source code
 
do_quit(self, line)
Not in help: exit the mainloop()
source code
 
__del__(self) source code
 
adding_me(self, matrix_elements, path)
Adding one element to the list based on the matrix element
source code
 
create_standalone_tree_directory(self, *args, **opt)
generate the various directory for the weight evaluation
source code
 
create_standalone_virt_directory(self, *args, **opt)
generate the various directory for the weight evaluation
source code
 
create_standalone_directory(self, *args, **opt)
generate the various directory for the weight evaluation
source code
 
compile(self)
compile the code
source code
 
load_module(self, metag=1)
load the various module and load the associate information
source code
 
load_model(self, name, use_mg_default, complex_mass=False)
load the model
source code
 
save_to_pickle(self) source code
 
load_from_pickle(self, keep_name=False) source code

Inherited from extended_cmd.Cmd: ask, avoid_history_duplicate, check_answer_in_input_file, check_import, cmdloop, define_child_cmd_interface, do_EOF, do_display, do_exit, do_help, do_history, do_save, emptyline, error_handling, exec_cmd, get_history_header, get_stored_line, import_command_file, nice_config_error, nice_error_handling, nice_user_error, no_notification, onecmd, onecmd_orig, postcmd, postloop, precmd, preloop, run_cmd, stop_on_keyboard_stop, store_line, write_configuration

Inherited from extended_cmd.CheckCmd: check_history, check_save

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

Inherited from extended_cmd.CompleteCmd: complete_display, complete_history, 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]
 
get_LO_definition_from_NLO(proc, model, real_only=False)
return the LO definitions of the process corresponding to the born/real
source code
 
invert_momenta(p)
fortran/C-python do not order table in the same order
source code
 
rename_f2py_lib(Pdir, tag) source code

Inherited from extended_cmd.Cmd: timed_input

Inherited from extended_cmd.BasicCmd: list_completion, path_completion, split_arg

Class Variables [hide private]
  prompt = 'Reweight>'
  debug_output = 'Reweight_debug'
  rwgt_dir_possibility = ['rw_me', 'rw_me_second', 'rw_mevirt', ...
  dynamical_scale_warning = True

Inherited from extended_cmd.Cmd: PluginCandidate, allow_notification_center, config_debug, dirlist, error_debug, history_header, keyboard_stop_msg, next_possibility, onedir, plugin_path

Inherited from extended_cmd.Cmd (private): _display_opts

Inherited from extended_cmd.OriginalCmd: doc_header, doc_leader, identchars, intro, lastcmd, misc_header, nohelp, ruler, undoc_header, use_rawinput

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **opt)
(Constructor)

source code 

initialize the interface with potentially an event_path

Decorators:
  • @misc.mute_logger()
Overrides: object.__init__

do_import(self, inputfile, allow_madspin=False)

source code 

import the event file

Overrides: extended_cmd.Cmd.do_import

complete_import(*args, **opt)

source code 

Complete the import command

Decorators:
  • @extended_cmd.debug()

do_launch(self, *args, **opt)

source code 

end of the configuration launched the code

Decorators:
  • @misc.mute_logger()

default(self, line, log=True)

source code 

Default action if line is not recognized

Overrides: extended_cmd.OriginalCmd.default

do_quit(self, line)

source code 

Not in help: exit the mainloop()

Overrides: extended_cmd.Cmd.do_quit
(inherited documentation)

create_standalone_tree_directory(self, *args, **opt)

source code 

generate the various directory for the weight evaluation

Decorators:
  • @misc.mute_logger()

create_standalone_virt_directory(self, *args, **opt)

source code 

generate the various directory for the weight evaluation

Decorators:
  • @misc.mute_logger()

create_standalone_directory(self, *args, **opt)

source code 

generate the various directory for the weight evaluation

Decorators:
  • @misc.mute_logger()

compile(self)

source code 

compile the code

Overrides: extended_cmd.Cmd.compile

Class Variable Details [hide private]

rwgt_dir_possibility

Value:
['rw_me', 'rw_me_second', 'rw_mevirt', 'rw_mevirt_second']