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 interestingEcalDetIdRefinedEB = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
39 basicClustersLabel = cms.InputTag(
"particleFlowEGamma",
"EBEEClusters"),
40 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEB")
43 interestingEcalDetIdRefinedEE = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
44 basicClustersLabel = cms.InputTag(
"particleFlowEGamma",
"EBEEClusters"),
45 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEE")
48 interestingEcalDetIdRefinedES = RecoEcal.EgammaClusterProducers.interestingDetIdCollectionProducer_cfi.interestingDetIdCollectionProducer.clone(
49 basicClustersLabel = cms.InputTag(
"particleFlowEGamma",
"ESClusters"),
50 recHitsLabel = cms.InputTag(
"ecalPreshowerRecHit",
"EcalRecHitsES"),
51 severityLevel = cms.int32(-1),
52 keepNextToDead = cms.bool(
False),
53 keepNextToBoundary = cms.bool(
False)
60 interestingTrackEcalDetIds = cms.EDProducer(
'InterestingTrackEcalDetIdProducer',
61 TrackAssociatorParameterBlock,
62 TrackCollection = cms.InputTag(
"generalTracks"),
63 MinTrackPt = cms.double(50.0)
66 reducedEcalRecHitsEB = cms.EDProducer(
"ReducedRecHitCollectionProducer",
67 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEB"),
68 interestingDetIdCollections = cms.VInputTag(
70 cms.InputTag(
"interestingEcalDetIdEB"),
71 cms.InputTag(
"interestingEcalDetIdEBU"),
73 cms.InputTag(
"interestingEcalDetIdPFEB"),
74 cms.InputTag(
"interestingEcalDetIdRefinedEB"),
76 cms.InputTag(
"interestingGedEleIsoDetIdEB"),
77 cms.InputTag(
"interestingGedGamIsoDetIdEB"),
78 cms.InputTag(
"interestingGamIsoDetIdEB"),
82 cms.InputTag(
"muonEcalDetIds"),
84 cms.InputTag(
"interestingTrackEcalDetIds")
86 reducedHitsCollection = cms.string(
'')
89 reducedEcalRecHitsEE = cms.EDProducer(
"ReducedRecHitCollectionProducer",
90 recHitsLabel = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEE"),
91 interestingDetIdCollections = cms.VInputTag(
93 cms.InputTag(
"interestingEcalDetIdEE"),
95 cms.InputTag(
"interestingEcalDetIdPFEE"),
96 cms.InputTag(
"interestingEcalDetIdRefinedEE"),
98 cms.InputTag(
"interestingGedEleIsoDetIdEE"),
99 cms.InputTag(
"interestingGedGamIsoDetIdEE"),
100 cms.InputTag(
"interestingGamIsoDetIdEE"),
104 cms.InputTag(
"muonEcalDetIds"),
106 cms.InputTag(
"interestingTrackEcalDetIds")
108 reducedHitsCollection = cms.string(
'')
111 reducedEcalRecHitsES = cms.EDProducer(
"ReducedESRecHitCollectionProducer",
112 scEtThreshold = cms.double(15),
113 EcalRecHitCollectionES = cms.InputTag(
'ecalPreshowerRecHit',
'EcalRecHitsES'),
114 EndcapSuperClusterCollection = cms.InputTag(
'correctedMulti5x5SuperClustersWithPreshower'),
115 OutputLabel_ES = cms.string(
''),
116 interestingDetIds = cms.VInputTag(
117 cms.InputTag(
"interestingEcalDetIdPFES"),
118 cms.InputTag(
"interestingEcalDetIdRefinedES"),
120 interestingDetIdsNotToClean = cms.VInputTag(
121 cms.InputTag(
"interestingGedEgammaIsoESDetId"),
128 reducedEcalRecHitsSequence = cms.Sequence(interestingEcalDetIdEB*interestingEcalDetIdEBU*
129 interestingEcalDetIdEE*
130 interestingEcalDetIdPFEB*interestingEcalDetIdPFEE*interestingEcalDetIdPFES*
131 interestingEcalDetIdRefinedEB*interestingEcalDetIdRefinedEE*interestingEcalDetIdRefinedES*
132 interestingTrackEcalDetIds*
133 reducedEcalRecHitsEB*
134 reducedEcalRecHitsEE*
136 reducedEcalRecHitsES)
138 reducedEcalRecHitsSequenceEcalOnly = cms.Sequence(interestingEcalDetIdEB*interestingEcalDetIdEBU*
139 interestingEcalDetIdEE*
140 reducedEcalRecHitsEB*
141 reducedEcalRecHitsEE*
145 _phase2_reducedEcalRecHitsSequence = reducedEcalRecHitsSequence.copy()
146 _phase2_reducedEcalRecHitsSequence.remove(reducedEcalRecHitsES)
148 from Configuration.Eras.Modifier_phase2_common_cff
import phase2_common
149 phase2_common.toReplaceWith( reducedEcalRecHitsSequence , _phase2_reducedEcalRecHitsSequence )