Belle II Software  release-05-02-19
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_goodX0 (self)
 
def test_goodOmega (self)
 

Private Member Functions

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

Detailed Description

Test case for standard hyperon lists

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

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

◆ remove_spaces()

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

Definition at line 15 of file test_std_hyperons.py.

◆ test_goodOmega()

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

Definition at line 141 of file test_std_hyperons.py.

◆ test_goodX0()

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

Definition at line 131 of file test_std_hyperons.py.

◆ test_goodXi()

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

Definition at line 121 of file test_std_hyperons.py.

◆ test_stdOmega()

def test_stdOmega (   self)
Check stdOmega

Definition at line 99 of file test_std_hyperons.py.

◆ test_stdOmega_b2bii()

def test_stdOmega_b2bii (   self)
Check stdOmega for B2BII settings

Definition at line 109 of file test_std_hyperons.py.

◆ test_stdXi()

def test_stdXi (   self)
Check stdXi

Definition at line 51 of file test_std_hyperons.py.

◆ test_stdXi0()

def test_stdXi0 (   self)
Check stdXi0

Definition at line 77 of file test_std_hyperons.py.

◆ test_stdXi0_b2bii()

def test_stdXi0_b2bii (   self)
Check stdXi0 for B2BII settings

Definition at line 87 of file test_std_hyperons.py.

◆ test_stdXi_b2bii()

def test_stdXi_b2bii (   self)
Check stdXi for B2BII settings

Definition at line 70 of file test_std_hyperons.py.


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