Various test cases for the Quantity Extractor class
Definition at line 10 of file test_quantity_extract.py.
◆ test_h1d()
Test getting the quantities of a TH1d
Definition at line 16 of file test_quantity_extract.py.
18 Test getting the quantities of a TH1d
21 h1 = ROOT.TH1D(
"ext_test1",
"ext_test1", 40, 0, 40.0)
26 rext = RootQuantityExtract(default_extractor())
27 res = rext.extract(h1)
29 self.assertIn(
"mean_x", res)
30 self.assertAlmostEqual(res[
"mean_x"], 20)
31 self.assertIn(
"mean_y", res)
32 self.assertAlmostEqual(res[
"mean_y"], 0.075)
33 self.assertIn(
"mean_y_zero_suppressed", res)
34 self.assertAlmostEqual(res[
"mean_y_zero_suppressed"], 1.0)
35 self.assertIn(
"entries", res)
◆ test_ntuple()
◆ test_profile()
The documentation for this class was generated from the following file: