![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self, input_file='../V0ValidationHarvested.root', output_file='V0Validation.root') | |
collect_histograms (self) | |
plot (self) | |
Static Public Member Functions | |
efficiency_plot (found, all, title, x_variable, x_unit, description='', check='', contact='', meta_options='') | |
histogram_plot (hist, title, x_variable, x_unit=None, description='', check='', contact='', meta_options='') | |
histogram_2d_plot (hist, title, x_variable, y_variable, x_unit=None, y_unit=None, description='', check='', contact='', meta_options='') | |
Public Attributes | |
input_file = input_file | |
Input file. | |
output_file = output_file | |
Output file. | |
hist_r = ROOT.TH1F("", "True R", 20, 0, 20) | |
MCTruth R. | |
hist_theta = ROOT.TH1F("", "True Theta", 26, 20, 150) | |
MCTruth Theta. | |
hist_phi = ROOT.TH1F("", "True Phi", 36, -180, 180) | |
MCTruth Phi. | |
hist_p = ROOT.TH1F("", "True P", 25, 0.0, 1.0) | |
MCTruth Momentum. | |
hist_r_found = ROOT.TH1F("", "Found R", 20, 0, 20) | |
Reconstructed R. | |
hist_theta_found = ROOT.TH1F("", "Found Theta", 26, 20, 150) | |
Reconstructed Theta. | |
hist_phi_found = ROOT.TH1F("", "Found Phi", 36, -180, 180) | |
Reconstructed Phi. | |
hist_p_found = ROOT.TH1F("", "Found P", 25, 0.0, 1.0) | |
Reconstructed Momentum. | |
hist_invariant_mass = ROOT.TH1F("", "", 60, 0.470, 0.530) | |
Invariant mass histogram. | |
hist_invariant_mass_res = ROOT.TH1F("", "", 40, -0.02, 0.02) | |
Invariant mass residual histogram. | |
hist_chi2 = ROOT.TH1F("", "", 50, 0, 50) | |
Chi2 of all vertex fits. | |
hist_chi2_inside = ROOT.TH1F("", "", 50, 0, 50) | |
Chi2 of vertex fit inside beampipe. | |
hist_chi2_outside = ROOT.TH1F("", "", 50, 0, 50) | |
Chi2 of vertex fit outside beampipe. | |
hist_mass_vs_mc_mass = ROOT.TH2F("", "", 80, 0, 0.8, 80, 0, 0.8) | |
2D histogram; invariant mass vs reconstructed mass | |
hist_invariant_mass_residuum = ROOT.TH1F("", "", 60, -0.05, 0.05) | |
Invariant mass residuum histogram. | |
hist_r_residuum = ROOT.TH1F("", "", 60, -0.1, 0.1) | |
R residuum histogram. | |
hist_theta_residuum = ROOT.TH1F("", "", 60, -0.1, 0.1) | |
Theta residuum histogram. | |
hist_phi_residuum = ROOT.TH1F("", "", 60, -0.1, 0.1) | |
Phi residuum histogram. | |
hist_p_residuum = ROOT.TH1F("", "", 60, -0.05, 0.05) | |
Momentum residuum histogram. | |
Reads the output created by the V0Harvester and creates plots from it.
Definition at line 27 of file v0ValidationCreatePlots.py.
__init__ | ( | self, | |
input_file = '../V0ValidationHarvested.root', | |||
output_file = 'V0Validation.root' ) |
Reads the output created by the V0Harvester defines histograms which will be filled later. :param input_file: Output of V0ValidationHarvester. :param output_file: Plots displayed in the V0Validation.
Definition at line 31 of file v0ValidationCreatePlots.py.
collect_histograms | ( | self | ) |
Fills the defined histograms with the V0Harvester data. :return: self
Definition at line 86 of file v0ValidationCreatePlots.py.
|
static |
Create an efficiency plot. :param found: Histogram with all found entries (i.e. reconstructed). :param all: Histogram with all entries (i.e. MCTruth). :param title: Title of the histogram. :param x_variable: x variable. :param x_unit: x unit. :param description: Description text shown on the validation page. :param check: Check text shown on the validation page. :param contact: Contact text shown on the validation page. :param meta_options: Meta options for the validation page. :return: ROOT.TEfficiency
Definition at line 127 of file v0ValidationCreatePlots.py.
|
static |
Create a 2d hisogram plot. :param hist: TH2F :param title: Title of the histogram. :param x_variable: x variable :param y_variable: y variable :param x_unit: x unit :param y_unit: y unit :param description: Description text shown on the validation page. :param check: Check text shown on the validation page. :param contact: Contact text shown on the validation page. :param meta_options: Meta options for the validation page. :return: ROOT.TEfficiency :return:
Definition at line 178 of file v0ValidationCreatePlots.py.
|
static |
Create (annotate) an histogram plot. :param hist: TH1F :param title: Title of the histogram. :param x_variable: x variable. :param x_unit: x unit. :param description: Description text shown on the validation page. :param check: Check text shown on the validation page. :param contact: Contact text shown on the validation page. :param meta_options: Meta options for the validation page. :return: modified hist
Definition at line 152 of file v0ValidationCreatePlots.py.
plot | ( | self | ) |
Create plots with the data filled with 'collect_histograms'. :return: self
Definition at line 205 of file v0ValidationCreatePlots.py.
hist_chi2 = ROOT.TH1F("", "", 50, 0, 50) |
Chi2 of all vertex fits.
Definition at line 66 of file v0ValidationCreatePlots.py.
hist_chi2_inside = ROOT.TH1F("", "", 50, 0, 50) |
Chi2 of vertex fit inside beampipe.
Definition at line 68 of file v0ValidationCreatePlots.py.
hist_chi2_outside = ROOT.TH1F("", "", 50, 0, 50) |
Chi2 of vertex fit outside beampipe.
Definition at line 70 of file v0ValidationCreatePlots.py.
hist_invariant_mass = ROOT.TH1F("", "", 60, 0.470, 0.530) |
Invariant mass histogram.
Definition at line 61 of file v0ValidationCreatePlots.py.
hist_invariant_mass_res = ROOT.TH1F("", "", 40, -0.02, 0.02) |
Invariant mass residual histogram.
Definition at line 63 of file v0ValidationCreatePlots.py.
hist_invariant_mass_residuum = ROOT.TH1F("", "", 60, -0.05, 0.05) |
Invariant mass residuum histogram.
Definition at line 76 of file v0ValidationCreatePlots.py.
hist_mass_vs_mc_mass = ROOT.TH2F("", "", 80, 0, 0.8, 80, 0, 0.8) |
2D histogram; invariant mass vs reconstructed mass
Definition at line 73 of file v0ValidationCreatePlots.py.
hist_p = ROOT.TH1F("", "True P", 25, 0.0, 1.0) |
MCTruth Momentum.
Definition at line 49 of file v0ValidationCreatePlots.py.
hist_p_found = ROOT.TH1F("", "Found P", 25, 0.0, 1.0) |
Reconstructed Momentum.
Definition at line 58 of file v0ValidationCreatePlots.py.
hist_p_residuum = ROOT.TH1F("", "", 60, -0.05, 0.05) |
Momentum residuum histogram.
Definition at line 84 of file v0ValidationCreatePlots.py.
hist_phi = ROOT.TH1F("", "True Phi", 36, -180, 180) |
MCTruth Phi.
Definition at line 47 of file v0ValidationCreatePlots.py.
hist_phi_found = ROOT.TH1F("", "Found Phi", 36, -180, 180) |
Reconstructed Phi.
Definition at line 56 of file v0ValidationCreatePlots.py.
hist_phi_residuum = ROOT.TH1F("", "", 60, -0.1, 0.1) |
Phi residuum histogram.
Definition at line 82 of file v0ValidationCreatePlots.py.
hist_r = ROOT.TH1F("", "True R", 20, 0, 20) |
MCTruth R.
Definition at line 43 of file v0ValidationCreatePlots.py.
hist_r_found = ROOT.TH1F("", "Found R", 20, 0, 20) |
Reconstructed R.
Definition at line 52 of file v0ValidationCreatePlots.py.
hist_r_residuum = ROOT.TH1F("", "", 60, -0.1, 0.1) |
R residuum histogram.
Definition at line 78 of file v0ValidationCreatePlots.py.
hist_theta = ROOT.TH1F("", "True Theta", 26, 20, 150) |
MCTruth Theta.
Definition at line 45 of file v0ValidationCreatePlots.py.
hist_theta_found = ROOT.TH1F("", "Found Theta", 26, 20, 150) |
Reconstructed Theta.
Definition at line 54 of file v0ValidationCreatePlots.py.
hist_theta_residuum = ROOT.TH1F("", "", 60, -0.1, 0.1) |
Theta residuum histogram.
Definition at line 80 of file v0ValidationCreatePlots.py.
input_file = input_file |
Input file.
Definition at line 38 of file v0ValidationCreatePlots.py.
output_file = output_file |
Output file.
Definition at line 40 of file v0ValidationCreatePlots.py.