1 import FWCore.ParameterSet.Config
as cms
8 interestingGedEleIsoDetIdEB = RecoEgamma.EgammaIsolationAlgos.interestingEleIsoDetIdModule_cff.interestingEleIsoDetId.clone()
9 interestingGedEleIsoDetIdEB.recHitsLabel =
'ecalRecHit:EcalRecHitsEB' 10 interestingGedEleIsoDetIdEB.emObjectLabel =
'gedGsfElectrons' 11 interestingGedEleIsoDetIdEB.etCandCut = 0.0
12 interestingGedEleIsoDetIdEB.energyCut = 0.095
13 interestingGedEleIsoDetIdEB.etCut = 0.0
14 interestingGedEleIsoDetIdEB.outerRadius = 0.6
15 interestingGedEleIsoDetIdEB.innerRadius = 0.0
18 interestingGedEleIsoDetIdEE = RecoEgamma.EgammaIsolationAlgos.interestingEleIsoDetIdModule_cff.interestingEleIsoDetId.clone()
19 interestingGedEleIsoDetIdEE.recHitsLabel =
'ecalRecHit:EcalRecHitsEE' 20 interestingGedEleIsoDetIdEE.emObjectLabel =
'gedGsfElectrons' 21 interestingGedEleIsoDetIdEE.etCandCut = 0.0
22 interestingGedEleIsoDetIdEE.energyCut = 0.0
23 interestingGedEleIsoDetIdEE.etCut = 0.110
24 interestingGedEleIsoDetIdEE.outerRadius = 0.6
25 interestingGedEleIsoDetIdEE.innerRadius = 0.0
28 interestingGedGamIsoDetIdEB = RecoEgamma.EgammaIsolationAlgos.interestingGamIsoDetIdModule_cff.interestingGamIsoDetId.clone()
29 interestingGedGamIsoDetIdEB.recHitsLabel =
'ecalRecHit:EcalRecHitsEB' 30 interestingGedGamIsoDetIdEB.emObjectLabel =
'gedPhotons' 31 interestingGedGamIsoDetIdEB.etCandCut = 0.0
32 interestingGedGamIsoDetIdEB.energyCut = 0.095
33 interestingGedGamIsoDetIdEB.etCut = 0.0
34 interestingGedGamIsoDetIdEB.outerRadius = 0.6
35 interestingGedGamIsoDetIdEB.innerRadius = 0.0
38 interestingGedGamIsoDetIdEE = RecoEgamma.EgammaIsolationAlgos.interestingGamIsoDetIdModule_cff.interestingGamIsoDetId.clone()
39 interestingGedGamIsoDetIdEE.recHitsLabel =
'ecalRecHit:EcalRecHitsEE' 40 interestingGedGamIsoDetIdEE.emObjectLabel =
'gedPhotons' 41 interestingGedGamIsoDetIdEE.etCandCut = 0.0
42 interestingGedGamIsoDetIdEE.energyCut = 0.0
43 interestingGedGamIsoDetIdEE.etCut = 0.110
44 interestingGedGamIsoDetIdEE.outerRadius = 0.6
45 interestingGedGamIsoDetIdEE.innerRadius = 0.0
48 interestingOotGamIsoDetIdEB = interestingGedGamIsoDetIdEB.clone(emObjectLabel =
'ootPhotons')
49 interestingOotGamIsoDetIdEE = interestingGedGamIsoDetIdEE.clone(emObjectLabel =
'ootPhotons')
52 interestingGamIsoDetIdEB = RecoEgamma.EgammaIsolationAlgos.interestingGamIsoDetIdModule_cff.interestingGamIsoDetId.clone()
53 interestingGamIsoDetIdEB.recHitsLabel =
'ecalRecHit:EcalRecHitsEB' 54 interestingGamIsoDetIdEB.emObjectLabel =
'photons' 55 interestingGamIsoDetIdEB.etCandCut = 0.0
56 interestingGamIsoDetIdEB.energyCut = 0.095
57 interestingGamIsoDetIdEB.etCut = 0.0
58 interestingGamIsoDetIdEB.outerRadius = 0.6
59 interestingGamIsoDetIdEB.innerRadius = 0.0
62 interestingGamIsoDetIdEE = RecoEgamma.EgammaIsolationAlgos.interestingGamIsoDetIdModule_cff.interestingGamIsoDetId.clone()
63 interestingGamIsoDetIdEE.recHitsLabel =
'ecalRecHit:EcalRecHitsEE' 64 interestingGamIsoDetIdEE.emObjectLabel =
'photons' 65 interestingGamIsoDetIdEE.etCandCut = 0.0
66 interestingGamIsoDetIdEE.energyCut = 0.0
67 interestingGamIsoDetIdEE.etCut = 0.110
68 interestingGamIsoDetIdEE.outerRadius = 0.6
69 interestingGamIsoDetIdEE.innerRadius = 0.0
71 import RecoEgamma.EgammaIsolationAlgos.interestingGedEgammaIsoHCALDetId_cfi
72 interestingGedEgammaIsoHCALDetId = RecoEgamma.EgammaIsolationAlgos.interestingGedEgammaIsoHCALDetId_cfi.interestingGedEgammaIsoHCALDetId.clone()
73 interestingEgammaIsoHCALSel = cms.PSet(
74 maxDIEta=cms.int32(5),
75 maxDIPhi=cms.int32(5),
76 minEnergyHB = cms.double(0.8),
77 minEnergyHEDepth1 = cms.double(0.1),
78 minEnergyHEDefault = cms.double(0.2),
80 interestingGedEgammaIsoHCALDetId.recHitsLabel=cms.InputTag(
"hbhereco")
81 interestingGedEgammaIsoHCALDetId.elesLabel=cms.InputTag(
"gedGsfElectrons")
82 interestingGedEgammaIsoHCALDetId.phosLabel=cms.InputTag(
"gedPhotons")
83 interestingGedEgammaIsoHCALDetId.superClustersLabel=cms.InputTag(
"particleFlowEGamma")
84 interestingGedEgammaIsoHCALDetId.minSCEt=cms.double(20)
85 interestingGedEgammaIsoHCALDetId.minEleEt=cms.double(20)
86 interestingGedEgammaIsoHCALDetId.minPhoEt=cms.double(20)
87 interestingGedEgammaIsoHCALDetId.hitSelection=interestingEgammaIsoHCALSel
90 interestingOotEgammaIsoHCALDetId = interestingGedEgammaIsoHCALDetId.clone()
91 interestingOotEgammaIsoHCALDetId.phosLabel=cms.InputTag(
"ootPhotons")
92 interestingOotEgammaIsoHCALDetId.elesLabel=cms.InputTag(
"")
93 interestingOotEgammaIsoHCALDetId.superClustersLabel=cms.InputTag(
"")
95 import RecoEgamma.EgammaIsolationAlgos.interestingEgammaIsoESDetIdModule_cff
96 interestingGedEgammaIsoESDetId = RecoEgamma.EgammaIsolationAlgos.interestingEgammaIsoESDetIdModule_cff.interestingEgammaIsoESDetId.clone()
97 interestingGedEgammaIsoESDetId.eeClusToESMapLabel=cms.InputTag(
"particleFlowClusterECALRemade")
98 interestingGedEgammaIsoESDetId.ecalPFClustersLabel=cms.InputTag(
"particleFlowClusterECALRemade")
99 interestingGedEgammaIsoESDetId.elesLabel=cms.InputTag(
"gedGsfElectrons")
100 interestingGedEgammaIsoESDetId.phosLabel=cms.InputTag(
"gedPhotons")
101 interestingGedEgammaIsoESDetId.superClustersLabel=cms.InputTag(
"particleFlowEGamma")
102 interestingGedEgammaIsoESDetId.minSCEt=cms.double(500)
103 interestingGedEgammaIsoESDetId.minEleEt=cms.double(20)
104 interestingGedEgammaIsoESDetId.minPhoEt=cms.double(20)
105 interestingGedEgammaIsoESDetId.maxDR=cms.double(0.4)
108 interestingOotEgammaIsoESDetId = interestingGedEgammaIsoESDetId.clone()
109 interestingOotEgammaIsoESDetId.eeClusToESMapLabel=cms.InputTag(
"particleFlowClusterOOTECAL")
110 interestingOotEgammaIsoESDetId.ecalPFClustersLabel=cms.InputTag(
"particleFlowClusterOOTECAL")
111 interestingOotEgammaIsoESDetId.phosLabel=cms.InputTag(
"ootPhotons")
112 interestingOotEgammaIsoESDetId.elesLabel=cms.InputTag(
"")
113 interestingOotEgammaIsoESDetId.superClustersLabel=cms.InputTag(
"")
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 interestingGedEgammaIsoESDetId,
127 interestingOotEgammaIsoESDetId
129 interestingEgammaIsoDetIds = cms.Sequence(interestingEgammaIsoDetIdsTask)
131 _pp_on_AA_interestingEgammaIsoDetIdsTask = interestingEgammaIsoDetIdsTask.copy()
132 _pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotGamIsoDetIdEB)
133 _pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotGamIsoDetIdEE)
134 _pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotEgammaIsoHCALDetId)
135 _pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotEgammaIsoESDetId)
137 from Configuration.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
138 pp_on_AA_2018.toReplaceWith(interestingEgammaIsoDetIdsTask, _pp_on_AA_interestingEgammaIsoDetIdsTask)