|
def | _check_list (self, std_function, expected_lists=[]) |
|
Test case for standard hyperon lists
Definition at line 18 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 25 of file test_std_hyperons.py.
30 Check the given particle lists are created.
31 The std_function ONLY takes one path argument.
33 testpath = create_path()
34 std_function(path=testpath)
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]
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]
52 for expected
in expected_lists:
53 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 173 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 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 | ) |
|
◆ 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: