Skip to content

Commit

Permalink
Merge pull request #41325 from menglu21/master
Browse files Browse the repository at this point in the history
renew matched lepton ids for every jet
  • Loading branch information
cmsbuild authored Apr 25, 2023
2 parents 64b9124 + 2d03924 commit b265809
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions PhysicsTools/NanoAOD/plugins/LeptonInJetProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ void LeptonInJetProducer<T>::produce(edm::StreamID streamID, edm::Event &iEvent,
std::vector<int> vmuIdx3SJ;
std::vector<int> veleIdx3SJ;

int ele_pfmatch_index = -1;
int mu_pfmatch_index = -1;

// Find leptons in jets
for (unsigned int ij = 0; ij < nJet; ij++) {
const pat::Jet &itJet = (*srcJet)[ij];
Expand All @@ -91,6 +88,8 @@ void LeptonInJetProducer<T>::produce(edm::StreamID streamID, edm::Event &iEvent,
fastjet::PseudoJet p(d->px(), d->py(), d->pz(), d->energy());
lClusterParticles.emplace_back(p);
}
int ele_pfmatch_index = -1;
int mu_pfmatch_index = -1;

// match to leading and closest electron or muon
double dRmin(0.8), dRele(999), dRmu(999), dRtmp(999);
Expand Down

0 comments on commit b265809

Please sign in to comment.