![]() |
Belle II Software development
|
Public Member Functions | |
| __init__ (self, quantity_name, bin_spacing, bin_name, bin_unit=None, unit=None, outlier_z_score=None, contact='', plot_name=None, plot_title=None, min_required_entries=None, plot_name_prefix='', plot_name_postfix='', plot_title_postfix='', referenceFileName=None) | |
| analyse (self, bin_values, truths, estimates, which_plots=None, is_expert=None) | |
| contact (self) | |
| contact (self, contact) | |
| write (self, tDirectory=None) | |
Public Attributes | |
| quantity_name = quantity_name | |
| cached name of the quantity in the truth-classification analysis | |
| unit = unit or get_unit(quantity_name) | |
| cached measurement unit for this truth-classification analysis | |
| bin_spacing = bin_spacing | |
| cached value of the histogram bin spacing | |
| bin_name = bin_name | |
| cached value of the bin name | |
| bin_unit = bin_unit | |
| cached value of the bin measurement unit | |
| float | outlier_z_score = self.default_outlier_z_score |
| cached value of the Z-score (for outlier detection) | |
| int | min_required_entries = min_required_entries |
| cached value of the minimum number of entries | |
| plot_name = plot_name | |
| cached value of the base name of the plot | |
| plot_title = plot_title | |
| cached value of the plot title | |
| plot_name_prefix = plot_name_prefix or root_save_name(quantity_name) | |
| cached value of the prefix prepended to the plot name | |
| plot_name_postfix = plot_name_postfix | |
| cached value of the suffix appended to the plot name | |
| plot_title_postfix = plot_title_postfix | |
| cached value of the suffix appended to the plot title | |
| plots = collections.OrderedDict() | |
| cached value of the dictionary of plots to be created | |
| referenceFileName = referenceFileName | |
| cached value of the reference filename | |
| contact = self.contact | |
| Forward the contact to all plots by reassigning the contact. | |
Static Public Attributes | |
| float | default_outlier_z_score = 5.0 |
| default Z-score (for outlier detection) | |
| int | default_min_required_entries = 50 |
| default minimum number of entries | |
| str | default_plot_name = "{plot_name_prefix}_{subplot_name}{plot_name_postfix}" |
| default plot name | |
| str | default_plot_title = "{subplot_title} of {quantity_name}{plot_title_postfix}" |
| default plot title | |
| list | default_which_plots |
| default list of plots to create | |
| bool | default_is_expert = True |
| by default, create expert plots | |
Protected Attributes | |
| _contact = contact | |
| cached value of the contact person | |
Perform resolution analysis
Definition at line 25 of file resolution.py.
| __init__ | ( | self, | |
| quantity_name, | |||
| bin_spacing, | |||
| bin_name, | |||
| bin_unit = None, | |||
| unit = None, | |||
| outlier_z_score = None, | |||
| contact = '', | |||
| plot_name = None, | |||
| plot_title = None, | |||
| min_required_entries = None, | |||
| plot_name_prefix = '', | |||
| plot_name_postfix = '', | |||
| plot_title_postfix = '', | |||
| referenceFileName = None ) |
Performs a comparison of an estimated quantity to their truths by generating standardized validation plots.
Definition at line 44 of file resolution.py.
| analyse | ( | self, | |
| bin_values, | |||
| truths, | |||
| estimates, | |||
| which_plots = None, | |||
| is_expert = None ) |
Compares the concrete estimate to the truth and generates plots of the resolution
Parameters
----------
bin_values : array_like(float
The parameter used for binning
truths : array_like(float)
Sample of the true values
estimates : array_like(float)
Corresponding estimations
Definition at line 105 of file resolution.py.
| contact | ( | self | ) |
Get the contact person's name
Definition at line 241 of file resolution.py.
| contact | ( | self, | |
| contact ) |
Set the contact person's name
Definition at line 246 of file resolution.py.
| write | ( | self, | |
| tDirectory = None ) |
Write all validation plot to the given Root directory
Definition at line 252 of file resolution.py.
|
protected |
cached value of the contact person
Definition at line 98 of file resolution.py.
| bin_name = bin_name |
cached value of the bin name
Definition at line 70 of file resolution.py.
| bin_spacing = bin_spacing |
cached value of the histogram bin spacing
Definition at line 68 of file resolution.py.
| bin_unit = bin_unit |
cached value of the bin measurement unit
Definition at line 72 of file resolution.py.
| contact = self.contact |
Forward the contact to all plots by reassigning the contact.
Definition at line 238 of file resolution.py.
|
static |
by default, create expert plots
Definition at line 42 of file resolution.py.
|
static |
default minimum number of entries
Definition at line 31 of file resolution.py.
|
static |
default Z-score (for outlier detection)
Definition at line 29 of file resolution.py.
|
static |
default plot name
Definition at line 33 of file resolution.py.
|
static |
default plot title
Definition at line 35 of file resolution.py.
|
static |
default list of plots to create
Definition at line 37 of file resolution.py.
| int min_required_entries = min_required_entries |
cached value of the minimum number of entries
Definition at line 81 of file resolution.py.
| float outlier_z_score = self.default_outlier_z_score |
cached value of the Z-score (for outlier detection)
Definition at line 76 of file resolution.py.
| plot_name = plot_name |
cached value of the base name of the plot
Definition at line 86 of file resolution.py.
| plot_name_postfix = plot_name_postfix |
cached value of the suffix appended to the plot name
Definition at line 93 of file resolution.py.
| plot_name_prefix = plot_name_prefix or root_save_name(quantity_name) |
cached value of the prefix prepended to the plot name
Definition at line 91 of file resolution.py.
| plot_title = plot_title |
cached value of the plot title
Definition at line 88 of file resolution.py.
| plot_title_postfix = plot_title_postfix |
cached value of the suffix appended to the plot title
Definition at line 95 of file resolution.py.
| plots = collections.OrderedDict() |
cached value of the dictionary of plots to be created
Definition at line 100 of file resolution.py.
| quantity_name = quantity_name |
cached name of the quantity in the truth-classification analysis
Definition at line 64 of file resolution.py.
| referenceFileName = referenceFileName |
cached value of the reference filename
Definition at line 103 of file resolution.py.
| unit = unit or get_unit(quantity_name) |
cached measurement unit for this truth-classification analysis
Definition at line 66 of file resolution.py.