Belle II Software development
|
Public Member Functions | |
def | __init__ (self, filename, label=None, color_index=0, additional_information=None) |
def | get_figure_of_merits (self) |
def | get_figures_of_merit_latex (self) |
def | plot_efficiency_point (self) |
def | grouped_by_pt_data (self, mc_data=None) |
def | plot (self, data_x, data_y, loc=4, yerr=None) |
def | plot_finding_efficiency (self, data=None) |
def | plot_hit_efficiency (self, data=None) |
def | print_useful_information (self) |
def | append_to_dataframe (self, df) |
Static Public Member Functions | |
def | from_calculations (calculations, key="output_file_name", parameter_part=None) |
Public Attributes | |
filename | |
The root filename. | |
pr_data | |
The pr data. | |
mc_data | |
the mc data | |
mc_prompts | |
the mc prompt data | |
pr_prompts | |
the pr prompt data | |
label | |
the label | |
color | |
the color index | |
finding_efficiency | |
the finding efficiency | |
hit_efficiency | |
the hit efficiency | |
fake_rate | |
the fake rate | |
clone_rate | |
the clone rate | |
additional_information | |
the additional information | |
This class represents a loaded validation root file. It has methods for plotting the typically needed graphs.
Definition at line 15 of file root_handler.py.
def __init__ | ( | self, | |
filename, | |||
label = None , |
|||
color_index = 0 , |
|||
additional_information = None |
|||
) |
Create a new validation result from the given filename. Additional options for plotting (e.g. color or label) can be given.
Definition at line 18 of file root_handler.py.
def append_to_dataframe | ( | self, | |
df | |||
) |
Append the main results to a already consisting dataframe.
Definition at line 179 of file root_handler.py.
|
static |
Create validation results from an ipython calculation.
Definition at line 60 of file root_handler.py.
def get_figure_of_merits | ( | self | ) |
Return the figures of merit from the file. Mostly used for internal setting of the properties.
Definition at line 77 of file root_handler.py.
def get_figures_of_merit_latex | ( | self | ) |
Print out the figures of merit as a LaTeX-ready table.
Definition at line 97 of file root_handler.py.
def grouped_by_pt_data | ( | self, | |
mc_data = None |
|||
) |
Convenience function to return the input data (or the internal mc_data) grouped by pt.
Definition at line 120 of file root_handler.py.
def plot | ( | self, | |
data_x, | |||
data_y, | |||
loc = 4 , |
|||
yerr = None |
|||
) |
Plot data_y over data_x with the correct settings for this result. Mostly used internally.
Definition at line 130 of file root_handler.py.
def plot_efficiency_point | ( | self | ) |
Plot a point in the finding-efficiency/hit-efficiency plane.
Definition at line 113 of file root_handler.py.
def plot_finding_efficiency | ( | self, | |
data = None |
|||
) |
Plot the finding efficiency over pt.
Definition at line 143 of file root_handler.py.
def plot_hit_efficiency | ( | self, | |
data = None |
|||
) |
Plot the hit efficiency over pt.
Definition at line 152 of file root_handler.py.
def print_useful_information | ( | self | ) |
Print mostfully useful information about this result.
Definition at line 161 of file root_handler.py.
additional_information |
the additional information
Definition at line 57 of file root_handler.py.
clone_rate |
the clone rate
Definition at line 53 of file root_handler.py.
color |
the color index
Definition at line 44 of file root_handler.py.
fake_rate |
the fake rate
Definition at line 51 of file root_handler.py.
filename |
The root filename.
Definition at line 22 of file root_handler.py.
finding_efficiency |
the finding efficiency
Definition at line 47 of file root_handler.py.
hit_efficiency |
the hit efficiency
Definition at line 49 of file root_handler.py.
label |
the label
Definition at line 42 of file root_handler.py.
mc_data |
the mc data
Definition at line 28 of file root_handler.py.
mc_prompts |
the mc prompt data
Definition at line 33 of file root_handler.py.
pr_data |
The pr data.
Definition at line 24 of file root_handler.py.
pr_prompts |
the pr prompt data
Definition at line 35 of file root_handler.py.