Belle II Software  release-08-01-10
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 25 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 56 of file test_std_charged.py.

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

◆ _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 28 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 68 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 41 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 82 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 86 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 92 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 96 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 117 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 78 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 100 of file test_std_charged.py.


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