1 import FWCore.ParameterSet.Config
as cms
3 from RecoEgamma.EgammaTools.cleanedEcalDrivenGsfElectronsHGC_cfi
import cleanedEcalDrivenGsfElectronsHGC
4 from RecoEgamma.EgammaTools.hgcalElectronIDValueMap_cff
import hgcalElectronIDValueMap
5 from PhysicsTools.PatAlgos.PATElectronProducer_cfi
import PATElectronProducer
7 from RecoLocalCalo.HGCalRecProducers.hgcalRecHitMapProducer_cfi
import hgcalRecHitMapProducer
9 hgcElectronID = hgcalElectronIDValueMap.clone(
10 electrons =
"cleanedEcalDrivenGsfElectronsHGC",
12 patElectronsHGC = PATElectronProducer.clone(
13 electronSource =
"cleanedEcalDrivenGsfElectronsHGC",
14 beamLineSrc =
"offlineBeamSpot",
15 pvSrc =
"offlinePrimaryVertices",
16 addElectronID =
False,
18 addMVAVariables =
False,
19 embedGenMatch =
False,
20 embedGsfElectronCore =
True,
22 embedSuperCluster =
True,
23 embedPflowSuperCluster =
False,
24 embedSeedCluster =
True,
25 embedBasicClusters =
False,
26 embedPreshowerClusters =
False,
27 embedPflowBasicClusters =
False,
28 embedPflowPreshowerClusters=
False,
29 embedPFCandidate =
False,
32 embedHighLevelSelection =
True,
34 userClasses = cms.PSet( src = cms.VInputTag(
'')),
35 userFloats = cms.PSet( src = cms.VInputTag(
36 [cms.InputTag(
"hgcElectronID", key)
for key
in hgcElectronID.variables]
38 userInts = cms.PSet( src = cms.VInputTag(
'')),
39 userCands = cms.PSet( src = cms.VInputTag(
'')),
40 userFunctions = cms.vstring(),
41 userFunctionLabels = cms.vstring()
44 selectedPatElectronsHGC = cms.EDFilter(
"PATElectronSelector",
45 src = cms.InputTag(
"patElectronsHGC"),
46 cut = cms.string(
"!isEB && pt >= 10."),
48 slimmedElectronsHGC = slimmedElectrons.clone(
49 src =
"selectedPatElectronsHGC",
50 linkToPackedPFCandidates =
False,
51 saveNonZSClusterShapes =
"0",
52 modifyElectrons =
False,
55 slimmedElectronsHGCTask = cms.Task(
56 cleanedEcalDrivenGsfElectronsHGC,
59 selectedPatElectronsHGC,
64 from RecoEgamma.EgammaTools.hgcalPhotonIDValueMap_cff
import hgcalPhotonIDValueMap
65 from PhysicsTools.PatAlgos.PATPhotonProducer_cfi
import PATPhotonProducer
68 hgcPhotonID = hgcalPhotonIDValueMap.clone()
70 patPhotonsHGC = PATPhotonProducer.clone(
71 photonSource =
"photonsHGC",
72 electronSource =
"ecalDrivenGsfElectronsHGC",
73 beamLineSrc =
"offlineBeamSpot",
76 embedSuperCluster =
True,
77 embedSeedCluster =
True,
78 embedBasicClusters =
False,
79 embedPreshowerClusters =
False,
81 saveRegressionData =
False,
82 embedGenMatch =
False,
83 isolationValues = cms.PSet(),
85 userClasses = cms.PSet( src = cms.VInputTag(
'')),
86 userFloats = cms.PSet( src = cms.VInputTag(
87 [cms.InputTag(
"hgcPhotonID", key)
for key
in hgcPhotonID.variables]
89 userInts = cms.PSet( src = cms.VInputTag(
'')),
90 userCands = cms.PSet( src = cms.VInputTag(
'')),
91 userFunctions = cms.vstring(),
92 userFunctionLabels = cms.vstring()
95 selectedPatPhotonsHGC = cms.EDFilter(
"PATPhotonSelector",
96 src = cms.InputTag(
"patPhotonsHGC"),
97 cut = cms.string(
"!isEB && pt >= 15."),
99 slimmedPhotonsHGC = slimmedPhotons.clone(
100 src =
"selectedPatPhotonsHGC",
101 linkToPackedPFCandidates =
False,
102 saveNonZSClusterShapes =
"0",
103 modifyPhotons =
False,
106 slimmedPhotonsHGCTask = cms.Task(
109 selectedPatPhotonsHGC,
113 slimmedEgammaHGCTask = cms.Task(
114 hgcalRecHitMapProducer,
115 slimmedElectronsHGCTask,
116 slimmedPhotonsHGCTask