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 interestingOotEgammaIsoESDetId = RecoEgamma.EgammaIsolationAlgos.interestingEgammaIsoESDetIdModule_cff.interestingEgammaIsoESDetId.clone(
104 eeClusToESMapLabel =
"particleFlowClusterOOTECAL",
105 ecalPFClustersLabel=
"particleFlowClusterOOTECAL",
106 phosLabel =
"ootPhotons",
108 superClustersLabel =
"",
115 interestingEgammaIsoDetIdsTask = cms.Task(
116 interestingGedEleIsoDetIdEB ,
117 interestingGedEleIsoDetIdEE ,
118 interestingGedGamIsoDetIdEB ,
119 interestingGedGamIsoDetIdEE ,
120 interestingOotGamIsoDetIdEB ,
121 interestingOotGamIsoDetIdEE ,
122 interestingGamIsoDetIdEB ,
123 interestingGamIsoDetIdEE ,
124 interestingGedEgammaIsoHCALDetId,
125 interestingOotEgammaIsoHCALDetId,
126 interestingOotEgammaIsoESDetId
128 interestingEgammaIsoDetIds = cms.Sequence(interestingEgammaIsoDetIdsTask)
130 _pp_on_AA_interestingEgammaIsoDetIdsTask = interestingEgammaIsoDetIdsTask.copy()
131 _pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotGamIsoDetIdEB)
132 _pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotGamIsoDetIdEE)
133 _pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotEgammaIsoHCALDetId)
134 _pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotEgammaIsoESDetId)
136 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
137 pp_on_AA.toReplaceWith(interestingEgammaIsoDetIdsTask, _pp_on_AA_interestingEgammaIsoDetIdsTask)
139 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff
import egamma_lowPt_exclusive
141 egamma_lowPt_exclusive.toModify(interestingGedEgammaIsoHCALDetId,
147 from Configuration.Eras.Modifier_run3_HB_cff
import run3_HB
148 run3_HB.toModify(interestingEgammaIsoHCALSel,