1 import FWCore.ParameterSet.Config
as cms
3 import RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi
5 interestingEcalDetIdEB = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
6 basicClustersLabel = cms.InputTag(
"hybridSuperClusters",
"hybridBarrelBasicClusters"),
7 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEB")
10 interestingEcalDetIdEBU = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
11 basicClustersLabel = cms.InputTag(
"hybridSuperClusters",
"uncleanOnlyHybridBarrelBasicClusters"),
12 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEB")
15 interestingEcalDetIdEE = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
16 basicClustersLabel = cms.InputTag(
"multi5x5SuperClusters",
"multi5x5EndcapBasicClusters"),
17 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEE")
20 interestingEcalDetIdPFEB = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
21 basicClustersLabel = cms.InputTag(
"particleFlowSuperClusterECAL",
"particleFlowBasicClusterECALBarrel"),
22 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEB")
25 interestingEcalDetIdPFEE = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
26 basicClustersLabel = cms.InputTag(
"particleFlowSuperClusterECAL",
"particleFlowBasicClusterECALEndcap"),
27 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEE")
30 interestingEcalDetIdPFES = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
31 basicClustersLabel = cms.InputTag(
"particleFlowSuperClusterECAL",
"particleFlowBasicClusterECALPreshower"),
32 recHitsLabel = cms.InputTag(
"ecalPreshowerRecHit",
"EcalRecHitsES"),
33 severityLevel = cms.int32(-1),
34 keepNextToDead = cms.bool(
False),
35 keepNextToBoundary = cms.bool(
False)
38 interestingEcalDetIdOOTPFEB = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
39 basicClustersLabel = cms.InputTag(
"particleFlowSuperClusterOOTECAL",
"particleFlowBasicClusterOOTECALBarrel"),
40 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEB")
43 interestingEcalDetIdOOTPFEE = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
44 basicClustersLabel = cms.InputTag(
"particleFlowSuperClusterOOTECAL",
"particleFlowBasicClusterOOTECALEndcap"),
45 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEE")
48 interestingEcalDetIdOOTPFES = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
49 basicClustersLabel = cms.InputTag(
"particleFlowSuperClusterOOTECAL",
"particleFlowBasicClusterOOTECALPreshower"),
50 recHitsLabel = cms.InputTag(
"ecalPreshowerRecHit",
"EcalRecHitsES"),
51 severityLevel = cms.int32(-1),
52 keepNextToDead = cms.bool(
False),
53 keepNextToBoundary = cms.bool(
False)
56 interestingEcalDetIdRefinedEB = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
57 basicClustersLabel = cms.InputTag(
"particleFlowEGamma",
"EBEEClusters"),
58 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEB")
61 interestingEcalDetIdRefinedEE = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
62 basicClustersLabel = cms.InputTag(
"particleFlowEGamma",
"EBEEClusters"),
63 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEE")
66 interestingEcalDetIdRefinedES = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
67 basicClustersLabel = cms.InputTag(
"particleFlowEGamma",
"ESClusters"),
68 recHitsLabel = cms.InputTag(
"ecalPreshowerRecHit",
"EcalRecHitsES"),
69 severityLevel = cms.int32(-1),
70 keepNextToDead = cms.bool(
False),
71 keepNextToBoundary = cms.bool(
False)
78 interestingTrackEcalDetIds = cms.EDProducer(
'InterestingTrackEcalDetIdProducer',
79 TrackAssociatorParameterBlock,
80 TrackCollection = cms.InputTag(
"generalTracks"),
81 MinTrackPt = cms.double(50.0)
84 reducedEcalRecHitsEB = cms.EDProducer(
"ReducedRecHitCollectionProducer",
85 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEB"),
86 interestingDetIdCollections = cms.VInputTag(
88 cms.InputTag(
"interestingEcalDetIdEB"),
89 cms.InputTag(
"interestingEcalDetIdEBU"),
91 cms.InputTag(
"interestingEcalDetIdPFEB"),
92 cms.InputTag(
"interestingEcalDetIdRefinedEB"),
94 cms.InputTag(
"interestingEcalDetIdOOTPFEB"),
96 cms.InputTag(
"interestingGedEleIsoDetIdEB"),
97 cms.InputTag(
"interestingGedGamIsoDetIdEB"),
98 cms.InputTag(
"interestingOotGamIsoDetIdEB"),
99 cms.InputTag(
"interestingGamIsoDetIdEB"),
103 cms.InputTag(
"muonEcalDetIds"),
105 cms.InputTag(
"interestingTrackEcalDetIds")
107 reducedHitsCollection = cms.string(
'')
110 reducedEcalRecHitsEE = cms.EDProducer(
"ReducedRecHitCollectionProducer",
111 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEE"),
112 interestingDetIdCollections = cms.VInputTag(
114 cms.InputTag(
"interestingEcalDetIdEE"),
116 cms.InputTag(
"interestingEcalDetIdPFEE"),
117 cms.InputTag(
"interestingEcalDetIdRefinedEE"),
119 cms.InputTag(
"interestingEcalDetIdOOTPFEE"),
121 cms.InputTag(
"interestingGedEleIsoDetIdEE"),
122 cms.InputTag(
"interestingGedGamIsoDetIdEE"),
123 cms.InputTag(
"interestingOotGamIsoDetIdEE"),
124 cms.InputTag(
"interestingGamIsoDetIdEE"),
128 cms.InputTag(
"muonEcalDetIds"),
130 cms.InputTag(
"interestingTrackEcalDetIds")
132 reducedHitsCollection = cms.string(
'')
135 reducedEcalRecHitsES = cms.EDProducer(
"ReducedESRecHitCollectionProducer",
136 scEtThreshold = cms.double(15),
137 EcalRecHitCollectionES = cms.InputTag(
'ecalPreshowerRecHit',
'EcalRecHitsES'),
138 EndcapSuperClusterCollection = cms.InputTag(
'correctedMulti5x5SuperClustersWithPreshower'),
139 OutputLabel_ES = cms.string(
''),
140 interestingDetIds = cms.VInputTag(
141 cms.InputTag(
"interestingEcalDetIdPFES"),
142 cms.InputTag(
"interestingEcalDetIdRefinedES"),
143 cms.InputTag(
"interestingEcalDetIdOOTPFES"),
145 interestingDetIdsNotToClean = cms.VInputTag(
146 cms.InputTag(
"interestingGedEgammaIsoESDetId"),
147 cms.InputTag(
"interestingOotEgammaIsoESDetId"),
154 reducedEcalRecHitsTask = cms.Task(interestingEcalDetIdEB,interestingEcalDetIdEBU,
155 interestingEcalDetIdEE,
156 interestingEcalDetIdPFEB,interestingEcalDetIdPFEE,interestingEcalDetIdPFES,
157 interestingEcalDetIdOOTPFEB,interestingEcalDetIdOOTPFEE,interestingEcalDetIdOOTPFES,
158 interestingEcalDetIdRefinedEB,interestingEcalDetIdRefinedEE,interestingEcalDetIdRefinedES,
159 interestingTrackEcalDetIds,
160 reducedEcalRecHitsEB,
161 reducedEcalRecHitsEE,
163 reducedEcalRecHitsES)
164 reducedEcalRecHitsSequence = cms.Sequence(reducedEcalRecHitsTask)
166 reducedEcalRecHitsSequenceEcalOnlyTask = cms.Task(interestingEcalDetIdEB,interestingEcalDetIdEBU,
167 interestingEcalDetIdEE,
168 reducedEcalRecHitsEB,
169 reducedEcalRecHitsEE,
171 reducedEcalRecHitsSequenceEcalOnly = cms.Sequence(reducedEcalRecHitsSequenceEcalOnlyTask)
173 _phase2_reducedEcalRecHitsTask = reducedEcalRecHitsTask.copy()
174 _phase2_reducedEcalRecHitsTask.remove(reducedEcalRecHitsES)
176 from Configuration.Eras.Modifier_phase2_common_cff
import phase2_common
177 phase2_common.toReplaceWith( reducedEcalRecHitsTask , _phase2_reducedEcalRecHitsTask )
180 _fastSim_reducedEcalRecHitsTask = reducedEcalRecHitsTask.copyAndExclude(seldigisTask)
181 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
182 fastSim.toReplaceWith( reducedEcalRecHitsTask, _fastSim_reducedEcalRecHitsTask)
184 _pp_on_AA_reducedEcalRecHitsTask = reducedEcalRecHitsTask.copy()
185 _pp_on_AA_reducedEcalRecHitsTask.remove(interestingEcalDetIdOOTPFEB)
186 _pp_on_AA_reducedEcalRecHitsTask.remove(interestingEcalDetIdOOTPFEE)
187 _pp_on_AA_reducedEcalRecHitsTask.remove(interestingEcalDetIdOOTPFES)
189 from Configuration.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
190 pp_on_AA_2018.toReplaceWith(reducedEcalRecHitsTask, _pp_on_AA_reducedEcalRecHitsTask)
192 pp_on_AA_2018.toModify(reducedEcalRecHitsEB.interestingDetIdCollections, func =
lambda list: list.remove(cms.InputTag(
"interestingEcalDetIdOOTPFEB")) )
193 pp_on_AA_2018.toModify(reducedEcalRecHitsEB.interestingDetIdCollections, func =
lambda list: list.remove(cms.InputTag(
"interestingOotGamIsoDetIdEB")) )
194 pp_on_AA_2018.toModify(reducedEcalRecHitsEE.interestingDetIdCollections, func =
lambda list: list.remove(cms.InputTag(
"interestingEcalDetIdOOTPFEE")) )
195 pp_on_AA_2018.toModify(reducedEcalRecHitsEE.interestingDetIdCollections, func =
lambda list: list.remove(cms.InputTag(
"interestingOotGamIsoDetIdEE")) )
196 pp_on_AA_2018.toModify(reducedEcalRecHitsES.interestingDetIds, func =
lambda list: list.remove(cms.InputTag(
"interestingEcalDetIdOOTPFES")) )
197 pp_on_AA_2018.toModify(reducedEcalRecHitsES.interestingDetIdsNotToClean, func =
lambda list: list.remove(cms.InputTag(
"interestingOotEgammaIsoESDetId")) )
199 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff
import egamma_lowPt_exclusive
200 egamma_lowPt_exclusive.toModify(reducedEcalRecHitsES,