1 import FWCore.ParameterSet.Config
as cms
3 reducedEgamma = cms.EDProducer(
"ReducedEGProducer",
4 keepPhotons = cms.string(
"hadTowOverEm()<0.15 && pt>10 && (pt>14 || chargedHadronIso()<10)"),
5 slimRelinkPhotons = cms.string(
"hadTowOverEm()<0.15 && pt>10 && (pt>14 || chargedHadronIso()<10)"),
6 relinkPhotons = cms.string(
"(r9()>0.8 || chargedHadronIso()<20 || chargedHadronIso()<0.3*pt())"),
7 keepOOTPhotons = cms.string(
"pt>10"),
8 slimRelinkOOTPhotons = cms.string(
"pt>10"),
9 relinkOOTPhotons = cms.string(
"(r9()>0.8)"),
10 keepGsfElectrons = cms.string(
""),
11 slimRelinkGsfElectrons = cms.string(
""),
12 relinkGsfElectrons = cms.string(
"pt>5"),
13 photons = cms.InputTag(
"gedPhotons"),
14 ootPhotons = cms.InputTag(
"ootPhotons"),
15 gsfElectrons = cms.InputTag(
"gedGsfElectrons"),
16 conversions = cms.InputTag(
"allConversions"),
17 gsfTracks = cms.InputTag(
"electronGsfTracks"),
18 singleConversions = cms.InputTag(
"particleFlowEGamma"),
19 barrelEcalHits = cms.InputTag(
"reducedEcalRecHitsEB"),
20 endcapEcalHits = cms.InputTag(
"reducedEcalRecHitsEE"),
21 preshowerEcalHits = cms.InputTag(
"reducedEcalRecHitsES"),
22 photonsPFValMap = cms.InputTag(
"particleBasedIsolation",
"gedPhotons"),
23 gsfElectronsPFValMap = cms.InputTag(
"particleBasedIsolation",
"gedGsfElectrons"),
24 photonIDSources = cms.VInputTag(
25 cms.InputTag(
"PhotonIDProdGED",
"PhotonCutBasedIDLoose"),
26 cms.InputTag(
"PhotonIDProdGED",
"PhotonCutBasedIDLooseEM"),
27 cms.InputTag(
"PhotonIDProdGED",
"PhotonCutBasedIDTight")
29 photonIDOutput = cms.vstring(
30 "PhotonCutBasedIDLoose",
31 "PhotonCutBasedIDLooseEM",
32 "PhotonCutBasedIDTight",
34 gsfElectronIDSources = cms.VInputTag(
35 cms.InputTag(
"eidLoose"),
36 cms.InputTag(
"eidRobustHighEnergy"),
37 cms.InputTag(
"eidRobustLoose"),
38 cms.InputTag(
"eidRobustTight"),
39 cms.InputTag(
"eidTight"),
41 gsfElectronIDOutput = cms.vstring(
43 "eidRobustHighEnergy",
48 photonFloatValueMapSources = cms.VInputTag(
49 cms.InputTag(
"photonEcalPFClusterIsolationProducer"),
50 cms.InputTag(
"photonHcalPFClusterIsolationProducer"),
52 photonFloatValueMapOutput = cms.vstring(
56 ootPhotonFloatValueMapSources = cms.VInputTag(
57 cms.InputTag(
"ootPhotonEcalPFClusterIsolationProducer"),
58 cms.InputTag(
"ootPhotonHcalPFClusterIsolationProducer"),
60 ootPhotonFloatValueMapOutput = cms.vstring(
61 "ootPhoEcalPFClusIso",
62 "ootPhoHcalPFClusIso",
64 gsfElectronFloatValueMapSources = cms.VInputTag(
65 cms.InputTag(
"electronEcalPFClusterIsolationProducer"),
66 cms.InputTag(
"electronHcalPFClusterIsolationProducer"),
68 gsfElectronFloatValueMapOutput = cms.vstring(
72 applyPhotonCalibOnData = cms.bool(
False),
73 applyPhotonCalibOnMC = cms.bool(
False),
74 applyGsfElectronCalibOnData = cms.bool(
False),
75 applyGsfElectronCalibOnMC = cms.bool(
False),
76 photonCalibEnergySource = cms.InputTag(
""),
77 photonCalibEnergyErrSource = cms.InputTag(
""),
78 gsfElectronCalibEnergySource = cms.InputTag(
""),
79 gsfElectronCalibEnergyErrSource = cms.InputTag(
""),
80 gsfElectronCalibEcalEnergySource = cms.InputTag(
""),
81 gsfElectronCalibEcalEnergyErrSource = cms.InputTag(
"")
84 from Configuration.Eras.Modifier_phase2_common_cff
import phase2_common
85 phase2_common.toModify(reducedEgamma,
86 preshowerEcalHits = cms.InputTag(
""),
89 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
90 run2_miniAOD_80XLegacy.toModify(
92 ootPhotonFloatValueMapSources = [
"ootPhotonEcalPFClusterIsolationProducer" ],
93 ootPhotonFloatValueMapOutput = [
"ootPhoEcalPFClusIso" ]
96 from RecoEgamma.EgammaPhotonProducers.reducedEgamma_tools
import calibrateReducedEgamma
97 from Configuration.Eras.Modifier_run2_miniAOD_94XFall17_cff
import run2_miniAOD_94XFall17
98 modifyReducedEGammaRun2MiniAOD9XFall17_ = run2_miniAOD_94XFall17.makeProcessModifier(calibrateReducedEgamma)
100 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
101 modifyReducedEGammaRun2MiniAOD8XLegacy_ = run2_miniAOD_80XLegacy.makeProcessModifier(calibrateReducedEgamma)