Remove redundant check (#3812)

This commit is contained in:
GuySten 2026-02-18 17:09:39 +02:00 committed by GitHub
parent 977ade79a1
commit d4dc089618
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,13 +60,8 @@ void EnergyFilter::get_all_bins(
const Particle& p, TallyEstimator estimator, FilterMatch& match) const
{
if (p.g() != C_NONE && matches_transport_groups_) {
if (estimator == TallyEstimator::TRACKLENGTH) {
match.bins_.push_back(data::mg.num_energy_groups_ - p.g() - 1);
} else {
match.bins_.push_back(data::mg.num_energy_groups_ - p.g_last() - 1);
}
match.bins_.push_back(data::mg.num_energy_groups_ - p.g_last() - 1);
match.weights_.push_back(1.0);
} else {
// Get the pre-collision energy of the particle.
auto E = p.E_last();