Skip to content

Commit

Permalink
fixing update minDR for matching
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerosa committed Aug 29, 2022
1 parent 1a27c61 commit a453299
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DQMOffline/Trigger/plugins/ParticleNetJetTagMonitor.cc
Expand Up @@ -870,8 +870,10 @@ void ParticleNetJetTagMonitor::analyze(edm::Event const& iEvent, edm::EventSetup
continue;
float dR = reco::deltaR(selectedJets[jetPNETScoreSortedIndices.at(jreco)].p4(),
jetHLTRefs.at(jetPNETScoreSortedIndicesHLT.at(jhlt))->p4());
if (dR < hltRecoDeltaRmax_ and dR < minDR)
if (dR < hltRecoDeltaRmax_ and dR < minDR){
match_index = jhlt;
minDR = dR;
}
}
if (match_index >= 0)
matched_obj.push_back(match_index);
Expand Down

0 comments on commit a453299

Please sign in to comment.