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