diff --git a/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc b/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc index 8ffa271c9aa20..a5aed8ab2a4f4 100644 --- a/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc +++ b/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc @@ -108,7 +108,7 @@ void DeepMETProducer::produce(edm::Event& event, const edm::EventSetup& setup) { input_cat2_.tensor()(0, i_pf, 0) = pf.fromPV(); ++i_pf; - if (i_pf > max_n_pf_) { + if (i_pf == max_n_pf_) { break; // output a warning? } }