Skip to content

Commit 6ea5951

Browse files
committed
up
1 parent b41dc92 commit 6ea5951

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boostedhiggs/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def get_p4(ptkl):
314314
return vector.awk(
315315
ak.zip(
316316
{
317-
"pt": ak.where(ak.num(ptkl.pt) == 0, [[0.0]], ptkl.pt),
317+
"pt": ak.where(ak.num(ptkl.pt) == 0, [[0.0]], ptkl.pt), # in cases for Tau decays
318318
"eta": ak.where(ak.num(ptkl.eta) == 0, [[0.0]], ptkl.eta),
319319
"phi": ak.where(ak.num(ptkl.phi) == 0, [[0.0]], ptkl.phi),
320320
"e": ak.where(ak.num(ptkl.energy) == 0, [[0.0]], ptkl.energy),
@@ -332,7 +332,7 @@ def get_p4(ptkl):
332332
"gen_V_mass": ak.firsts(genW.mass),
333333
}
334334

335-
return genVars
335+
return genVars, None
336336

337337
else:
338338
vs = genparts[get_pid_mask(genparts, [W_PDGID, Z_PDGID], byall=False) * genparts.hasFlags(GEN_FLAGS)]

0 commit comments

Comments
 (0)