9 unCleanPhotonCollection ):
12 from PhysicsTools.PatUtils.tools.corMETFromMuonAndEG
import corMETFromMuonAndEG
13 from PhysicsTools.PatUtils.tools.runMETCorrectionsAndUncertainties
import runMetCorAndUncForMiniAODProduction
19 del process.patJetsBackupAllEvents.userData
20 process.patJetsBackupAllEvents.addAssociatedTracks = cms.bool(
False)
21 process.patJetsBackupAllEvents.addBTagInfo = cms.bool(
False)
22 process.patJetsBackupAllEvents.addDiscriminators = cms.bool(
False)
23 process.patJetsBackupAllEvents.addGenJetMatch = cms.bool(
False)
24 process.patJetsBackupAllEvents.addGenPartonMatch = cms.bool(
False)
25 process.patJetsBackupAllEvents.addJetCharge = cms.bool(
False)
26 process.patJetsBackupAllEvents.addJetCorrFactors = cms.bool(
True)
27 process.patJetsBackupAllEvents.addJetFlavourInfo = cms.bool(
False)
28 process.patJetsBackupAllEvents.addJetID = cms.bool(
False)
29 process.patJetsBackupAllEvents.addPartonJetMatch = cms.bool(
False)
30 process.patJetsBackupAllEvents.addResolutions = cms.bool(
False)
31 process.patJetsBackupAllEvents.addTagInfos = cms.bool(
False)
32 process.patJetsBackupAllEvents.discriminatorSources = cms.VInputTag()
33 process.patJetsBackupAllEvents.embedGenJetMatch = cms.bool(
False)
37 pfCandColl=cms.InputTag(unCleanPFCandidateCollection),
39 jetCollUnskimmed=
"patJetsBackupAllEvents",
43 if not hasattr(process,
"slimmedMETs"):
44 process.load(
'PhysicsTools.PatAlgos.slimming.slimmedMETs_cfi')
46 process.slimmedMETsUncorrected = process.slimmedMETs.clone()
47 process.slimmedMETsUncorrected.src = cms.InputTag(
"patPFMetT1Uncorrected")
48 process.slimmedMETsUncorrected.rawVariation = cms.InputTag(
"patPFMetUncorrected")
49 process.slimmedMETsUncorrected.t1Uncertainties = cms.InputTag(
"patPFMetT1%sUncorrected")
50 process.slimmedMETsUncorrected.t01Variation = cms.InputTag(
"patPFMetT0pcT1Uncorrected")
51 process.slimmedMETsUncorrected.t1SmearedVarsAndUncs = cms.InputTag(
"patPFMetT1Smear%sUncorrected")
52 process.slimmedMETsUncorrected.tXYUncForRaw = cms.InputTag(
"patPFMetTxyUncorrected")
53 process.slimmedMETsUncorrected.tXYUncForT1 = cms.InputTag(
"patPFMetT1TxyUncorrected")
54 process.slimmedMETsUncorrected.tXYUncForT01 = cms.InputTag(
"patPFMetT0pcT1TxyUncorrected")
55 process.slimmedMETsUncorrected.tXYUncForT1Smear = cms.InputTag(
"patPFMetT1SmearTxyUncorrected")
56 process.slimmedMETsUncorrected.tXYUncForT01Smear = cms.InputTag(
"patPFMetT0pcT1SmearTxyUncorrected")
57 del process.slimmedMETsUncorrected.caloMET
62 electronCollection=unCleanElectronCollection,
63 photonCollection=unCleanPhotonCollection,
64 corElectronCollection=cleanElectronCollection,
65 corPhotonCollection=cleanPhotonCollection,
66 allMETEGCorrected=
True,
73 process.slimmedMETsEGClean = process.slimmedMETs.clone()
74 process.slimmedMETsEGClean.src = cms.InputTag(
"patPFMetT1UncorrectedEGOnly")
75 process.slimmedMETsEGClean.rawVariation = cms.InputTag(
"patPFMetRawUncorrectedEGOnly")
76 process.slimmedMETsEGClean.t1Uncertainties = cms.InputTag(
"patPFMetT1%sUncorrectedEGOnly")
77 process.slimmedMETsEGClean.t01Variation = cms.InputTag(
"patPFMetT0pcT1UncorrectedEGOnly")
78 process.slimmedMETsEGClean.t1SmearedVarsAndUncs = cms.InputTag(
"patPFMetT1Smear%sUncorrectedEGOnly")
79 process.slimmedMETsEGClean.tXYUncForRaw = cms.InputTag(
"patPFMetTxyUncorrectedEGOnly")
80 process.slimmedMETsEGClean.tXYUncForT1 = cms.InputTag(
"patPFMetT1TxyUncorrectedEGOnly")
81 process.slimmedMETsEGClean.tXYUncForT01 = cms.InputTag(
"patPFMetT0pcT1TxyUncorrectedEGOnly")
82 process.slimmedMETsEGClean.tXYUncForT1Smear = cms.InputTag(
"patPFMetT1SmearTxyUncorrectedEGOnly")
83 process.slimmedMETsEGClean.tXYUncForT01Smear = cms.InputTag(
"patPFMetT0pcT1SmearTxyUncorrectedEGOnly")
84 del process.slimmedMETsEGClean.caloMET
89 electronCollection=unCleanElectronCollection,
90 photonCollection=unCleanPhotonCollection,
91 corElectronCollection=cleanElectronCollection,
92 corPhotonCollection=cleanPhotonCollection,
93 allMETEGCorrected=
True,
99 process.slimmedMETsMuEGClean = process.slimmedMETs.clone()
100 process.slimmedMETsMuEGClean.src = cms.InputTag(
"patPFMetT1MuEGClean")
101 process.slimmedMETsMuEGClean.rawVariation = cms.InputTag(
"patPFMetRawMuEGClean")
102 process.slimmedMETsMuEGClean.t1Uncertainties = cms.InputTag(
"patPFMetT1%sMuEGClean")
103 process.slimmedMETsMuEGClean.t01Variation = cms.InputTag(
"patPFMetT0pcT1MuEGClean")
104 process.slimmedMETsMuEGClean.t1SmearedVarsAndUncs = cms.InputTag(
"patPFMetT1Smear%sMuEGClean")
105 process.slimmedMETsMuEGClean.tXYUncForRaw = cms.InputTag(
"patPFMetTxyMuEGClean")
106 process.slimmedMETsMuEGClean.tXYUncForT1 = cms.InputTag(
"patPFMetT1TxyMuEGClean")
107 process.slimmedMETsMuEGClean.tXYUncForT01 = cms.InputTag(
"patPFMetT0pcT1TxyMuEGClean")
108 process.slimmedMETsMuEGClean.tXYUncForT1Smear = cms.InputTag(
"patPFMetT1SmearTxyMuEGClean")
109 process.slimmedMETsMuEGClean.tXYUncForT01Smear = cms.InputTag(
"patPFMetT0pcT1SmearTxyMuEGClean")
110 del process.slimmedMETsMuEGClean.caloMET
113 [
"keep *_slimmedMETsUncorrected_*_*",
"keep *_slimmedMETsEGClean_*_*",
"keep *_slimmedMETsMuEGClean_*_*"])