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

Class AskRun

source code

              object --+                
                       |                
extended_cmd.OriginalCmd --+            
                           |            
       extended_cmd.BasicCmd --+        
                               |        
      extended_cmd.SmartQuestion --+    
                                   |    
          extended_cmd.ControlSwitch --+
                                       |
                                      AskRun

a class for the question on what to do on a madevent run

Instance Methods [hide private]
 
__init__(self, question, line_args=[], mode=None, force=False, *args, **opt)
to_control is a list of ('KEY': 'Choose the shower/hadronization program')
source code
 
check_available_module(self, options) source code
 
ans_parton(self, value=None)
None: means that the user type 'pythia' value: means that the user type pythia=value
source code
 
get_allowed_shower(self)
return valid entry for the shower switch
source code
 
set_default_shower(self) source code
 
check_value_shower(self, value)
check an entry is valid.
source code
 
ans_pythia(self, value=None)
None: means that the user type 'pythia' value: means that the user type pythia=value
source code
XX is the new key set by the user to a new value val_XX
consistency_shower_detector(val_XX, val_YY)
-> YY is another key -> return value should be None or "replace_YY"
source code
 
get_allowed_detector(self)
return valid entry for the switch
source code
 
set_default_detector(self) source code
 
ans_pgs(self, value=None)
None: means that the user type 'pgs' value: means that the user type pgs=value
source code
 
ans_delphes(self, value=None)
None: means that the user type 'delphes' value: means that the user type delphes=value
source code
XX is the new key set by the user to a new value val_XX
consistency_detector_shower(val_XX, val_YY)
-> YY is another key -> return value should be None or "replace_YY"
source code
 
get_allowed_analysis(self)
return valid entry for the shower switch
source code
 
check_analysis(self, value)
check an entry is valid.
source code
 
set_default_analysis(self)
initialise the switch for analysis
source code
 
get_allowed_madspin(self)
ON|OFF|onshell
source code
 
check_value_madspin(self, value)
handle alias and valid option not present in get_allowed_madspin
source code
 
set_default_madspin(self)
initialise the switch for madspin
source code
 
get_cardcmd_for_madspin(self, value)
set some command to run before allowing the user to modify the cards.
source code
 
get_allowed_reweight(self)
return the list of valid option for reweight=XXX
source code
 
set_default_reweight(self)
initialise the switch for reweight
source code

Inherited from extended_cmd.ControlSwitch: check_consistency, check_consistency_with_all, check_value, color_for_value, create_question, default, default_switch_for, do_help, get_allowed, get_cardcmd, is_case_sensitive, onecmd, postcmd, print_help_for_switch, print_options, question_formatting, remove_inconsistency, set_all_off, set_default_switch, set_switch, special_check_answer_in_input_file

Inherited from extended_cmd.SmartQuestion: __call__, cmdloop, complete_help, completedefault, completenames, emptyline, get_names, preloop, reask

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

Inherited from extended_cmd.OriginalCmd: columnize, parseline, postloop, precmd, print_topics

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

Static Methods [hide private]

Inherited from extended_cmd.BasicCmd: list_completion, path_completion, split_arg

Class Variables [hide private]
  to_control = [('shower', 'Choose the shower/hadronization prog...

Inherited from extended_cmd.ControlSwitch: bold, case_sensitive, green, quit_on, red, yellow

Inherited from extended_cmd.SmartQuestion: allowpath

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 extended_cmd.ControlSwitch: answer

Inherited from object: __class__

Method Details [hide private]

__init__(self, question, line_args=[], mode=None, force=False, *args, **opt)
(Constructor)

source code 

to_control is a list of ('KEY': 'Choose the shower/hadronization program')

Overrides: object.__init__
(inherited documentation)

check_value_shower(self, value)

source code 

check an entry is valid. return the valid entry in case of shortcut

check_analysis(self, value)

source code 

check an entry is valid. return the valid entry in case of shortcut


Class Variable Details [hide private]

to_control

Value:
[('shower', 'Choose the shower/hadronization program'),
 ('detector', 'Choose the detector simulation program'),
 ('analysis', 'Choose an analysis package (plot/convert)'),
 ('madspin', 'Decay onshell particles'),
 ('reweight', 'Add weights to events for new hypp.')]