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

Class PhysicsObjectList

source code

object --+    
         |    
      list --+
             |
            PhysicsObjectList
Known Subclasses:

A class to store lists of physics object.

Nested Classes [hide private]
  PhysicsObjectListError
Exception raised if an error occurs in the definition or execution of a physics object list.
Instance Methods [hide private]
new list
__init__(self, init_list=None)
Creates a new particle list object.
source code
 
append(self, object)
Appends an element, but test if valid before.
source code
 
is_valid_element(self, obj)
Test if object obj is a valid element for the list.
source code
 
__str__(self)
String representation of the physics object list object.
source code

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]

__init__(self, init_list=None)
(Constructor)

source code 

Creates a new particle list object. If a list of physics object is given, add them.

Returns: new list
Overrides: object.__init__

append(self, object)

source code 

Appends an element, but test if valid before.

Overrides: list.append

__str__(self)
(Informal representation operator)

source code 

String representation of the physics object list object. Outputs valid Python with improved format.

Overrides: object.__str__