1 import FWCore.ParameterSet.Config
as cms
8 process.load(
'CommonTools.PileupAlgos.Puppi_cff')
10 process.pfNoLepPUPPI = cms.EDFilter(
"PdgIdCandViewSelector",
11 src = cms.InputTag(
"particleFlow"),
12 pdgId = cms.vint32( 1,2,22,111,130,310,2112,211,-211,321,-321,999211,2212,-2212 )
14 process.pfLeptonsPUPPET = cms.EDFilter(
"PdgIdCandViewSelector",
15 src = cms.InputTag(
"particleFlow"),
16 pdgId = cms.vint32(-11,11,-13,13),
20 process.puppiNoLep = process.puppi.clone()
21 process.puppiNoLep.candName = cms.InputTag(
'pfNoLepPUPPI')
23 process.puppiMerged = cms.EDProducer(
"CandViewMerger",src = cms.VInputTag(
'puppiNoLep',
'pfLeptonsPUPPET'))
26 process.puppiForMET = cms.EDProducer(
"PuppiPhoton",
27 candName = cms.InputTag(
'packedPFCandidates'),
28 puppiCandName = cms.InputTag(
'puppi'),
29 photonName = cms.InputTag(
'slimmedPhotons'),
30 photonId = cms.InputTag(
"egmPhotonIDs:cutBasedPhotonID_PHYS14_PU20bx25_V2p1-standalone-loose"),
32 useRefs = cms.bool(
True),
33 dRMatch = cms.vdouble(10,10,10,10),
34 pdgids = cms.vint32 (22,11,211,130),
35 weight = cms.double(1.),
36 useValueMap = cms.bool(
False),
37 weightsName = cms.InputTag(
'puppi'),
39 process.puppiForMET.puppiCandName =
'puppiMerged'
45 process.load(
'CommonTools.PileupAlgos.Puppi_cff')
47 process.puppi.candName = cms.InputTag(
'packedPFCandidates')
48 process.puppi.vertexName = cms.InputTag(
'offlineSlimmedPrimaryVertices')
51 process.pfNoLepPUPPI = cms.EDFilter(
"CandPtrSelector", src = cms.InputTag(
"packedPFCandidates"), cut = cms.string(
"abs(pdgId) != 13 && abs(pdgId) != 11 && abs(pdgId) != 15"))
52 process.pfLeptonsPUPPET = cms.EDFilter(
"CandPtrSelector", src = cms.InputTag(
"packedPFCandidates"), cut = cms.string(
"abs(pdgId) == 13 || abs(pdgId) == 11 || abs(pdgId) == 15"))
54 process.puppiNoLep = process.puppi.clone()
55 process.puppiNoLep.candName = cms.InputTag(
'pfNoLepPUPPI')
57 process.puppiMerged = cms.EDProducer(
"CandViewMerger",src = cms.VInputTag(
'puppiNoLep',
'pfLeptonsPUPPET'))
60 process.puppiForMET = cms.EDProducer(
"PuppiPhoton",
61 candName = cms.InputTag(
'packedPFCandidates'),
62 puppiCandName = cms.InputTag(
'puppi'),
63 photonName = cms.InputTag(
'slimmedPhotons'),
64 photonId = cms.InputTag(
"egmPhotonIDs:cutBasedPhotonID_PHYS14_PU20bx25_V2p1-standalone-loose"),
66 useRefs = cms.bool(
True),
67 dRMatch = cms.vdouble(10,10,10,10),
68 pdgids = cms.vint32 (22,11,211,130),
69 weight = cms.double(1.),
70 useValueMap = cms.bool(
False),
71 weightsName = cms.InputTag(
'puppi'),
73 process.puppiForMET.puppiCandName =
'puppiMerged'