|
def | _check_list (self, std_function, expected_lists=[]) |
|
Test case for standard hyperon lists
Definition at line 12 of file test_std_hyperons.py.
◆ _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.
24 Check the given particle lists are created.
25 The std_function ONLY takes one path argument.
27 testpath = create_path()
28 std_function(path=testpath)
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]
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]
46 for expected
in expected_lists:
47 if expected
not in built_lists:
◆ remove_spaces()
def remove_spaces |
( |
|
self, |
|
|
|
s |
|
) |
| |
◆ test_goodOmega()
def test_goodOmega |
( |
|
self | ) |
|
◆ test_goodX0()
◆ test_goodXi()
◆ test_stdOmega()
def test_stdOmega |
( |
|
self | ) |
|
◆ test_stdOmega_b2bii()
def test_stdOmega_b2bii |
( |
|
self | ) |
|
◆ test_stdXi()
◆ test_stdXi0()
◆ test_stdXi0_b2bii()
def test_stdXi0_b2bii |
( |
|
self | ) |
|
◆ test_stdXi_b2bii()
def test_stdXi_b2bii |
( |
|
self | ) |
|
The documentation for this class was generated from the following file: