From 8c4274ed74b997137f48843ad08689bfac868baf Mon Sep 17 00:00:00 2001 From: Christopher Schwan Date: Tue, 18 Oct 2022 14:37:36 +0200 Subject: [PATCH] Add missing to gluon exception --- pineappl/src/evolution.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pineappl/src/evolution.rs b/pineappl/src/evolution.rs index 48250915..857ab2c6 100644 --- a/pineappl/src/evolution.rs +++ b/pineappl/src/evolution.rs @@ -83,7 +83,11 @@ pub(crate) fn pids( .slice(s![.., pid1_idx, .., pid0_idx, ..]) .iter() .any(|&value| value != 0.0) - && pid1_nonzero(info.pids1[pid1_idx]) + && pid1_nonzero(if gluon_has_pid_zero && info.pids1[pid1_idx] == 21 { + 0 + } else { + info.pids1[pid1_idx] + }) }) .collect();