Skip to content

Commit

Permalink
use existing weights when running on top of MiniAOD to make results f…
Browse files Browse the repository at this point in the history
…rom AOD and MiniAOD more similar
  • Loading branch information
ahinzmann committed Jan 6, 2017
1 parent a17080a commit acd025b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PhysicsTools/PatAlgos/python/slimming/puppiForMET_cff.py
Expand Up @@ -32,11 +32,13 @@ def makePuppiesFromMiniAOD( process, createScheduledSequence=False ):
process.puppi.candName = cms.InputTag('packedPFCandidates')
process.puppi.clonePackedCands = cms.bool(True)
process.puppi.vertexName = cms.InputTag('offlineSlimmedPrimaryVertices')
process.puppi.useExistingWeights = cms.bool(True)
process.pfNoLepPUPPI = cms.EDFilter("CandPtrSelector", src = cms.InputTag("packedPFCandidates"), cut = cms.string("abs(pdgId) != 13 && abs(pdgId) != 11 && abs(pdgId) != 15"))
process.pfLeptonsPUPPET = cms.EDFilter("CandPtrSelector", src = cms.InputTag("packedPFCandidates"), cut = cms.string("abs(pdgId) == 13 || abs(pdgId) == 11 || abs(pdgId) == 15"))
process.puppiNoLep = process.puppi.clone()
process.puppiNoLep.candName = cms.InputTag('pfNoLepPUPPI')
process.puppiNoLep.useWeightsNoLep = cms.bool(True)
process.puppiNoLep.useExistingWeights = cms.bool(True)
process.puppiMerged = cms.EDProducer("CandViewMerger",src = cms.VInputTag( 'puppiNoLep','pfLeptonsPUPPET'))
process.load('CommonTools.PileupAlgos.PhotonPuppi_cff')
process.puppiForMET = process.puppiPhoton.clone()
Expand Down

0 comments on commit acd025b

Please sign in to comment.