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)
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
 
detect_special_parameters(self)
return the list of (name of) parameter which are zero
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
 
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

Inherited from model_reader.ModelReader: set_parameters_and_couplings

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

Inherited from madgraph.core.base_objects.Model: add_param, 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__, __init__, __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]

Inherited from madgraph.core.base_objects.Model: load_default_name

Class Variables [hide private]

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)

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

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)