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

Class LegList

source code

   object --+        
            |        
         list --+    
                |    
PhysicsObjectList --+
                    |
                   LegList

List of Leg objects

Nested Classes [hide private]

Inherited from PhysicsObjectList: PhysicsObjectListError

Instance Methods [hide private]
 
is_valid_element(self, obj)
Test if object obj is a valid Leg for the list.
source code
 
from_group_elements(self)
Return all elements which have 'from_group' True
source code
 
minimum_one_from_group(self)
Return True if at least one element has 'from_group' True
source code
 
minimum_two_from_group(self)
Return True if at least two elements have 'from_group' True
source code
 
can_combine_to_1(self, ref_dict_to1)
If has at least one 'from_group' True and in ref_dict_to1, return the return list from ref_dict_to1, otherwise return False
source code
 
can_combine_to_0(self, ref_dict_to0, is_decay_chain=False)
If has at least two 'from_group' True and in ref_dict_to0,
source code
 
get_outgoing_id_list(self, model)
Returns the list of ids corresponding to the leglist with all particles outgoing
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 Leg for the list.

Overrides: PhysicsObjectList.is_valid_element

can_combine_to_0(self, ref_dict_to0, is_decay_chain=False)

source code 

If has at least two 'from_group' True and in ref_dict_to0,

return the vertex (with id from ref_dict_to0), otherwise return None

If is_decay_chain = True, we only allow clustering of the initial leg, since we want this to be the last wavefunction to be evaluated.