Skip to content

Commit

Permalink
Merge pull request #41407 from menglu21/CMSSW_13_0_X
Browse files Browse the repository at this point in the history
renew matched lepton ids for every jet
  • Loading branch information
cmsbuild authored May 2, 2023
2 parents 53454b3 + 58b1293 commit 2f74d7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 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 @@ -92,6 +89,9 @@ void LeptonInJetProducer<T>::produce(edm::StreamID streamID, edm::Event &iEvent,
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);
for (unsigned int il(0); il < nEle; il++) {
Expand Down

0 comments on commit 2f74d7f

Please sign in to comment.