10 unCleanPhotonCollection ):
15 from PhysicsTools.PatUtils.tools.corMETFromMuonAndEG
import corMETFromMuonAndEG
16 from PhysicsTools.PatUtils.tools.runMETCorrectionsAndUncertainties
import runMetCorAndUncForMiniAODProduction
22 del process.patJetsBackupAllEvents.userData
23 process.patJetsBackupAllEvents.addAssociatedTracks = cms.bool(
False)
24 process.patJetsBackupAllEvents.addBTagInfo = cms.bool(
False)
25 process.patJetsBackupAllEvents.addDiscriminators = cms.bool(
False)
26 process.patJetsBackupAllEvents.addGenJetMatch = cms.bool(
False)
27 process.patJetsBackupAllEvents.addGenPartonMatch = cms.bool(
False)
28 process.patJetsBackupAllEvents.addJetCharge = cms.bool(
False)
29 process.patJetsBackupAllEvents.addJetCorrFactors = cms.bool(
True)
30 process.patJetsBackupAllEvents.addJetFlavourInfo = cms.bool(
False)
31 process.patJetsBackupAllEvents.addJetID = cms.bool(
False)
32 process.patJetsBackupAllEvents.addPartonJetMatch = cms.bool(
False)
33 process.patJetsBackupAllEvents.addResolutions = cms.bool(
False)
34 process.patJetsBackupAllEvents.addTagInfos = cms.bool(
False)
35 process.patJetsBackupAllEvents.discriminatorSources = cms.VInputTag()
36 process.patJetsBackupAllEvents.embedGenJetMatch = cms.bool(
False)
40 pfCandColl=cms.InputTag(unCleanPFCandidateCollection),
42 jetCollUnskimmed=
"patJetsBackupAllEvents",
46 if not hasattr(process,
"slimmedMETs"):
47 process.load(
'PhysicsTools.PatAlgos.slimming.slimmedMETs_cfi')
49 process.slimmedMETsUncorrected = process.slimmedMETs.clone()
50 task.add(process.slimmedMETs)
51 process.slimmedMETsUncorrected.src = cms.InputTag(
"patPFMetT1Uncorrected")
52 process.slimmedMETsUncorrected.rawVariation = cms.InputTag(
"patPFMetUncorrected")
53 process.slimmedMETsUncorrected.t1Uncertainties = cms.InputTag(
"patPFMetT1%sUncorrected")
54 process.slimmedMETsUncorrected.t01Variation = cms.InputTag(
"patPFMetT0pcT1Uncorrected")
55 process.slimmedMETsUncorrected.t1SmearedVarsAndUncs = cms.InputTag(
"patPFMetT1Smear%sUncorrected")
56 process.slimmedMETsUncorrected.tXYUncForRaw = cms.InputTag(
"patPFMetTxyUncorrected")
57 process.slimmedMETsUncorrected.tXYUncForT1 = cms.InputTag(
"patPFMetT1TxyUncorrected")
58 process.slimmedMETsUncorrected.tXYUncForT01 = cms.InputTag(
"patPFMetT0pcT1TxyUncorrected")
59 process.slimmedMETsUncorrected.tXYUncForT1Smear = cms.InputTag(
"patPFMetT1SmearTxyUncorrected")
60 process.slimmedMETsUncorrected.tXYUncForT01Smear = cms.InputTag(
"patPFMetT0pcT1SmearTxyUncorrected")
61 del process.slimmedMETsUncorrected.caloMET
66 electronCollection=unCleanElectronCollection,
67 photonCollection=unCleanPhotonCollection,
68 corElectronCollection=cleanElectronCollection,
69 corPhotonCollection=cleanPhotonCollection,
70 allMETEGCorrected=
True,
77 process.slimmedMETsEGClean = process.slimmedMETs.clone()
78 task.add(process.slimmedMETsEGClean)
79 process.slimmedMETsEGClean.src = cms.InputTag(
"patPFMetT1UncorrectedEGOnly")
80 process.slimmedMETsEGClean.rawVariation = cms.InputTag(
"patPFMetRawUncorrectedEGOnly")
81 process.slimmedMETsEGClean.t1Uncertainties = cms.InputTag(
"patPFMetT1%sUncorrectedEGOnly")
82 process.slimmedMETsEGClean.t01Variation = cms.InputTag(
"patPFMetT0pcT1UncorrectedEGOnly")
83 process.slimmedMETsEGClean.t1SmearedVarsAndUncs = cms.InputTag(
"patPFMetT1Smear%sUncorrectedEGOnly")
84 process.slimmedMETsEGClean.tXYUncForRaw = cms.InputTag(
"patPFMetTxyUncorrectedEGOnly")
85 process.slimmedMETsEGClean.tXYUncForT1 = cms.InputTag(
"patPFMetT1TxyUncorrectedEGOnly")
86 process.slimmedMETsEGClean.tXYUncForT01 = cms.InputTag(
"patPFMetT0pcT1TxyUncorrectedEGOnly")
87 process.slimmedMETsEGClean.tXYUncForT1Smear = cms.InputTag(
"patPFMetT1SmearTxyUncorrectedEGOnly")
88 process.slimmedMETsEGClean.tXYUncForT01Smear = cms.InputTag(
"patPFMetT0pcT1SmearTxyUncorrectedEGOnly")
89 del process.slimmedMETsEGClean.caloMET
94 electronCollection=unCleanElectronCollection,
95 photonCollection=unCleanPhotonCollection,
96 corElectronCollection=cleanElectronCollection,
97 corPhotonCollection=cleanPhotonCollection,
98 allMETEGCorrected=
True,
104 process.slimmedMETsMuEGClean = process.slimmedMETs.clone()
105 task.add(process.slimmedMETsMuEGClean)
106 process.slimmedMETsMuEGClean.src = cms.InputTag(
"patPFMetT1MuEGClean")
107 process.slimmedMETsMuEGClean.rawVariation = cms.InputTag(
"patPFMetRawMuEGClean")
108 process.slimmedMETsMuEGClean.t1Uncertainties = cms.InputTag(
"patPFMetT1%sMuEGClean")
109 process.slimmedMETsMuEGClean.t01Variation = cms.InputTag(
"patPFMetT0pcT1MuEGClean")
110 process.slimmedMETsMuEGClean.t1SmearedVarsAndUncs = cms.InputTag(
"patPFMetT1Smear%sMuEGClean")
111 process.slimmedMETsMuEGClean.tXYUncForRaw = cms.InputTag(
"patPFMetTxyMuEGClean")
112 process.slimmedMETsMuEGClean.tXYUncForT1 = cms.InputTag(
"patPFMetT1TxyMuEGClean")
113 process.slimmedMETsMuEGClean.tXYUncForT01 = cms.InputTag(
"patPFMetT0pcT1TxyMuEGClean")
114 process.slimmedMETsMuEGClean.tXYUncForT1Smear = cms.InputTag(
"patPFMetT1SmearTxyMuEGClean")
115 process.slimmedMETsMuEGClean.tXYUncForT01Smear = cms.InputTag(
"patPFMetT0pcT1SmearTxyMuEGClean")
116 del process.slimmedMETsMuEGClean.caloMET
119 [
"keep *_slimmedMETsUncorrected_*_*",
"keep *_slimmedMETsEGClean_*_*",
"keep *_slimmedMETsMuEGClean_*_*"])