1 import FWCore.ParameterSet.Config
as cms
3 from RecoEgamma.EgammaTools.cleanedEcalDrivenGsfElectronsFromMultiCl_cfi
import cleanedEcalDrivenGsfElectronsFromMultiCl
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 =
"cleanedEcalDrivenGsfElectronsFromMultiCl",
12 patElectronsFromMultiCl = PATElectronProducer.clone(
13 electronSource =
"cleanedEcalDrivenGsfElectronsFromMultiCl",
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 selectedPatElectronsFromMultiCl = cms.EDFilter(
"PATElectronSelector",
45 src = cms.InputTag(
"patElectronsFromMultiCl"),
46 cut = cms.string(
"!isEB && pt >= 10."),
48 slimmedElectronsFromMultiCl = slimmedElectrons.clone(
49 src =
"selectedPatElectronsFromMultiCl",
50 linkToPackedPFCandidates =
False,
51 saveNonZSClusterShapes =
"0",
52 modifyElectrons =
False,
55 slimmedElectronsFromMultiClTask = cms.Task(
56 cleanedEcalDrivenGsfElectronsFromMultiCl,
58 patElectronsFromMultiCl,
59 selectedPatElectronsFromMultiCl,
60 slimmedElectronsFromMultiCl
64 from RecoEgamma.EgammaTools.hgcalPhotonIDValueMap_cff
import hgcalPhotonIDValueMap
65 from PhysicsTools.PatAlgos.PATPhotonProducer_cfi
import PATPhotonProducer
68 hgcPhotonID = hgcalPhotonIDValueMap.clone()
70 patPhotonsFromMultiCl = PATPhotonProducer.clone(
71 photonSource =
"photonsFromMultiCl",
72 electronSource =
"ecalDrivenGsfElectronsFromMultiCl",
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 selectedPatPhotonsFromMultiCl = cms.EDFilter(
"PATPhotonSelector",
96 src = cms.InputTag(
"patPhotonsFromMultiCl"),
97 cut = cms.string(
"!isEB && pt >= 15."),
99 slimmedPhotonsFromMultiCl = slimmedPhotons.clone(
100 src =
"selectedPatPhotonsFromMultiCl",
101 linkToPackedPFCandidates =
False,
102 saveNonZSClusterShapes =
"0",
103 modifyPhotons =
False,
106 slimmedPhotonsFromMultiClTask = cms.Task(
108 patPhotonsFromMultiCl,
109 selectedPatPhotonsFromMultiCl,
110 slimmedPhotonsFromMultiCl
113 slimmedEgammaFromMultiClTask = cms.Task(
114 hgcalRecHitMapProducer,
115 slimmedElectronsFromMultiClTask,
116 slimmedPhotonsFromMultiClTask