diff --git a/RecoJets/JetProducers/src/PileupJetIdAlgo.cc b/RecoJets/JetProducers/src/PileupJetIdAlgo.cc index d2920772711e1..a5994a7b67fb4 100644 --- a/RecoJets/JetProducers/src/PileupJetIdAlgo.cc +++ b/RecoJets/JetProducers/src/PileupJetIdAlgo.cc @@ -664,7 +664,7 @@ PileupJetIdentifier PileupJetIdAlgo::computeIdVariables(const reco::Jet* jet, } internalId_.dRLeadCent_ = reco::deltaR(*jet, *lLead); - if (lSecond == nullptr) { + if (lSecond != nullptr) { internalId_.dRLead2nd_ = reco::deltaR(*jet, *lSecond); } internalId_.dRMean_ /= jetPt;