17 import FWCore.ParameterSet.Config
as cms
19 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
20 from RecoEgamma.EgammaTools.egammaObjectModificationsInMiniAOD_cff
import (
21 egamma8XObjectUpdateModifier,
22 egamma9X105XUpdateModifier,
24 from RecoEgamma.ElectronIdentification.heepIdVarValueMapProducer_cfi
import heepIDVarValueMaps
26 heepIDVarValueMapsAOD = heepIDVarValueMaps.copy()
27 heepIDVarValueMapsAOD.dataFormat = 1
29 gsfElectron8XObjectUpdateModifier = egamma8XObjectUpdateModifier.clone(
30 ecalRecHitsEB=
"reducedEcalRecHitsEB", ecalRecHitsEE=
"reducedEcalRecHitsEE" 32 gsfElectron9X105XUpdateModifier = egamma9X105XUpdateModifier.clone(
33 eleCollVMsAreKeyedTo=
"gedGsfElectrons",
34 eleTrkIso=
"heepIDVarValueMapsAOD:eleTrkPtIso",
35 eleTrkIso04=
"heepIDVarValueMapsAOD:eleTrkPtIso04",
36 conversions=
"allConversions",
37 ecalRecHitsEB=
"reducedEcalRecHitsEB",
38 ecalRecHitsEE=
"reducedEcalRecHitsEE",
42 gedGsfElectronsFrom80XTo106X = cms.EDProducer(
43 "ModifiedGsfElectronProducer",
44 src=cms.InputTag(
"gedGsfElectrons"),
45 modifierConfig=cms.PSet(
46 modifications=cms.VPSet(gsfElectron8XObjectUpdateModifier, gsfElectron9X105XUpdateModifier)
50 gedGsfElectronsFrom80XTo106XTask = cms.Task(heepIDVarValueMapsAOD, gedGsfElectronsFrom80XTo106X)
52 gedGsfElectronsFrom94XTo106X = cms.EDProducer(
53 "ModifiedGsfElectronProducer",
54 src=cms.InputTag(
"gedGsfElectrons"),
55 modifierConfig=cms.PSet(
56 modifications=cms.VPSet(gsfElectron9X105XUpdateModifier)
60 gedGsfElectronsFrom94XTo106XTask = cms.Task(heepIDVarValueMapsAOD, gedGsfElectronsFrom94XTo106X)