Package madgraph :: Package core :: Module base_objects :: Class Model
[hide private]
[frames] | no frames]

Class Model

source code

object --+        
         |        
      dict --+    
             |    
 PhysicsObject --+
                 |
                Model
Known Subclasses:

A class to store all the model information.

Nested Classes [hide private]

Inherited from PhysicsObject: PhysicsObjectError

Instance Methods [hide private]
 
default_setup(self)
Function called to create and setup default values for all object properties
source code
 
filter(self, name, value)
Filter for model property values
source code
D[k] if k in D, else d
get(self, name)
Get the value of the property name.
source code
 
set(self, name, value)
Special set for particles and interactions - need to regenerate dictionaries.
source code
 
get_sorted_keys(self)
Return process property names as a nicely sorted list.
source code
 
get_particle(self, id)
Return the particle corresponding to the id
source code
 
get_interaction(self, id)
Return the interaction corresponding to the id
source code
 
get_coupling_orders(self)
Determine the coupling orders of the model
source code
 
get_order_hierarchy(self)
Set a default order hierarchy for the model if not set by the UFO.
source code
 
get_particles_hierarchy(self)
Returns the order hierarchies of the model and the particles which have interactions in at least this hierarchy (used in find_optimal_process_orders in MultiProcess diagram generation):
source code
 
get_max_WEIGHTED(self)
Return the maximum WEIGHTED order for any interaction in the model, for equivalent 3-particle vertices.
source code
 
check_majoranas(self)
Return True if there is fermion flow violation, False otherwise
source code
 
reset_dictionaries(self)
Reset all dictionaries and got_majoranas.
source code
 
pass_particles_name_in_mg_default(self)
Change the name of the particles such that all SM and MSSM particles follows the MG convention
source code
 
get_first_non_pdg(self)
Return the first positive number that is not a valid PDG code
source code
 
write_param_card(self)
Write out the param_card, and return as string.
source code

Inherited from 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

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

Static Methods [hide private]
 
load_default_name()
load the default for name convention
source code
Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

default_setup(self)

source code 

Function called to create and setup default values for all object properties

Overrides: PhysicsObject.default_setup
(inherited documentation)

filter(self, name, value)

source code 

Filter for model property values

Overrides: PhysicsObject.filter

get(self, name)

source code 

Get the value of the property name.

Returns: D[k] if k in D, else d
Overrides: dict.get

set(self, name, value)

source code 

Special set for particles and interactions - need to regenerate dictionaries.

Overrides: PhysicsObject.set

get_sorted_keys(self)

source code 

Return process property names as a nicely sorted list.

Overrides: PhysicsObject.get_sorted_keys

get_particles_hierarchy(self)

source code 

Returns the order hierarchies of the model and the particles which have interactions in at least this hierarchy (used in find_optimal_process_orders in MultiProcess diagram generation):

Check the coupling hierarchy of the model. Assign all particles to the different coupling hierarchies so that a particle is considered to be in the highest hierarchy (i.e., with lowest value) where it has an interaction.

get_max_WEIGHTED(self)

source code 

Return the maximum WEIGHTED order for any interaction in the model, for equivalent 3-particle vertices. Note that it can be fractional.

reset_dictionaries(self)

source code 

Reset all dictionaries and got_majoranas. This is necessary whenever the particle or interaction content has changed. If particles or interactions are set using the set routine, this is done automatically.