1 import FWCore.ParameterSet.Config
as cms
3 slimmedLowPtElectrons = cms.EDProducer(
"PATElectronSlimmer",
4 src = cms.InputTag(
"selectedPatLowPtElectrons"),
5 dropSuperCluster = cms.string(
"0"),
6 dropBasicClusters = cms.string(
"0"),
7 dropPFlowClusters = cms.string(
"0"),
8 dropPreshowerClusters = cms.string(
"0"),
9 dropSeedCluster = cms.string(
"0"),
10 dropRecHits = cms.string(
"0"),
11 dropCorrections = cms.string(
"0"),
12 dropIsolations = cms.string(
"0"),
13 dropShapes = cms.string(
"0"),
14 dropSaturation = cms.string(
"0"),
15 dropExtrapolations = cms.string(
"0"),
16 dropClassifications = cms.string(
"0"),
17 linkToPackedPFCandidates = cms.bool(
False),
18 recoToPFMap = cms.InputTag(
"reducedEgamma",
"reducedGsfElectronPfCandMap"),
19 packedPFCandidates = cms.InputTag(
"packedPFCandidates"),
20 saveNonZSClusterShapes = cms.string(
"1"),
21 reducedBarrelRecHitCollection = cms.InputTag(
"reducedEcalRecHitsEB"),
22 reducedEndcapRecHitCollection = cms.InputTag(
"reducedEcalRecHitsEE"),
23 modifyElectrons = cms.bool(
True),
24 modifierConfig = cms.PSet(
25 modifications = cms.VPSet(
27 electron_config = cms.PSet(
28 ele2packed = cms.InputTag(
"lowPtGsfLinks:ele2packed"),
29 electronSrc = cms.InputTag(
"selectedPatLowPtElectrons"),
31 modifierName = cms.string(
'EGExtraInfoModifierFromPackedCandPtrValueMaps'),
32 photon_config = cms.PSet()
35 electron_config = cms.PSet(
36 ele2lost = cms.InputTag(
"lowPtGsfLinks:ele2lost"),
37 electronSrc = cms.InputTag(
"selectedPatLowPtElectrons"),
39 modifierName = cms.string(
'EGExtraInfoModifierFromPackedCandPtrValueMaps'),
40 photon_config = cms.PSet()
46 from RecoEgamma.EgammaTools.lowPtElectronModifier_cfi
import lowPtElectronModifier
47 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff
import run2_miniAOD_UL
48 from Configuration.Eras.Modifier_run2_miniAOD_devel_cff
import run2_miniAOD_devel
49 from Configuration.Eras.Modifier_bParking_cff
import bParking
50 _modifiers = (~bParking & run2_miniAOD_devel) | (bParking & run2_miniAOD_UL)
51 _modifiers.toModify(slimmedLowPtElectrons.modifierConfig.modifications,
52 func =
lambda m: m.append(lowPtElectronModifier))