Skip to content

Commit

Permalink
Bug fix for track MET in miniAOD tools
Browse files Browse the repository at this point in the history
  • Loading branch information
lathomas committed Aug 12, 2021
1 parent 0b98ed0 commit f45c5fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,7 @@ def miniAODConfigurationPre(self, process, patMetModuleSequence, pfCandCollectio
patMetModuleSequence += getattr(process, "pfMetCHS")
patMetModuleSequence += getattr(process, "patCHSMet")

pfTrk = cms.EDFilter("CandPtrSelector", src = cms.InputTag("packedPFCandidates"), cut = cms.string("fromPV(0) > 0 && charge()!=0"))
pfTrk = cms.EDFilter("CandPtrSelector", src = cms.InputTag("packedPFCandidates"), cut = cms.string("pvAssociationQuality()>=4 && charge()!=0 && vertexRef().key()==0"))
addToProcessAndTask("pfTrk", pfTrk, process, task)
pfMetTrk = pfMet.clone(src = 'pfTrk')
addToProcessAndTask("pfMetTrk", pfMetTrk, process, task)
Expand Down

0 comments on commit f45c5fb

Please sign in to comment.