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

Class InteractionList

source code

   object --+        
            |        
         list --+    
                |    
PhysicsObjectList --+
                    |
                   InteractionList

A class to store lists of interactionss.

Nested Classes [hide private]

Inherited from PhysicsObjectList: PhysicsObjectListError

Instance Methods [hide private]
 
is_valid_element(self, obj)
Test if object obj is a valid Interaction for the list.
source code
 
generate_ref_dict(self)
Generate the reference dictionaries from interaction list.
source code
 
generate_dict(self)
Generate a dictionary from interaction id to interaction.
source code
 
synchronize_interactions_with_particles(self, particle_dict)
Make sure that the particles in the interactions are those in the particle_dict, and that there are no interactions refering to particles that don't exist.
source code

Inherited from PhysicsObjectList: __init__, __str__, append

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, count, extend, index, insert, pop, remove, reverse, sort

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

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

is_valid_element(self, obj)

source code 

Test if object obj is a valid Interaction for the list.

Overrides: PhysicsObjectList.is_valid_element

generate_ref_dict(self)

source code 

Generate the reference dictionaries from interaction list. Return a list where the first element is the n>0 dictionary and the second one is n-1>1.

synchronize_interactions_with_particles(self, particle_dict)

source code 

Make sure that the particles in the interactions are those in the particle_dict, and that there are no interactions refering to particles that don't exist. To be called when the particle_dict is updated in a model.