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

Public Member Functions

def remove_spaces (self, s)
 
def test_stdXi (self)
 
def test_stdXi_b2bii (self)
 
def test_stdXi0 (self)
 
def test_stdXi0_b2bii (self)
 
def test_stdOmega (self)
 
def test_stdOmega_b2bii (self)
 
def test_goodXi (self)
 
def test_goodXi_with_std_added_before (self)
 
def test_goodXi0 (self)
 
def test_goodXi0_with_std_added_before (self)
 
def test_goodOmega (self)
 
def test_goodOmega_with_std_added_before (self)
 

Private Member Functions

def _check_list (self, std_function, expected_lists=[])
 

Detailed Description

Test case for standard hyperon lists

Definition at line 17 of file test_std_hyperons.py.

Member Function Documentation

◆ _check_list()

def _check_list (   self,
  std_function,
  expected_lists = [] 
)
private
Check the given particle lists are created.
The std_function ONLY takes one path argument.

Definition at line 24 of file test_std_hyperons.py.

27  expected_lists=[]):
28  """
29  Check the given particle lists are created.
30  The std_function ONLY takes one path argument.
31  """
32  testpath = create_path()
33  std_function(path=testpath)
34 
35  built_lists = []
36  for module in testpath.modules():
37  for param in module.available_params():
38  if module.type() == 'ParticleLoader' and param.name == 'decayStringsWithCuts':
39  listname = param.values[0][0].split('->')[0]
40  elif module.type() == 'ParticleListManipulator' and param.name == 'outputListName':
41  listname = str(param.values).split(' -> ')[0]
42  elif module.type() == 'ParticleCombiner' and param.name == 'decayString':
43  listname = param.values.split(' -> ')[0]
44  else:
45  continue
46  listname = self.remove_spaces(listname)
47  if listname not in built_lists:
48  built_lists.append(listname)
49  expected_lists = [self.remove_spaces(listname) for listname in expected_lists]
50 
51  for expected in expected_lists:
52  if expected not in built_lists:
53  return False
54  return True
55 

◆ remove_spaces()

def remove_spaces (   self,
  s 
)
Remove all spaces within a string

Definition at line 20 of file test_std_hyperons.py.

◆ test_goodOmega()

def test_goodOmega (   self)
Check goodOmega lists: veryloose, loose, tight

Definition at line 164 of file test_std_hyperons.py.

◆ test_goodOmega_with_std_added_before()

def test_goodOmega_with_std_added_before (   self)
Check goodOmega lists: veryloose, loose, tight. Test behavior if std list was already added before.

Definition at line 172 of file test_std_hyperons.py.

◆ test_goodXi()

def test_goodXi (   self)
Check goodXi lists: veryloose, loose, tight

Definition at line 126 of file test_std_hyperons.py.

◆ test_goodXi0()

def test_goodXi0 (   self)
Check goodXi0 lists: veryloose, loose, tight

Definition at line 145 of file test_std_hyperons.py.

◆ test_goodXi0_with_std_added_before()

def test_goodXi0_with_std_added_before (   self)
Check goodXi0 lists: veryloose, loose, tight. Test behavior if std list was already added before.

Definition at line 154 of file test_std_hyperons.py.

◆ test_goodXi_with_std_added_before()

def test_goodXi_with_std_added_before (   self)
Check goodXi lists: veryloose, loose, tight. Test behavior if std list was already added before.

Definition at line 135 of file test_std_hyperons.py.

◆ test_stdOmega()

def test_stdOmega (   self)
Check stdOmega

Definition at line 104 of file test_std_hyperons.py.

◆ test_stdOmega_b2bii()

def test_stdOmega_b2bii (   self)
Check stdOmega for B2BII settings

Definition at line 114 of file test_std_hyperons.py.

◆ test_stdXi()

def test_stdXi (   self)
Check stdXi

Definition at line 56 of file test_std_hyperons.py.

◆ test_stdXi0()

def test_stdXi0 (   self)
Check stdXi0

Definition at line 82 of file test_std_hyperons.py.

◆ test_stdXi0_b2bii()

def test_stdXi0_b2bii (   self)
Check stdXi0 for B2BII settings

Definition at line 92 of file test_std_hyperons.py.

◆ test_stdXi_b2bii()

def test_stdXi_b2bii (   self)
Check stdXi for B2BII settings

Definition at line 75 of file test_std_hyperons.py.


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