CMS 3D CMS Logo

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 
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 
96 interestingOotEgammaIsoHCALDetId = interestingGedEgammaIsoHCALDetId.clone(
97  phosLabel = "ootPhotons",
98  elesLabel = "",
99  superClustersLabel = ""
100 )
101 
102 import RecoEgamma.EgammaIsolationAlgos.interestingEgammaIsoESDetIdModule_cff
103 interestingOotEgammaIsoESDetId = RecoEgamma.EgammaIsolationAlgos.interestingEgammaIsoESDetIdModule_cff.interestingEgammaIsoESDetId.clone(
104  eeClusToESMapLabel = "particleFlowClusterOOTECAL",
105  ecalPFClustersLabel= "particleFlowClusterOOTECAL",
106  phosLabel = "ootPhotons",
107  elesLabel = "",
108  superClustersLabel = "",
109  minSCEt = 500,
110  minEleEt = 20,
111  minPhoEt = 20,
112  maxDR = 0.4
113 )
114 
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
127 )
128 interestingEgammaIsoDetIds = cms.Sequence(interestingEgammaIsoDetIdsTask)
129 
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)
135 
136 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
137 pp_on_AA.toReplaceWith(interestingEgammaIsoDetIdsTask, _pp_on_AA_interestingEgammaIsoDetIdsTask)
138 
139 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
140 
141 egamma_lowPt_exclusive.toModify(interestingGedEgammaIsoHCALDetId,
142  minSCEt = 1.0, #default 20
143  minEleEt= 1.0, #default 20
144  minPhoEt= 1.0 #default 20
145 )
146 
147 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
148 run3_HB.toModify(interestingEgammaIsoHCALSel,
149  minEnergyHB = 0.1)