Skip to content

Commit 92c640d

Browse files
committed
Added one more test case
Signed-off-by: Deepanshu <deepanshu2017@gmail.com>
1 parent bb2dde4 commit 92c640d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/test_phasespace.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,26 @@ def test_generator_1(self):
112112
phsp.GenerateOndevice(vec4, e_device)
113113
self.check_equals(e_device, tup)
114114

115+
def test_generator_2(self):
116+
nentries = 5
117+
B0_mass = 5.27955
118+
Jpsi_mass = 3.0969
119+
K_mass = 0.493677
120+
pi_mass = 0.13957061
121+
mu_mass = 0.1056583745
122+
123+
B0 = hypy.Vector4R(B0_mass, 0.0, 0.0, 0.0)
124+
masses1 = [Jpsi_mass, K_mass, pi_mass]
125+
masses2 = [mu_mass, mu_mass]
126+
127+
phsp1 = hypy.PhaseSpace3(B0_mass, masses1)
128+
phsp2 = hypy.PhaseSpace2(Jpsi_mass, masses2)
129+
130+
daughters_d = hypy.host_events_3(nentries)
131+
grand_daughters_d = hypy.host_events_2(nentries)
132+
133+
phsp1.GenerateOnhost(B0, daughters_d)
134+
phsp2.GenerateOnhost(daughters_d.getDaughters(0), grand_daughters_d
115135
def test_average_on(self):
116136
vec4 = hypy.Vector4R(5.2795, 0.0, 0.0, 0.0)
117137
p = hypy.PhaseSpace4(vec4.mass(), [3.096916, 0.493677, 0.13957018, 0.0195018])

0 commit comments

Comments
 (0)