56def test():
57 """Simple function for the test"""
58 pps = gaudi.gaudiPartProp()
59
60 for l in range(1, 6):
61
62 lst1 = pps.get(lambda x: l == x.pid().lSpin())
63 print(" %s == 2*lSpin+1 " % l)
64 print(lst1)
65
66 for s in range(0, 2):
67
68 lst1 = pps.get(lambda x: s == x.pid().sSpin())
69 print(" %s == 2*sSpin+1 " % s)
70 print(lst1)
71
72 for j in range(0, 7):
73
74 lst1 = pps.get(lambda x: j == x.pid().jSpin())
75 print(" %s == 2*jSpi+1 " % j)
76 print(lst1)
77
78 decays = [
79 "B0 -> K- pi+",
80 "B+ -> J/psi(1S) ( K*0 -> K+ pi- ) ",
81 "D_s+ -> pi+ pi+ pi- ",
82 "B_s0 -> ( J/psi(1S) -> mu+ mu- ) ( phi(1020) -> K+ K- ) ",
83 ]
84
85 for decay in decays:
86 print("Decay&CC: %s : %s " % (decay, pps.cc(decay)))
87
88 Item = pps.Item
89 Items = pps.Items
90 Decay = pps.Decay
91 Decays = pps.Decays
92
93 items = Items()
94 items.push_back(Item("K+"))
95 items.push_back(Item("K-"))
96
97 decay = Decay(Item("B0"), items)
98
99 print(decay.validate(pps.svc()))
100
102 decays.push_back(decay)
103 decays.push_back(decay)
104 decays.push_back(decay)
105
106 print(decay)
107 print(decays)
108
109