Skip to content

Commit

Permalink
Merge pull request #44272 from makortel/patch-6_140x
Browse files Browse the repository at this point in the history
[14_0_X] Erase from correct vector in PATTauHybridProducer
  • Loading branch information
cmsbuild authored Mar 4, 2024
2 parents 94747cf + 5584911 commit 5979162
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 5979162

Please sign in to comment.