1 import FWCore.ParameterSet.Config
as cms
7 sourceElectrons = cms.InputTag(
"lowPtGsfElectrons")
9 lowPtElectronMatch = electronMatch.clone(
10 src = sourceElectrons,
13 patLowPtElectrons = patElectrons.clone(
16 electronSource = sourceElectrons,
19 genParticleMatch =
"lowPtElectronMatch",
24 unbiased = cms.InputTag(
"rekeyLowPtGsfElectronSeedValueMaps:unbiased"),
25 ptbiased = cms.InputTag(
"rekeyLowPtGsfElectronSeedValueMaps:ptbiased"),
26 ID = cms.InputTag(
"lowPtGsfElectronID"),
31 embedGsfElectronCore =
True,
33 embedSuperCluster =
True,
34 embedSeedCluster =
True,
35 embedBasicClusters =
True,
36 embedPreshowerClusters =
False,
38 embedPflowSuperCluster =
False,
39 embedPflowBasicClusters =
False,
40 embedPflowPreshowerClusters =
False,
41 embedPFCandidate =
False,
44 addMVAVariables =
False,
45 embedHighLevelSelection =
False,
46 isoDeposits = cms.PSet(),
47 isolationValues = cms.PSet(),
48 isolationValuesNoPFId = cms.PSet(),
52 makePatLowPtElectronsTask = cms.Task(
57 makePatLowPtElectrons = cms.Sequence(makePatLowPtElectronsTask)
61 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
62 fastSim.toModify(patLowPtElectrons, embedTrack =
False)
63 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
64 from Configuration.Eras.Modifier_run2_miniAOD_94XFall17_cff
import run2_miniAOD_94XFall17
65 (run2_miniAOD_80XLegacy | run2_miniAOD_94XFall17).toModify(patLowPtElectrons,
66 electronSource =
"gedGsfElectrons",
67 genParticleMatch =
"electronMatch" 71 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff
import run2_miniAOD_UL
72 from Configuration.Eras.Modifier_run2_miniAOD_devel_cff
import run2_miniAOD_devel
73 from Configuration.Eras.Modifier_bParking_cff
import bParking
75 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronSeedValueMaps_cff
import rekeyLowPtGsfElectronSeedValueMaps
76 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronID_cff
import lowPtGsfElectronID
77 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectrons_cff
import lowPtGsfElectrons
79 _makePatLowPtElectronsTask = makePatLowPtElectronsTask.copy()
80 _makePatLowPtElectronsTask.add(rekeyLowPtGsfElectronSeedValueMaps)
81 _makePatLowPtElectronsTask.add(lowPtGsfElectronID)
82 (bParking | run2_miniAOD_UL).toReplaceWith(makePatLowPtElectronsTask,_makePatLowPtElectronsTask)
83 ( (bParking & run2_miniAOD_UL) | (~bParking & run2_miniAOD_devel) ).toModify(
84 makePatLowPtElectronsTask, func =
lambda t: t.add(lowPtGsfElectrons))