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
8 hgcElectronID = hgcalElectronIDValueMap.clone(
9 electrons = cms.InputTag(
"cleanedEcalDrivenGsfElectronsFromMultiCl"),
11 patElectronsFromMultiCl = PATElectronProducer.clone(
12 electronSource = cms.InputTag(
"cleanedEcalDrivenGsfElectronsFromMultiCl"),
13 beamLineSrc = cms.InputTag(
"offlineBeamSpot"),
14 pvSrc = cms.InputTag(
"offlinePrimaryVertices"),
15 addElectronID = cms.bool(
False),
16 addGenMatch = cms.bool(
False),
17 addMVAVariables= cms.bool(
False),
18 embedGenMatch = cms.bool(
False),
19 embedGsfElectronCore = cms.bool(
True),
20 embedGsfTrack = cms.bool(
True),
21 embedSuperCluster = cms.bool(
True),
22 embedPflowSuperCluster = cms.bool(
False),
23 embedSeedCluster = cms.bool(
True),
24 embedBasicClusters = cms.bool(
False),
25 embedPreshowerClusters = cms.bool(
False),
26 embedPflowBasicClusters = cms.bool(
False),
27 embedPflowPreshowerClusters= cms.bool(
False),
28 embedPFCandidate = cms.bool(
False),
29 embedTrack = cms.bool(
True),
30 embedRecHits = cms.bool(
False),
31 embedHighLevelSelection = cms.bool(
True),
33 userClasses = cms.PSet( src = cms.VInputTag(
'')),
34 userFloats = cms.PSet( src = cms.VInputTag(
35 [cms.InputTag(
"hgcElectronID", key)
for key
in hgcElectronID.variables]
37 userInts = cms.PSet( src = cms.VInputTag(
'')),
38 userCands = cms.PSet( src = cms.VInputTag(
'')),
39 userFunctions = cms.vstring(),
40 userFunctionLabels = cms.vstring()
43 selectedPatElectronsFromMultiCl = cms.EDFilter(
"PATElectronSelector",
44 src = cms.InputTag(
"patElectronsFromMultiCl"),
45 cut = cms.string(
"!isEB && pt >= 10."),
47 slimmedElectronsFromMultiCl = slimmedElectrons.clone(
48 src = cms.InputTag(
"selectedPatElectronsFromMultiCl"),
49 linkToPackedPFCandidates = cms.bool(
False),
50 saveNonZSClusterShapes = cms.string(
"0"),
51 modifyElectrons = cms.bool(
False),
54 slimmedElectronsFromMultiClTask = cms.Task(
55 cleanedEcalDrivenGsfElectronsFromMultiCl,
57 patElectronsFromMultiCl,
58 selectedPatElectronsFromMultiCl,
59 slimmedElectronsFromMultiCl
63 from RecoEgamma.EgammaTools.hgcalPhotonIDValueMap_cff
import hgcalPhotonIDValueMap
64 from PhysicsTools.PatAlgos.PATPhotonProducer_cfi
import PATPhotonProducer
67 hgcPhotonID = hgcalPhotonIDValueMap.clone()
68 patPhotonsFromMultiCl = PATPhotonProducer.clone(
69 photonSource = cms.InputTag(
"photonsFromMultiCl"),
70 electronSource = cms.InputTag(
"ecalDrivenGsfElectronsFromMultiCl"),
71 beamLineSrc = cms.InputTag(
"offlineBeamSpot"),
72 addPhotonID = cms.bool(
False),
73 addGenMatch = cms.bool(
False),
74 embedSuperCluster = cms.bool(
True),
75 embedSeedCluster = cms.bool(
True),
76 embedBasicClusters = cms.bool(
False),
77 embedPreshowerClusters = cms.bool(
False),
78 embedRecHits = cms.bool(
False),
79 saveRegressionData = cms.bool(
False),
80 embedGenMatch = cms.bool(
False),
81 isolationValues = cms.PSet(),
83 userClasses = cms.PSet( src = cms.VInputTag(
'')),
84 userFloats = cms.PSet( src = cms.VInputTag(
85 [cms.InputTag(
"hgcPhotonID", key)
for key
in hgcPhotonID.variables]
87 userInts = cms.PSet( src = cms.VInputTag(
'')),
88 userCands = cms.PSet( src = cms.VInputTag(
'')),
89 userFunctions = cms.vstring(),
90 userFunctionLabels = cms.vstring()
93 selectedPatPhotonsFromMultiCl = cms.EDFilter(
"PATPhotonSelector",
94 src = cms.InputTag(
"patPhotonsFromMultiCl"),
95 cut = cms.string(
"!isEB && pt >= 15."),
97 slimmedPhotonsFromMultiCl = slimmedPhotons.clone(
98 src = cms.InputTag(
"selectedPatPhotonsFromMultiCl"),
99 linkToPackedPFCandidates = cms.bool(
False),
100 saveNonZSClusterShapes = cms.string(
"0"),
101 modifyPhotons = cms.bool(
False),
104 slimmedPhotonsFromMultiClTask = cms.Task(
106 patPhotonsFromMultiCl,
107 selectedPatPhotonsFromMultiCl,
108 slimmedPhotonsFromMultiCl
111 slimmedEgammaFromMultiClTask = cms.Task(
112 slimmedElectronsFromMultiClTask,
113 slimmedPhotonsFromMultiClTask