|
def | _check_list (self, std_function, expected_lists=[]) |
|
Test case for standard hyperon lists
Definition at line 17 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 24 of file test_std_hyperons.py.
29 Check the given particle lists are created.
30 The std_function ONLY takes one path argument.
32 testpath = create_path()
33 std_function(path=testpath)
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]
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]
51 for expected
in expected_lists:
52 if expected
not in built_lists:
◆ remove_spaces()
def remove_spaces |
( |
|
self, |
|
|
|
s |
|
) |
| |
◆ test_goodOmega()
def test_goodOmega |
( |
|
self | ) |
|
◆ 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()
◆ test_goodXi0()
◆ 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 | ) |
|
◆ 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: