1 import FWCore.ParameterSet.Config
as cms
8 interestingGedEleIsoDetIdEB = RecoEgamma.EgammaIsolationAlgos.interestingEleIsoDetIdModule_cff.interestingEleIsoDetId.clone(
9 recHitsLabel =
'ecalRecHit:EcalRecHitsEB',
10 emObjectLabel =
'gedGsfElectrons',
19 interestingGedEleIsoDetIdEE = RecoEgamma.EgammaIsolationAlgos.interestingEleIsoDetIdModule_cff.interestingEleIsoDetId.clone(
20 recHitsLabel =
'ecalRecHit:EcalRecHitsEE',
21 emObjectLabel =
'gedGsfElectrons',
30 interestingGedGamIsoDetIdEB = RecoEgamma.EgammaIsolationAlgos.interestingGamIsoDetIdModule_cff.interestingGamIsoDetId.clone(
31 recHitsLabel =
'ecalRecHit:EcalRecHitsEB',
32 emObjectLabel =
'gedPhotons',
41 interestingGedGamIsoDetIdEE = RecoEgamma.EgammaIsolationAlgos.interestingGamIsoDetIdModule_cff.interestingGamIsoDetId.clone(
42 recHitsLabel =
'ecalRecHit:EcalRecHitsEE',
43 emObjectLabel =
'gedPhotons',
51 interestingOotGamIsoDetIdEB = interestingGedGamIsoDetIdEB.clone(emObjectLabel =
'ootPhotons')
52 interestingOotGamIsoDetIdEE = interestingGedGamIsoDetIdEE.clone(emObjectLabel =
'ootPhotons')
55 interestingGamIsoDetIdEB = RecoEgamma.EgammaIsolationAlgos.interestingGamIsoDetIdModule_cff.interestingGamIsoDetId.clone(
56 recHitsLabel =
'ecalRecHit:EcalRecHitsEB',
57 emObjectLabel =
'photons',
66 interestingGamIsoDetIdEE = RecoEgamma.EgammaIsolationAlgos.interestingGamIsoDetIdModule_cff.interestingGamIsoDetId.clone(
67 recHitsLabel =
'ecalRecHit:EcalRecHitsEE',
68 emObjectLabel =
'photons',
76 import RecoEgamma.EgammaIsolationAlgos.interestingGedEgammaIsoHCALDetId_cfi
77 interestingEgammaIsoHCALSel = cms.PSet(
78 maxDIEta = cms.int32(5),
79 maxDIPhi = cms.int32(5),
80 minEnergyHB = cms.double(0.8),
81 minEnergyHEDepth1 = cms.double(0.1),
82 minEnergyHEDefault = cms.double(0.2),
84 interestingGedEgammaIsoHCALDetId = RecoEgamma.EgammaIsolationAlgos.interestingGedEgammaIsoHCALDetId_cfi.interestingGedEgammaIsoHCALDetId.clone(
85 recHitsLabel =
"hbhereco",
86 elesLabel =
"gedGsfElectrons",
87 phosLabel =
"gedPhotons",
88 superClustersLabel =
"particleFlowEGamma",
92 hitSelection = interestingEgammaIsoHCALSel
96 interestingOotEgammaIsoHCALDetId = interestingGedEgammaIsoHCALDetId.clone(
97 phosLabel =
"ootPhotons",
99 superClustersLabel =
""
102 import RecoEgamma.EgammaIsolationAlgos.interestingEgammaIsoESDetIdModule_cff
103 interestingGedEgammaIsoESDetId = RecoEgamma.EgammaIsolationAlgos.interestingEgammaIsoESDetIdModule_cff.interestingEgammaIsoESDetId.clone(
104 eeClusToESMapLabel =
"particleFlowClusterECALRemade",
105 ecalPFClustersLabel=
"particleFlowClusterECALRemade",
106 elesLabel =
"gedGsfElectrons",
107 phosLabel =
"gedPhotons",
108 superClustersLabel =
"particleFlowEGamma",
116 interestingOotEgammaIsoESDetId = interestingGedEgammaIsoESDetId.clone(
117 eeClusToESMapLabel =
"particleFlowClusterOOTECAL",
118 ecalPFClustersLabel=
"particleFlowClusterOOTECAL",
119 phosLabel =
"ootPhotons",
121 superClustersLabel =
""
124 interestingEgammaIsoDetIdsTask = cms.Task(
125 interestingGedEleIsoDetIdEB ,
126 interestingGedEleIsoDetIdEE ,
127 interestingGedGamIsoDetIdEB ,
128 interestingGedGamIsoDetIdEE ,
129 interestingOotGamIsoDetIdEB ,
130 interestingOotGamIsoDetIdEE ,
131 interestingGamIsoDetIdEB ,
132 interestingGamIsoDetIdEE ,
133 interestingGedEgammaIsoHCALDetId,
134 interestingOotEgammaIsoHCALDetId,
135 interestingGedEgammaIsoESDetId,
136 interestingOotEgammaIsoESDetId
138 interestingEgammaIsoDetIds = cms.Sequence(interestingEgammaIsoDetIdsTask)
140 _pp_on_AA_interestingEgammaIsoDetIdsTask = interestingEgammaIsoDetIdsTask.copy()
141 _pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotGamIsoDetIdEB)
142 _pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotGamIsoDetIdEE)
143 _pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotEgammaIsoHCALDetId)
144 _pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotEgammaIsoESDetId)
146 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
147 pp_on_AA.toReplaceWith(interestingEgammaIsoDetIdsTask, _pp_on_AA_interestingEgammaIsoDetIdsTask)
149 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff
import egamma_lowPt_exclusive
150 egamma_lowPt_exclusive.toModify(interestingGedEgammaIsoESDetId,
155 egamma_lowPt_exclusive.toModify(interestingGedEgammaIsoHCALDetId,
161 from Configuration.Eras.Modifier_run3_HB_cff
import run3_HB
162 run3_HB.toModify(interestingEgammaIsoHCALSel,