Belle II Software  release-06-01-15
TestStdCharged Class Reference
Inheritance diagram for TestStdCharged:
Collaboration diagram for TestStdCharged:

Public Member Functions

def test_nonesense_list (self)
 
def test_all_list (self)
 
def test_good_list (self)
 
def test_higheff (self)
 
def test_loose (self)
 
def test_percentile_eff (self)
 
def test_mostLikely_lists (self)
 

Private Member Functions

def _check_list_name (self, target, functionname, particleloader)
 
def _check_listtype_exists (self, listtype, functions=_base_functions)
 
def _check_function_call (self, functions=_base_functions, expectedlist=stdCharged._defaultlist)
 
def _check_listtype_does_not_exist (self, listtype, functions=_base_functions)
 

Detailed Description

Test case for charged standard particle lists

Definition at line 26 of file test_std_charged.py.

Member Function Documentation

◆ _check_function_call()

def _check_function_call (   self,
  functions = _base_functions,
  expectedlist = stdCharged._defaultlist 
)
private
check that a function works (i.e. adds a particle loader)

Definition at line 57 of file test_std_charged.py.

57  def _check_function_call(self, functions=_base_functions, expectedlist=stdCharged._defaultlist):
58  """check that a function works (i.e. adds a particle loader)"""
59  for f in functions:
60  testpath = create_path()
61  f(path=testpath)
62  self.assertEqual(
63  len(testpath.modules()), 3,
64  "Function %s doesn't work" % f.__name__)
65  self.assertTrue(any(module.type() == "ParticleLoader" for module in testpath.modules()))
66  loader = testpath.modules()[0]
67  self._check_list_name(expectedlist, f.__name__, loader)
68 

◆ _check_list_name()

def _check_list_name (   self,
  target,
  functionname,
  particleloader 
)
private
Check that the list name we expect is the one that was
actually added to the ParticleLoader

Definition at line 29 of file test_std_charged.py.

◆ _check_listtype_does_not_exist()

def _check_listtype_does_not_exist (   self,
  listtype,
  functions = _base_functions 
)
private
check that a given listtype function doesn't do anything

Definition at line 69 of file test_std_charged.py.

◆ _check_listtype_exists()

def _check_listtype_exists (   self,
  listtype,
  functions = _base_functions 
)
private
check that a given listtype function works

Definition at line 42 of file test_std_charged.py.

◆ test_all_list()

def test_all_list (   self)
check that the builder functions all work with the all list

Definition at line 83 of file test_std_charged.py.

◆ test_good_list()

def test_good_list (   self)
check that the builder functions all work with the good list

Definition at line 87 of file test_std_charged.py.

◆ test_higheff()

def test_higheff (   self)
check that the builder functions all work with the higheff list

Definition at line 93 of file test_std_charged.py.

◆ test_loose()

def test_loose (   self)
check that the builder functions all work with the loose list

Definition at line 97 of file test_std_charged.py.

◆ test_mostLikely_lists()

def test_mostLikely_lists (   self)
check that the builder functions work with the mostLikely lists

Definition at line 118 of file test_std_charged.py.

◆ test_nonesense_list()

def test_nonesense_list (   self)
check that the builder functions fail with a nonexisting list

Definition at line 79 of file test_std_charged.py.

◆ test_percentile_eff()

def test_percentile_eff (   self)
check that the builder functions all work with the percentile eff lists

Definition at line 101 of file test_std_charged.py.


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