Package models :: Module import_ufo :: Class RestrictModel
[hide private]
[frames] | no frames]

Class RestrictModel

source code

                          object --+                    
                                   |                    
                                dict --+                
                                       |                
madgraph.core.base_objects.PhysicsObject --+            
                                           |            
            madgraph.core.base_objects.Model --+        
                                               |        
       madgraph.loop.loop_base_objects.LoopModel --+    
                                                   |    
                            model_reader.ModelReader --+
                                                       |
                                                      RestrictModel

A class for restricting a model for a given param_card. rules applied:

Nested Classes [hide private]

Inherited from madgraph.core.base_objects.PhysicsObject: PhysicsObjectError

Instance Methods [hide private]
 
default_setup(self)
define default value
source code
 
restrict_model(self, param_card, rm_parameter=True, keep_external=False, complex_mass_scheme=None)
apply the model restriction following param_card.
source code
 
locate_coupling(self)
create a dict couplings_name -> vertex or (particle, counterterm_key)
source code
 
detect_identical_couplings(self, strict_zero=False)
return a list with the name of all vanishing couplings
source code
 
get_coupling_order(self, cname)
return the coupling order associated to a coupling
source code
 
detect_special_parameters(self)
return the list of (name of) parameter which are zero
source code
 
apply_conditional_simplifications(self, modified_params, modified_couplings)
Apply the conditional statement simplifications for parameters and couplings detected by 'simplify_conditional_statements'.
source code
 
detect_conditional_statements_simplifications(self, model_definitions, objects=['couplings', 'parameters'])
Simplifies the 'if' statements in the pythonic UFO expressions of parameters using the default variables specified in the restrict card.
source code
 
detect_identical_parameters(self)
return the list of tuple of name of parameter with the same input value
source code
 
merge_iden_couplings(self, couplings)
merge the identical couplings in the interactions and particle counterterms
source code
 
get_param_block(self)
return the list of block defined in the param_card
source code
 
merge_iden_parameters(self, parameters, keep_external=False)
merge the identical parameters given in argument.
source code
 
remove_interactions(self, zero_couplings)
remove the interactions and particle counterterms associated to couplings
source code
 
remove_couplings(self, couplings) source code
 
fix_parameter_values(self, zero_parameters, one_parameters, simplify=True, keep_external=False)
Remove all instance of the parameters in the model and replace it by zero when needed.
source code
 
optimise_interaction(self, interaction) source code
 
add_merge_lorentz(self, names)
add a lorentz structure which is the sume of the list given above
source code
 
add_lorentz(self, name, spin, struct, formfact=None)
adding lorentz structure to the current model
source code

Inherited from model_reader.ModelReader: get_mass, get_width, need_slha2, set_parameters_and_couplings

Inherited from madgraph.loop.loop_base_objects.LoopModel: __init__, actualize_dictionaries, filter, get_sorted_keys

Inherited from madgraph.core.base_objects.Model: add_param, change_electroweak_mode, change_mass_to_complex_scheme, change_parameter_name_with_prefix, check_majoranas, create_lorentz_dict, create_name2part, get, get_coupling_orders, get_first_non_pdg, get_interaction, get_lorentz, get_max_WEIGHTED, get_nflav, get_order_hierarchy, get_parameter, get_particle, get_particles_hierarchy, pass_particles_name_in_mg_default, reset_dictionaries, set, write_param_card

Inherited from madgraph.core.base_objects.PhysicsObject: __getitem__, __repr__, __str__, is_valid_prop

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __setitem__, __sizeof__, clear, copy, fromkeys, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Static Methods [hide private]
 
get_new_coupling_name(main, coupling, value, coeff)
We have main == coeff * coupling coeff is only +1 or -1 main can be either GC_X or -GC_X coupling can be either GC_Y or -GC_Y value is either GC_Y or -GC_Y the return is either GC_X or -GC_X such that we have value == OUTPUT
source code

Inherited from madgraph.core.base_objects.Model: load_default_name

Class Variables [hide private]

Inherited from madgraph.core.base_objects.Model: mg5_name

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

default_setup(self)

source code 

define default value

Overrides: madgraph.core.base_objects.PhysicsObject.default_setup

restrict_model(self, param_card, rm_parameter=True, keep_external=False, complex_mass_scheme=None)

source code 

apply the model restriction following param_card. rm_parameter defines if the Zero/one parameter are removed or not from the model. keep_external if the param_card need to be kept intact

apply_conditional_simplifications(self, modified_params, modified_couplings)

source code 

Apply the conditional statement simplifications for parameters and couplings detected by 'simplify_conditional_statements'. modified_params (modified_couplings) are list of tuples (a,b) with a parameter (resp. coupling) instance and b is the simplified expression.

detect_conditional_statements_simplifications(self, model_definitions, objects=['couplings', 'parameters'])

source code 

Simplifies the 'if' statements in the pythonic UFO expressions of parameters using the default variables specified in the restrict card. It returns a list of objects (parameters or couplings) and the new expression that they should take. Model definitions include all definitons of the model functions and parameters.

merge_iden_parameters(self, parameters, keep_external=False)

source code 

merge the identical parameters given in argument. keep external force to keep the param_card untouched (up to comment)