Skip to content

Commit

Permalink
Fix break condition
Browse files Browse the repository at this point in the history
  • Loading branch information
steggema committed Jul 27, 2020
1 parent 5c4cd8f commit b1eee14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void DeepMETProducer::produce(edm::Event& event, const edm::EventSetup& setup) {
input_cat2_.tensor<float, 3>()(0, i_pf, 0) = pf.fromPV();

++i_pf;
if (i_pf > max_n_pf_) {
if (i_pf == max_n_pf_) {
break; // output a warning?
}
}
Expand Down

0 comments on commit b1eee14

Please sign in to comment.