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

Class Interaction

source code

object --+        
         |        
      dict --+    
             |    
 PhysicsObject --+
                 |
                Interaction

The interaction object containing the whole set of information 
required to univocally characterize a given type of physical interaction: 

particles: a list of particle ids
color: a list of string describing all the color structures involved
lorentz: a list of variable names describing all the Lorentz structure
         involved
couplings: dictionary listing coupling variable names. The key is a
           2-tuple of integers referring to color and Lorentz structures
orders: dictionary listing order names (as keys) with their value

Nested Classes [hide private]

Inherited from PhysicsObject: PhysicsObjectError

Instance Methods [hide private]
 
default_setup(self)
Default values for all properties
source code
 
filter(self, name, value)
Filter for valid interaction property values.
source code
 
get_sorted_keys(self)
Return particle property names as a nicely sorted list.
source code
 
generate_dict_entries(self, ref_dict_to0, ref_dict_to1)
Add entries corresponding to the current interactions to the reference dictionaries (for n>0 and n-1>1)
source code
 
get_WEIGHTED_order(self, model)
Get the WEIGHTED order for this interaction, for equivalent 3-particle vertex.
source code
 
__str__(self)
String representation of an interaction.
source code

Inherited from PhysicsObject: __getitem__, __init__, __repr__, get, is_valid_prop, set

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__

Class Variables [hide private]
  sorted_keys = ['id', 'particles', 'color', 'lorentz', 'couplin...

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

default_setup(self)

source code 

Default values for all properties

Overrides: PhysicsObject.default_setup

filter(self, name, value)

source code 

Filter for valid interaction property values.

Overrides: PhysicsObject.filter

get_sorted_keys(self)

source code 

Return particle property names as a nicely sorted list.

Overrides: PhysicsObject.get_sorted_keys

get_WEIGHTED_order(self, model)

source code 

Get the WEIGHTED order for this interaction, for equivalent 3-particle vertex. Note that it can be fractional.

__str__(self)
(Informal representation operator)

source code 

String representation of an interaction. Outputs valid Python with improved format. Overrides the PhysicsObject __str__ to only display PDG code of involved particles.

Overrides: object.__str__

Class Variable Details [hide private]

sorted_keys

Value:
['id', 'particles', 'color', 'lorentz', 'couplings', 'orders']