Package madgraph :: Package various :: Module histograms :: Class BinList
[hide private]
[frames] | no frames]

Class BinList

source code

              object --+        
                       |        
                    list --+    
                           |    
histograms_PhysicsObjectList --+
                               |
                              BinList

A class implementing features related to a list of Bins.

Nested Classes [hide private]

Inherited from histograms_PhysicsObjectList: PhysicsObjectListError

Instance Methods [hide private]
new empty list
__init__(self, list=[], bin_range=None, weight_labels=None)
Initialize a list of Bins.
source code
 
is_valid_element(self, obj)
Test whether specified object is of the right type for this list.
source code
 
__setattr__(self, name, value)
x.__setattr__('name', value) <==> x.name = value
source code
 
append(self, object)
Appends an element, but test if valid before.
source code
 
nice_string(self, short=True)
Nice representation of this BinList.
source code

Inherited from histograms_PhysicsObjectList: __str__

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__, __subclasshook__

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, list=[], bin_range=None, weight_labels=None)
(Constructor)

source code 

Initialize a list of Bins. It is possible to define the range as a list of three floats: [min_x, max_x, bin_width]

Returns: new empty list
Overrides: object.__init__

is_valid_element(self, obj)

source code 

Test whether specified object is of the right type for this list.

Overrides: histograms_PhysicsObjectList.is_valid_element

__setattr__(self, name, value)

source code 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__
(inherited documentation)

append(self, object)

source code 

Appends an element, but test if valid before.

Overrides: list.append