Skip to content

Commit

Permalink
applying latest solution
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodozov authored May 4, 2020
1 parent 4e05083 commit d683d55
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,13 @@ void ShiftedPFCandidateProducerForPFNoPUMEt::produce(edm::Event& evt, const edm:
const reco::PFJet* jet_matched = nullptr;
for (auto jet : selectedJets) {
for (auto jetc : jet->getPFConstituents()) {
if (jet_matched)
break;
if (deltaR2(originalPFCandidate->p4(), jetc->p4()) < dR2Match)
if (deltaR2(originalPFCandidate->p4(), jetc->p4()) < dR2Match) {
jet_matched = jet;
break;
}
}
if (jet_matched)
break;
}

double shift = 0.;
Expand Down

0 comments on commit d683d55

Please sign in to comment.