Skip to content

Commit

Permalink
update gluon_has_pid_zero to check vector of PIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
t7phy committed Jul 22, 2024
1 parent 53a469f commit f8da72e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pineappl/src/evolution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ fn gluon_has_pid_zero(grid: &Grid) -> bool {
// if there are any PID zero particles ...
grid.channels()
.iter()
.any(|entry| entry.entry().iter().any(|&(a, b, _)| (a == 0) || (b == 0)))
.any(|entry| entry.entry().iter().any(|&(ref pids, _)| pids.iter().any(|&pid| pid == 0)))
// and if the particle IDs are encoded using PDG MC IDs
&& grid.pid_basis() == PidBasis::Pdg
}
Expand Down

0 comments on commit f8da72e

Please sign in to comment.