From b1eee1441587a207b9607dbe849828c4feedb483 Mon Sep 17 00:00:00 2001 From: Jan Steggemann Date: Mon, 27 Jul 2020 16:48:32 +0200 Subject: [PATCH] Fix break condition --- RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? } }