Belle II Software  release-06-01-15
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 18 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 25 of file test_std_hyperons.py.

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

◆ remove_spaces()

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

Definition at line 21 of file test_std_hyperons.py.

◆ test_goodOmega()

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

Definition at line 165 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 173 of file test_std_hyperons.py.

◆ test_goodXi()

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

Definition at line 127 of file test_std_hyperons.py.

◆ test_goodXi0()

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

Definition at line 146 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 155 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 136 of file test_std_hyperons.py.

◆ test_stdOmega()

def test_stdOmega (   self)
Check stdOmega

Definition at line 105 of file test_std_hyperons.py.

◆ test_stdOmega_b2bii()

def test_stdOmega_b2bii (   self)
Check stdOmega for B2BII settings

Definition at line 115 of file test_std_hyperons.py.

◆ test_stdXi()

def test_stdXi (   self)
Check stdXi

Definition at line 57 of file test_std_hyperons.py.

◆ test_stdXi0()

def test_stdXi0 (   self)
Check stdXi0

Definition at line 83 of file test_std_hyperons.py.

◆ test_stdXi0_b2bii()

def test_stdXi0_b2bii (   self)
Check stdXi0 for B2BII settings

Definition at line 93 of file test_std_hyperons.py.

◆ test_stdXi_b2bii()

def test_stdXi_b2bii (   self)
Check stdXi for B2BII settings

Definition at line 76 of file test_std_hyperons.py.


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