CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
interestingEgammaIsoDetIdsSequence_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 
6 
8 interestingGedEleIsoDetIdEB = RecoEgamma.EgammaIsolationAlgos.interestingEleIsoDetIdModule_cff.interestingEleIsoDetId.clone(
9  recHitsLabel = 'ecalRecHit:EcalRecHitsEB',
10  emObjectLabel = 'gedGsfElectrons',
11  etCandCut = 0.0,
12  energyCut = 0.095,
13  etCut = 0.0,
14  outerRadius = 0.6,
15  innerRadius = 0.0
16 )
17 
19 interestingGedEleIsoDetIdEE = RecoEgamma.EgammaIsolationAlgos.interestingEleIsoDetIdModule_cff.interestingEleIsoDetId.clone(
20  recHitsLabel = 'ecalRecHit:EcalRecHitsEE',
21  emObjectLabel = 'gedGsfElectrons',
22  etCandCut = 0.0,
23  energyCut = 0.0,
24  etCut = 0.110,
25  outerRadius = 0.6,
26  innerRadius = 0.0
27 )
28 
30 interestingGedGamIsoDetIdEB = RecoEgamma.EgammaIsolationAlgos.interestingGamIsoDetIdModule_cff.interestingGamIsoDetId.clone(
31  recHitsLabel = 'ecalRecHit:EcalRecHitsEB',
32  emObjectLabel = 'gedPhotons',
33  etCandCut = 0.0,
34  energyCut = 0.095,
35  etCut = 0.0,
36  outerRadius = 0.6,
37  innerRadius = 0.0
38 )
39 
41 interestingGedGamIsoDetIdEE = RecoEgamma.EgammaIsolationAlgos.interestingGamIsoDetIdModule_cff.interestingGamIsoDetId.clone(
42  recHitsLabel = 'ecalRecHit:EcalRecHitsEE',
43  emObjectLabel = 'gedPhotons',
44  etCandCut = 0.0,
45  energyCut = 0.0,
46  etCut = 0.110,
47  outerRadius = 0.6,
48  innerRadius = 0.0
49 )
50 ## OOT photons
51 interestingOotGamIsoDetIdEB = interestingGedGamIsoDetIdEB.clone(emObjectLabel = 'ootPhotons')
52 interestingOotGamIsoDetIdEE = interestingGedGamIsoDetIdEE.clone(emObjectLabel = 'ootPhotons')
53 
55 interestingGamIsoDetIdEB = RecoEgamma.EgammaIsolationAlgos.interestingGamIsoDetIdModule_cff.interestingGamIsoDetId.clone(
56  recHitsLabel = 'ecalRecHit:EcalRecHitsEB',
57  emObjectLabel = 'photons',
58  etCandCut = 0.0,
59  energyCut = 0.095,
60  etCut = 0.0,
61  outerRadius = 0.6,
62  innerRadius = 0.0
63 )
64 
66 interestingGamIsoDetIdEE = RecoEgamma.EgammaIsolationAlgos.interestingGamIsoDetIdModule_cff.interestingGamIsoDetId.clone(
67  recHitsLabel = 'ecalRecHit:EcalRecHitsEE',
68  emObjectLabel = 'photons',
69  etCandCut = 0.0,
70  energyCut = 0.0,
71  etCut = 0.110,
72  outerRadius = 0.6,
73  innerRadius = 0.0
74 )
75 
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),
83 )
84 interestingGedEgammaIsoHCALDetId = RecoEgamma.EgammaIsolationAlgos.interestingGedEgammaIsoHCALDetId_cfi.interestingGedEgammaIsoHCALDetId.clone(
85  recHitsLabel = "hbhereco",
86  elesLabel = "gedGsfElectrons",
87  phosLabel = "gedPhotons",
88  superClustersLabel = "particleFlowEGamma",
89  minSCEt = 20,
90  minEleEt = 20,
91  minPhoEt = 20,
92  hitSelection = interestingEgammaIsoHCALSel
93 )
94 
95 ## OOT Photons
96 interestingOotEgammaIsoHCALDetId = interestingGedEgammaIsoHCALDetId.clone(
97  phosLabel = "ootPhotons",
98  elesLabel = "",
99  superClustersLabel = ""
100 )
101 
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",
109  minSCEt = 500,
110  minEleEt = 20,
111  minPhoEt = 20,
112  maxDR = 0.4
113 )
114 
115 ## OOT Photons
116 interestingOotEgammaIsoESDetId = interestingGedEgammaIsoESDetId.clone(
117  eeClusToESMapLabel = "particleFlowClusterOOTECAL",
118  ecalPFClustersLabel= "particleFlowClusterOOTECAL",
119  phosLabel = "ootPhotons",
120  elesLabel = "",
121  superClustersLabel = ""
122 )
123 
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
137 )
138 interestingEgammaIsoDetIds = cms.Sequence(interestingEgammaIsoDetIdsTask)
139 
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)
145 
146 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
147 pp_on_AA.toReplaceWith(interestingEgammaIsoDetIdsTask, _pp_on_AA_interestingEgammaIsoDetIdsTask)
148 
149 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
150 egamma_lowPt_exclusive.toModify(interestingGedEgammaIsoESDetId,
151  minSCEt = 1.0, #default 500
152  minEleEt = 1.0, #default 20
153  minPhoEt = 1.0 #default 20
154 )
155 egamma_lowPt_exclusive.toModify(interestingGedEgammaIsoHCALDetId,
156  minSCEt = 1.0, #default 20
157  minEleEt= 1.0, #default 20
158  minPhoEt= 1.0 #default 20
159 )
160 
161 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
162 run3_HB.toModify(interestingEgammaIsoHCALSel,
163  minEnergyHB = 0.1)