17 import FWCore.ParameterSet.Config
as cms
19 from RecoEgamma.EgammaTools.egammaObjectModificationsInMiniAOD_cff
import (
20 egamma8XObjectUpdateModifier,
21 egamma9X105XUpdateModifier,
23 from RecoEgamma.ElectronIdentification.heepIdVarValueMapProducer_cfi
import heepIDVarValueMaps
25 heepIDVarValueMapsAOD = heepIDVarValueMaps.copy()
26 heepIDVarValueMapsAOD.dataFormat = 1
28 gsfElectron8XObjectUpdateModifier = egamma8XObjectUpdateModifier.clone(
29 ecalRecHitsEB=
"reducedEcalRecHitsEB", ecalRecHitsEE=
"reducedEcalRecHitsEE" 31 gsfElectron9X105XUpdateModifier = egamma9X105XUpdateModifier.clone(
32 eleCollVMsAreKeyedTo=
"gedGsfElectrons",
33 eleTrkIso=
"heepIDVarValueMapsAOD:eleTrkPtIso",
34 eleTrkIso04=
"heepIDVarValueMapsAOD:eleTrkPtIso04",
35 conversions=
"allConversions",
36 ecalRecHitsEB=
"reducedEcalRecHitsEB",
37 ecalRecHitsEE=
"reducedEcalRecHitsEE",
41 gedGsfElectronsFrom80XTo106X = cms.EDProducer(
42 "ModifiedGsfElectronProducer",
43 src=cms.InputTag(
"gedGsfElectrons"),
44 modifierConfig=cms.PSet(
45 modifications=cms.VPSet(gsfElectron8XObjectUpdateModifier, gsfElectron9X105XUpdateModifier)
49 gedGsfElectronsFrom80XTo106XTask = cms.Task(heepIDVarValueMapsAOD, gedGsfElectronsFrom80XTo106X)
51 gedGsfElectronsFrom94XTo106X = cms.EDProducer(
52 "ModifiedGsfElectronProducer",
53 src=cms.InputTag(
"gedGsfElectrons"),
54 modifierConfig=cms.PSet(
55 modifications=cms.VPSet(gsfElectron9X105XUpdateModifier)
59 gedGsfElectronsFrom94XTo106XTask = cms.Task(heepIDVarValueMapsAOD, gedGsfElectronsFrom94XTo106X)