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, run_id=None, merging_scale=None, accepted_types_order=[], consider_reweights='ALL', raw_labels=False, **opts)
Read one plot from a file_path or a stream.
source code
 
get_hist_names(self)
return a list of all the names of define histograms
source code
 
get_wgt_names(self)
return the list of all weights define in each histograms
source code
 
get(self, name)
return the HWU histograms related to a given name
source code
 
parse_histos_from_PY8_XML_stream(self, stream, run_id=None, merging_scale=None, accepted_types_order=[], consider_reweights='ALL', raw_labels=False)
Initialize the HwU histograms from an XML stream.
source code
 
retrieve_plots_from_XML_source(self, xml_node, selected_weights, ordered_weight_label_list, raw_labels=False)
Given an XML node and the selected weights and their ordered list, import all histograms from the specified XML node.
source code
 
output(self, path, format='gnuplot', number_of_ratios=-1, uncertainties=['scale', 'pdf', 'statitistical', 'merging_scale', 'alpsfact'], use_band=None, ratio_correlations=True, arg_string='', jet_samples_to_keep=None, auto_open=True, lhapdfconfig='lhapdf-config')
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', 'merging_scale', 'alpsfact'], use_band=None, ratio_correlations=True, jet_samples_to_keep=None, lhapdfconfig='lhapdf-config')
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, run_id=None, merging_scale=None, accepted_types_order=[], consider_reweights='ALL', raw_labels=False, **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. The option 'consider_reweights' selects whether one wants to include all the extra scale/pdf/merging variation weights. Possible values are 'ALL' or a list of the return types of the function get_HwU_wgt_label_type(). The option 'raw_labels' specifies that one wants to import the histogram data with no treatment of the weight labels at all (this is used for the matplotlib output).

Returns: new empty list
Overrides: object.__init__

parse_histos_from_PY8_XML_stream(self, stream, run_id=None, merging_scale=None, accepted_types_order=[], consider_reweights='ALL', raw_labels=False)

source code 

Initialize the HwU histograms from an XML stream. Only one run is used: the first one if run_id is None or the specified run otherwise. Accepted type order is a filter to select histograms of only a certain type. The option 'consider_reweights' selects whether one wants to include all the extra scale/pdf/merging variation weights. Possible values are 'ALL' or a list of the return types of the function get_HwU_wgt_label_type().

output(self, path, format='gnuplot', number_of_ratios=-1, uncertainties=['scale', 'pdf', 'statitistical', 'merging_scale', 'alpsfact'], use_band=None, ratio_correlations=True, arg_string='', jet_samples_to_keep=None, auto_open=True, lhapdfconfig='lhapdf-config')

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', 'merging_scale', 'alpsfact'], use_band=None, ratio_correlations=True, jet_samples_to_keep=None, lhapdfconfig='lhapdf-config')

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.