Belle II Software  release-08-01-10
TestComparison Class Reference
Inheritance diagram for TestComparison:
Collaboration diagram for TestComparison:

Public Member Functions

def root_name (self, name)
 
def setUp (self)
 
def test_compare_profiles (self)
 
def test_compare_profiles_identical (self)
 
def test_compare_identical_profiles_kolmogorov (self)
 
def test_compare_profiles_almost_equal (self)
 
def test_compare_zero_error_profiles (self)
 
def test_compare_histograms (self)
 
def test_compare_unsupported_object (self)
 
def test_compare_differing_objects (self)
 
def test_compare_tefficiencies (self)
 
def test_compare_tefficiencies_same (self)
 
def test_compare_differing_bins (self)
 

Static Public Member Functions

def create_profile (name, entries=5000, mu=10, sigma=0.3, max_fill=50, fixed_number=None)
 
def create_teff (name, bins=20, eff=0.9)
 
def create_histogram (name, entries=5000, mu=10, sigma=3)
 

Public Attributes

 call_iteration
 if we would at some point later want to implement several runs, we use this as a counter variable to set up different names. More...
 
 profileA
 Profile A.
 
 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
 TEfficiemcy A.
 
 teffB
 TEfficiency B.
 

Detailed Description

Various test cases for the Chi2Test wrapper class

Definition at line 72 of file test_comparison.py.

Member Function Documentation

◆ create_histogram()

def create_histogram (   name,
  entries = 5000,
  mu = 10,
  sigma = 3 
)
static
Create a TH1D and fill with random content

Definition at line 110 of file test_comparison.py.

◆ create_profile()

def create_profile (   name,
  entries = 5000,
  mu = 10,
  sigma = 0.3,
  max_fill = 50,
  fixed_number = None 
)
static
Create a TProfile object with various content

Definition at line 78 of file test_comparison.py.

◆ create_teff()

def create_teff (   name,
  bins = 20,
  eff = 0.9 
)
static
Creates and fills a root TEfficiency plot

Definition at line 95 of file test_comparison.py.

◆ root_name()

def root_name (   self,
  name 
)
Generates unique names for ROOT objects

Definition at line 119 of file test_comparison.py.

◆ setUp()

def setUp (   self)
Setup method to generate profiles and histograms for tests

Definition at line 125 of file test_comparison.py.

◆ test_compare_differing_bins()

def 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()

def 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()

def test_compare_histograms (   self)
Test comparison of regular histograms

Definition at line 259 of file test_comparison.py.

◆ test_compare_identical_profiles_kolmogorov()

def 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()

def 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()

def 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()

def test_compare_profiles_identical (   self)
Test if comparing two identical TProfiles works

Definition at line 204 of file test_comparison.py.

◆ test_compare_tefficiencies()

def 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()

def 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()

def 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()

def test_compare_zero_error_profiles (   self)
Test if bins with zero error are treated properly

Definition at line 234 of file test_comparison.py.

Member Data Documentation

◆ call_iteration

call_iteration

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.


The documentation for this class was generated from the following file: