Skip to content

Commit

Permalink
Merge pull request #44067 from makortel/patch-6
Browse files Browse the repository at this point in the history
Erase from correct vector in PATTauHybridProducer
  • Loading branch information
cmsbuild authored Feb 29, 2024
2 parents 596d17b + fbe0e16 commit ea5de5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhysicsTools/PatAlgos/plugins/PATTauHybridProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ void PATTauHybridProducer::fillTauFromJet(reco::PFTau& pfTau, const reco::JetBas
pfTau.setleadChargedHadrCand(pfGammas[0]);
pfTau.setleadCand(pfGammas[0]);
pfGammasSig.push_back(pfGammas[0]);
pfChs.erase(pfGammas.begin());
pfGammas.erase(pfGammas.begin());
}
// Clean gamma candidates from low-pt ones
for (CandPtrs::iterator it = pfGammas.begin(); it != pfGammas.end();) {
Expand Down

0 comments on commit ea5de5d

Please sign in to comment.