![]() |
Belle II Software prerelease-10-00-00a
|


Public Member Functions | |
| root_name (self, name) | |
| setUp (self) | |
| test_compare_profiles (self) | |
| test_compare_profiles_identical (self) | |
| test_compare_identical_profiles_kolmogorov (self) | |
| test_compare_profiles_almost_equal (self) | |
| test_compare_zero_error_profiles (self) | |
| test_compare_histograms (self) | |
| test_compare_unsupported_object (self) | |
| test_compare_differing_objects (self) | |
| test_compare_tefficiencies (self) | |
| test_compare_tefficiencies_same (self) | |
| test_compare_differing_bins (self) | |
Static Public Member Functions | |
| create_profile (name, entries=5000, mu=10, sigma=0.3, max_fill=50, fixed_number=None) | |
| create_teff (name, bins=20, eff=0.9) | |
| create_histogram (name, entries=5000, mu=10, sigma=3) | |
Public Attributes | |
| int | call_iteration = 0 |
| if we would at some point later want to implement several runs, we use this as a counter variable to set up different names. | |
| profileA = self.create_profile(self.root_name("profileA")) | |
| Profile A. | |
| profileB = self.create_profile(self.root_name("profileB")) | |
| Profile B. | |
| profileC | |
| Profile C. | |
| profileZeroErrorBins | |
| Profile with bins with 0 error. | |
| profileZeroErrorBinsTwo | |
| Profile with bins with 0 error. | |
| histogramA | |
| Histogram A. | |
| histogramB | |
| Histogram B (should be almost equal to profile A) | |
| profileAequal | |
| Profile should be almost equal to A. | |
| profileBequal | |
| Profile should be almost equal to B. | |
| profileDifferentBins | |
| Profile with different bins. | |
| teffA = self.create_teff(self.root_name("teffA")) | |
| TEfficiemcy A. | |
| teffB = self.create_teff(self.root_name("teffB")) | |
| TEfficiency B. | |
Various test cases for the Chi2Test wrapper class
Definition at line 72 of file test_comparison.py.
|
static |
Create a TH1D and fill with random content
Definition at line 110 of file test_comparison.py.
|
static |
Create a TProfile object with various content
Definition at line 78 of file test_comparison.py.
|
static |
Creates and fills a root TEfficiency plot
Definition at line 95 of file test_comparison.py.
| root_name | ( | self, | |
| name ) |
Generates unique names for ROOT objects
Definition at line 119 of file test_comparison.py.
| setUp | ( | self | ) |
Setup method to generate profiles and histograms for tests
Definition at line 125 of file test_comparison.py.
| test_compare_differing_bins | ( | self | ) |
Test if the comparison attempt of profiles with differing bin count fails properly
Definition at line 321 of file test_comparison.py.
| test_compare_differing_objects | ( | self | ) |
Test if the comparison of differing objects is rejected
Definition at line 281 of file test_comparison.py.
| test_compare_histograms | ( | self | ) |
Test comparison of regular histograms
Definition at line 259 of file test_comparison.py.
| test_compare_identical_profiles_kolmogorov | ( | self | ) |
Test if comparing to identical TProfiles with Kolmo Test works
Definition at line 214 of file test_comparison.py.
| test_compare_profiles | ( | self | ) |
Test if comparing two similar TProfiles works
Definition at line 194 of file test_comparison.py.
| test_compare_profiles_almost_equal | ( | self | ) |
Test if the comparison of two TProfiles with very similar content works
Definition at line 221 of file test_comparison.py.
| test_compare_profiles_identical | ( | self | ) |
Test if comparing two identical TProfiles works
Definition at line 204 of file test_comparison.py.
| test_compare_tefficiencies | ( | self | ) |
Test if two TEfficiency objects can be compared. Is a bit tricky as TEfficiency does not support
Definition at line 291 of file test_comparison.py.
| test_compare_tefficiencies_same | ( | self | ) |
Test if two TEfficiency objects can be compared. Is a bit tricky as TEfficiency does not support Comparing the exact same TEfficiency object should give back 100% agreement
Definition at line 306 of file test_comparison.py.
| test_compare_unsupported_object | ( | self | ) |
Test if unsupported ROOT objects are treated properly
Definition at line 273 of file test_comparison.py.
| test_compare_zero_error_profiles | ( | self | ) |
Test if bins with zero error are treated properly
Definition at line 234 of file test_comparison.py.
| int call_iteration = 0 |
if we would at some point later want to implement several runs, we use this as a counter variable to set up different names.
However not implemented yet.
Definition at line 134 of file test_comparison.py.
| histogramA |
Histogram A.
Definition at line 160 of file test_comparison.py.
| histogramB |
Histogram B (should be almost equal to profile A)
Definition at line 165 of file test_comparison.py.
| profileA = self.create_profile(self.root_name("profileA")) |
Profile A.
Definition at line 137 of file test_comparison.py.
| profileAequal |
Profile should be almost equal to A.
Definition at line 170 of file test_comparison.py.
| profileB = self.create_profile(self.root_name("profileB")) |
Profile B.
Definition at line 140 of file test_comparison.py.
| profileBequal |
Profile should be almost equal to B.
Definition at line 175 of file test_comparison.py.
| profileC |
Profile C.
Definition at line 143 of file test_comparison.py.
| profileDifferentBins |
Profile with different bins.
Definition at line 180 of file test_comparison.py.
| profileZeroErrorBins |
Profile with bins with 0 error.
Definition at line 148 of file test_comparison.py.
| profileZeroErrorBinsTwo |
Profile with bins with 0 error.
Definition at line 154 of file test_comparison.py.
| teffA = self.create_teff(self.root_name("teffA")) |
TEfficiemcy A.
Definition at line 189 of file test_comparison.py.
| teffB = self.create_teff(self.root_name("teffB")) |
TEfficiency B.
Definition at line 192 of file test_comparison.py.