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

Public Member Functions

def setUp (self)
 
def test_get_comparison (self)
 

Public Attributes

 test_options
 Mapping test case -> Metaoptions.
 

Detailed Description

 Test get_comparison 

Definition at line 24 of file test_comparison.py.

Member Function Documentation

◆ setUp()

def setUp (   self)
 Set up testing of get_comparison 

Definition at line 27 of file test_comparison.py.

27  def setUp(self):
28  """ Set up testing of get_comparison """
29 
30  self.test_options = {
31  "chi2": "",
32  "kolmogorov": "kolmogorov",
33  "andersondarling": "andersondarling",
34  }
35  gaus_th1f = ROOT.TH1F("gaus", "gaus", 5, -3, 3)
36  gaus_th1f.FillRandom("gaus", 1000)
37  exponential_th1f = ROOT.TH1F("expo", "expo", 5, -3, 3)
38  exponential_th1f.FillRandom("expo", 1000)
39 
40  self.obj_pairs: List[Tuple[ROOT.TObject, ROOT.TObject, str]] = [
41  (gaus_th1f, gaus_th1f, "equal"),
42  (gaus_th1f, exponential_th1f, "error"),
43  ]
44 

◆ test_get_comparison()

def test_get_comparison (   self)
 Use get_tester on the metaoptions to get the requested
comparison object and run that on two identical ROOT object.
Check that this indeed returns 'equal'.

Definition at line 45 of file test_comparison.py.


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