Skip to content

Commit

Permalink
Merge pull request #28169 from hqucms/patch-1
Browse files Browse the repository at this point in the history
[10_6_X] Fix a discrepancy in Puppi weights when running on MiniAOD w/ useExistingWeights=False
  • Loading branch information
cmsbuild authored Nov 5, 2019
2 parents 733cd16 + acf7bb8 commit bd99ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CommonTools/PileupAlgos/plugins/PuppiProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ void PuppiProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup) {
pVec.SetPxPyPzE(puppiMatched.px(),puppiMatched.py(),puppiMatched.pz(),puppiMatched.E());
if(fClonePackedCands && (!fUseExistingWeights)) {
if(fPuppiForLeptons)
pCand->setPuppiWeight(pCand->puppiWeight(),lWeights[iPuppiMatched]);
pCand->setPuppiWeight(pCand->puppiWeight(),lWeights[val]);
else
pCand->setPuppiWeight(lWeights[iPuppiMatched],pCand->puppiWeightNoLep());
pCand->setPuppiWeight(lWeights[val],pCand->puppiWeightNoLep());
}
} else {
pVec.SetPxPyPzE( 0, 0, 0, 0);
Expand Down

0 comments on commit bd99ef3

Please sign in to comment.