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

Class HwUList

source code

              object --+        
                       |        
                    list --+    
                           |    
histograms_PhysicsObjectList --+
                               |
                              HwUList

A class implementing features related to a list of Hwu Histograms.

Nested Classes [hide private]

Inherited from histograms_PhysicsObjectList: PhysicsObjectListError

Instance Methods [hide private]
 
is_valid_element(self, obj)
Test wether specified object is of the right type for this list.
source code
new empty list
__init__(self, file_path, weight_header=None, accepted_types_order=[], **opts)
Read one plot from a file_path or a stream.
source code
 
output(self, path, format='gnuplot', number_of_ratios=-1, uncertainties=['scale', 'pdf', 'statitistical'], ratio_correlations=True, arg_string='')
Ouput this histogram to a file, stream or string if path is kept to None.
source code
 
output_group(self, HwU_out, gnuplot_out, block_position, HwU_name, number_of_ratios=-1, uncertainties=['scale', 'pdf', 'statitistical'], ratio_correlations=True)
This functions output a single group of histograms with either one histograms untyped (i.e.
source code

Inherited from histograms_PhysicsObjectList: __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]
  number_line_colors_defined = 8

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

is_valid_element(self, obj)

source code 

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

Overrides: histograms_PhysicsObjectList.is_valid_element

__init__(self, file_path, weight_header=None, accepted_types_order=[], **opts)
(Constructor)

source code 

Read one plot from a file_path or a stream. This constructor reads all plots specified in target file. File_path can be a path or a stream in the argument. The option weight_header specifies an ordered list of weight names to appear in the file or stream specified. It accepted_types_order is empty, no filter is applied, otherwise only histograms of the specified types will be kept, and in this specified order for a given identical title.

Returns: new empty list
Overrides: object.__init__

output(self, path, format='gnuplot', number_of_ratios=-1, uncertainties=['scale', 'pdf', 'statitistical'], ratio_correlations=True, arg_string='')

source code 

Ouput this histogram to a file, stream or string if path is kept to None. The supported format are for now. Chose whether to print the header or not.

output_group(self, HwU_out, gnuplot_out, block_position, HwU_name, number_of_ratios=-1, uncertainties=['scale', 'pdf', 'statitistical'], ratio_correlations=True)

source code 

This functions output a single group of histograms with either one histograms untyped (i.e. type=None) or two of type 'NLO' and 'LO' respectively.