From 6f5370ade8c05717ec9ae13a0266e8ed3100f815 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++) {