From 4b0c2d9c3daf8d7f7f6b471ef1e3470ab63eb3ab Mon Sep 17 00:00:00 2001 From: Marino Missiroli Date: Sat, 18 Nov 2023 12:02:32 +0100 Subject: [PATCH] do not use "size() - 1" in HLTL1TMatchedJetsVBFFilter --- HLTrigger/JetMET/plugins/HLTL1TMatchedJetsVBFFilter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HLTrigger/JetMET/plugins/HLTL1TMatchedJetsVBFFilter.h b/HLTrigger/JetMET/plugins/HLTL1TMatchedJetsVBFFilter.h index 588d88682b541..7d2ba98c2f5c8 100644 --- a/HLTrigger/JetMET/plugins/HLTL1TMatchedJetsVBFFilter.h +++ b/HLTrigger/JetMET/plugins/HLTL1TMatchedJetsVBFFilter.h @@ -171,7 +171,7 @@ void HLTL1TMatchedJetsVBFFilter::fillJetIndices(std::vector& ou int i2 = -1; double m2jj_max = -1; - for (unsigned int i = 0; i < jetIndices.size() - 1; i++) { + for (unsigned int i = 0; i < jetIndices.size(); i++) { auto const& jet1 = jets[jetIndices[i]]; for (unsigned int j = i + 1; j < jetIndices.size(); j++) {