def test_JSL_meson_numbers(PDGIDs): _JSL_eq_000 = mesons_JSL_states_list(PDGIDs, '000') _JSL_eq_011 = mesons_JSL_states_list(PDGIDs, '011') _JSL_eq_101 = mesons_JSL_states_list(PDGIDs, '101') _JSL_eq_110 = mesons_JSL_states_list(PDGIDs, '110') _JSL_eq_111 = mesons_JSL_states_list(PDGIDs, '111') _JSL_eq_112 = mesons_JSL_states_list(PDGIDs, '112') _JSL_eq_211 = mesons_JSL_states_list(PDGIDs, '211') _JSL_eq_312 = mesons_JSL_states_list(PDGIDs, '312') for id in _JSL_eq_000: assert J(id) == 0 assert S(id) == 0 assert L(id) == 0 for id in _JSL_eq_011: assert J(id) == 0 assert S(id) == 1 assert L(id) == 1 for id in _JSL_eq_101: assert J(id) == 1 assert S(id) == 0 assert L(id) == 1 for id in _JSL_eq_110: assert J(id) == 1 assert S(id) == 1 assert L(id) == 0 for id in _JSL_eq_111: assert J(id) == 1 assert S(id) == 1 assert L(id) == 1 for id in _JSL_eq_112: assert J(id) == 1 assert S(id) == 1 assert L(id) == 2 for id in _JSL_eq_211: assert J(id) == 2 assert S(id) == 1 assert L(id) == 1 for id in _JSL_eq_312: assert J(id) == 3 assert S(id) == 1 assert L(id) == 2
def test_JSL_mesons(PDGIDs): _JSL_eq_000 = mesons_JSL_states_list(PDGIDs, "000") _JSL_eq_011 = mesons_JSL_states_list(PDGIDs, "011") _JSL_eq_101 = mesons_JSL_states_list(PDGIDs, "101") _JSL_eq_110 = mesons_JSL_states_list(PDGIDs, "110") _JSL_eq_111 = mesons_JSL_states_list(PDGIDs, "111") _JSL_eq_112 = mesons_JSL_states_list(PDGIDs, "112") _JSL_eq_211 = mesons_JSL_states_list(PDGIDs, "211") _JSL_eq_312 = mesons_JSL_states_list(PDGIDs, "312") for id in _JSL_eq_000: assert J(id) == 0 assert S(id) == 0 assert L(id) == 0 for id in _JSL_eq_011: assert J(id) == 0 assert S(id) == 1 assert L(id) == 1 for id in _JSL_eq_101: assert J(id) == 1 assert S(id) == 0 assert L(id) == 1 for id in _JSL_eq_110: assert J(id) == 1 assert S(id) == 1 assert L(id) == 0 for id in _JSL_eq_111: assert J(id) == 1 assert S(id) == 1 assert L(id) == 1 for id in _JSL_eq_112: assert J(id) == 1 assert S(id) == 1 assert L(id) == 2 for id in _JSL_eq_211: assert J(id) == 2 assert S(id) == 1 assert L(id) == 1 for id in _JSL_eq_312: assert J(id) == 3 assert S(id) == 1 assert L(id) == 2
def test_S_non_mesons(PDGIDs): _S_eq_None = (PDGIDs.Gluon, PDGIDs.Photon, PDGIDs.Z0) for id in _S_eq_None: assert S(id) == None