CMS 3D CMS Logo

HLTEGTnPMonitor_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #this is the config to define t&p based DQM offline monitoring for e/gamma
4 
5 etBinsStd=cms.vdouble(5,10,12.5,15,17.5,20,22.5,25,30,35,40,45,50,60,80,100,150,200,250,300,350,400)
6 scEtaBinsStd = cms.vdouble(-2.5,-2.4,-2.3,-2.2,-2.1,-2.0,-1.9,-1.8,-1.7,-1.566,-1.4442,-1.3,-1.2,-1.1,-1.0,-0.9,-0.8,-0.7,-0.6,-0.5,-0.4,-0.3,-0.2,-0.1,0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1,1.1,1.2,1.3,1.4442,1.566,1.7,1.8,1.9,2.0,2.1,2.2,2.3,2.4,2.5)
7 phiBinsStd = cms.vdouble(-3.32,-2.97,-2.62,-2.27,-1.92,-1.57,-1.22,-0.87,-0.52,-0.18,0.18,0.52,0.87,1.22,1.57,1.92,2.27,2.62,2.97,3.32)
8 
9 etRangeCut= cms.PSet(
10  rangeVar=cms.string("et"),
11  allowedRanges=cms.vstring("0:10000"),
12  )
13 ecalBarrelEtaCut=cms.PSet(
14  rangeVar=cms.string("scEta"),
15  allowedRanges=cms.vstring("-1.4442:1.4442")
16  )
17 ecalEndcapEtaCut=cms.PSet(
18  rangeVar=cms.string("scEta"),
19  allowedRanges=cms.vstring("-2.5:-1.556","1.556:2.5")
20  )
21 ecalEndcapHighEtaCut=cms.PSet(
22  rangeVar=cms.string("scEta"),
23  allowedRanges=cms.vstring("-3.0:-2.5","2.5:3.0")
24  )
25 ecalEndcapPosHighEtaCut= cms.PSet(
26  rangeVar=cms.string("scEta"),
27  allowedRanges=cms.vstring("2.5:3.0"),
28  )
29 ecalEndcapNegHighEtaCut= cms.PSet(
30  rangeVar=cms.string("scEta"),
31  allowedRanges=cms.vstring("-3.0:-2.5"),
32  )
33 
34 ecalBarrelAndEndcapEtaCut = cms.PSet(
35  rangeVar=cms.string("scEta"),
36  allowedRanges=cms.vstring("-1.4442:1.4442","-2.5:-1.556","1.556:2.5"),
37  )
38 hcalPosEtaCut= cms.PSet(
39  rangeVar=cms.string("scEta"),
40  allowedRanges=cms.vstring("1.3:1.4442","1.556:2.5"),
41  )
42 
43 hcalNegEtaCut= cms.PSet(
44  rangeVar=cms.string("scEta"),
45  allowedRanges=cms.vstring("-2.5:-1.556","-1.4442:-1.3"),
46  )
47 
48 muonEtaCut=cms.PSet(
49  rangeVar=cms.string("eta"),
50  allowedRanges=cms.vstring("-2.4:2.4")
51  )
52 tagAndProbeConfigEleWPTight = cms.PSet(
53  trigEvent = cms.InputTag("hltTriggerSummaryAOD","","HLT"),
54  tagColl = cms.InputTag("gedGsfElectrons"),
55  probeColl = cms.InputTag("gedGsfElectrons"),
56  tagVIDCuts = cms.InputTag("egmGsfElectronIDsForDQM:cutBasedElectronID-RunIIIWinter22-V1-tight"),
57  probeVIDCuts = cms.InputTag("egmGsfElectronIDsForDQM:cutBasedElectronID-RunIIIWinter22-V1-tight"),
58  sampleTrigRequirements = cms.PSet(
59  hltInputTag = cms.InputTag("TriggerResults","","HLT"),
60  hltPaths = cms.vstring("HLT_Ele30_WPTight_Gsf_v*","HLT_Ele32_WPTight_Gsf_v*","HLT_Ele35_WPTight_Gsf_v*"
61  "HLT_Ele38_WPTight_Gsf_v*",
62  "HLT_Ele32_WPTight_Gsf_L1DoubleEG_v*",
63  )
64  ),
65  #it is intended that these are the filters of the triggers listed for sampleTrigRequirements
66  tagFilters = cms.vstring("hltEle30WPTightGsfTrackIsoFilter",
67  "hltEle32WPTightGsfTrackIsoFilter"
68  "hltEle35noerWPTightGsfTrackIsoFilter"
69  "hltEle38noerWPTightGsfTrackIsoFilter"
70  "hltEle32L1DoubleEGWPTightGsfTrackIsoFilter" ),
71  tagFiltersORed = cms.bool(True),
72  tagRangeCuts = cms.VPSet(ecalBarrelEtaCut),
73  probeFilters = cms.vstring(),
74  probeFiltersORed = cms.bool(False),
75  probeRangeCuts = cms.VPSet(ecalBarrelAndEndcapEtaCut),
76  minTagProbeDR = cms.double(0),
77  minMass = cms.double(70.0),
78  maxMass = cms.double(110.0),
79  requireOpSign = cms.bool(False),
80 
81 )
82 
83 
84 tagAndProbeElePhoConfigEleWPTight = tagAndProbeConfigEleWPTight.clone(
85  probeColl=cms.InputTag("gedPhotons"),
86  probeVIDCuts=cms.InputTag("cutBasedPhotonID-RunIIIWinter22-122X-V1-loose"),
87  minTagProbeDR=cms.double(0.1)
88 )
89 
90 tagAndProbeElePhoHighEtaConfigEleWPTight = tagAndProbeConfigEleWPTight.clone(
91  probeColl=cms.InputTag("gedPhotons"),
92  probeVIDCuts=cms.InputTag("cutBasedPhotonID-RunIIIWinter22-122X-V1-loose"),
93  probeRangeCuts = cms.VPSet(),
94  minTagProbeDR=cms.double(0.1)
95 )
96 
97 tagAndProbeMuonEleConfigIsoMu = cms.PSet(
98  trigEvent = cms.InputTag("hltTriggerSummaryAOD","","HLT"),
99  tagColl = cms.InputTag("muons"),
100  probeColl = cms.InputTag("gedGsfElectrons"),
101  tagVIDCuts = cms.InputTag("egmDQMSelectedMuons"),
102  probeVIDCuts = cms.InputTag("egmGsfElectronIDsForDQM:cutBasedElectronID-RunIIIWinter22-V1-tight"),
103  sampleTrigRequirements = cms.PSet(
104  hltInputTag = cms.InputTag("TriggerResults","","HLT"),
105  hltPaths = cms.vstring("HLT_IsoMu27_v*")
106 
107  ),
108  #it is intended that these are the filters of the triggers listed for sampleTrigRequirements
109  tagFilters = cms.vstring("hltL3crIsoL1sMu22Or25L1f0L2f10QL3f27QL3trkIsoFiltered0p07"),
110  tagFiltersORed = cms.bool(True),
111  tagRangeCuts = cms.VPSet(muonEtaCut),
112  probeFilters = cms.vstring(),
113  probeFiltersORed = cms.bool(False),
114  probeRangeCuts = cms.VPSet(ecalBarrelAndEndcapEtaCut),
115  minTagProbeDR = cms.double(0.4),
116  minMass = cms.double(-1),
117  maxMass = cms.double(-1),
118  requireOpSign = cms.bool(False),
119  )
120 
121 
122 tagAndProbeMuonPhoConfigIsoMu = tagAndProbeMuonEleConfigIsoMu.clone(
123  probeColl=cms.InputTag("gedPhotons"),
124  probeVIDCuts=cms.InputTag("cutBasedPhotonID-RunIIIWinter22-122X-V1-loose"),
125 )
126 
127 egammaStdHistConfigs = cms.VPSet(
128  cms.PSet(
129  histType=cms.string("1D"),
130  vsVar=cms.string("et"),
131  nameSuffex=cms.string("_EBvsEt"),
132  rangeCuts=cms.VPSet(ecalBarrelEtaCut),
133  binLowEdges=etBinsStd,
134  ),
135  cms.PSet(
136  histType=cms.string("1D"),
137  vsVar=cms.string("et"),
138  nameSuffex=cms.string("_EEvsEt"),
139  rangeCuts=cms.VPSet(ecalEndcapEtaCut),
140  binLowEdges=etBinsStd,
141  ),
142  cms.PSet(
143  histType=cms.string("1D"),
144  vsVar=cms.string("scEta"),
145  nameSuffex=cms.string("_vsSCEta"),
146  rangeCuts=cms.VPSet(),
147  binLowEdges=scEtaBinsStd,
148  ),
149  cms.PSet(
150  histType=cms.string("1D"),
151  vsVar=cms.string("phi"),
152  nameSuffex=cms.string("_EBvsPhi"),
153  rangeCuts=cms.VPSet(ecalBarrelEtaCut),
154  binLowEdges=phiBinsStd,
155  ),
156  cms.PSet(
157  histType=cms.string("1D"),
158  vsVar=cms.string("phi"),
159  nameSuffex=cms.string("_EEvsPhi"),
160  rangeCuts=cms.VPSet(ecalEndcapEtaCut),
161  binLowEdges=phiBinsStd,
162  ),
163  cms.PSet(
164  histType=cms.string("2D"),
165  xVar=cms.string("scEta"),
166  yVar=cms.string("phi"),
167  nameSuffex=cms.string("_vsSCEtaPhi"),
168  rangeCuts=cms.VPSet(),
169  xBinLowEdges=scEtaBinsStd,
170  yBinLowEdges=phiBinsStd,
171  ),
172 
173  )
174 
175 egammaHighEtaHistConfigs = cms.VPSet(
176  cms.PSet(
177  histType=cms.string("1D"),
178  vsVar=cms.string("et"),
179  nameSuffex=cms.string("_vsEt"),
180  rangeCuts=cms.VPSet(),
181  binLowEdges=etBinsStd,
182  ),
183  cms.PSet(
184  histType=cms.string("1D"),
185  vsVar=cms.string("scEta"),
186  nameSuffex=cms.string("_vsSCEta"),
187  rangeCuts=cms.VPSet(),
188  binLowEdges=cms.vdouble(-3.0,-2.9,-2.8,-2.7,-2.6,-2.5,2.5,2.6,2.7,2.8,2.9,3.0),
189  ),
190  cms.PSet(
191  histType=cms.string("1D"),
192  vsVar=cms.string("phi"),
193  nameSuffex=cms.string("_vsPhi"),
194  rangeCuts=cms.VPSet(),
195  binLowEdges=phiBinsStd,
196  ),
197  cms.PSet(
198  histType=cms.string("2D"),
199  xVar=cms.string("scEta"),
200  yVar=cms.string("phi"),
201  nameSuffex=cms.string("_vsSCEtaPhi"),
202  rangeCuts=cms.VPSet(),
203  xBinLowEdges=cms.vdouble(-3.0,-2.9,-2.8,-2.7,-2.6,-2.5,2.5,2.6,2.7,2.8,2.9,3.0),
204  yBinLowEdges=phiBinsStd,
205  ),
206 
207  )
208 
209 egammaStdFiltersToMonitor= cms.VPSet(
210  cms.PSet(
211  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoubleEle33_CaloIdL_MW"),
212  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("40:99999")),),
213  filterName = cms.string("hltEle33CaloIdLMWPMS2Filter"),
214  histTitle = cms.string(""),
215  tagExtraFilter = cms.string(""),
216  ),
217  cms.PSet(
218  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoubleEle33_CaloIdL_MW"),
219  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("40:99999")),),
220  filterName = cms.string("hltDiEle33CaloIdLMWPMS2UnseededFilter"),
221  histTitle = cms.string(""),
222  tagExtraFilter = cms.string("hltEle33CaloIdLMWPMS2Filter"),
223  ),
224  cms.PSet(
225  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon300_NoHE"),
226  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("320:99999")),),
227  filterName = cms.string("hltEG300erFilter"),
228  histTitle = cms.string(""),
229  tagExtraFilter = cms.string(""),
230  ),
231  cms.PSet(
232  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoublePhoton70"),
233  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("80:99999")),),
234  filterName = cms.string("hltEG70HEFilter"),
235  histTitle = cms.string(""),
236  tagExtraFilter = cms.string(""),
237  ),
238  cms.PSet(
239  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoublePhoton70"),
240  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("80:99999")),),
241  filterName = cms.string("hltDiEG70HEUnseededFilter"),
242  histTitle = cms.string(""),
243  tagExtraFilter = cms.string("hltEG70HEFilter"),
244  ),
245  cms.PSet(
246  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoublePhoton85"),
247  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("90:99999")),),
248  filterName = cms.string("hltEG85HEFilter"),
249  histTitle = cms.string(""),
250  tagExtraFilter = cms.string(""),
251  ),
252  cms.PSet(
253  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoublePhoton85"),
254  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("80:99999")),),
255  filterName = cms.string("hltDiEG85HEUnseededFilter"),
256  histTitle = cms.string(""),
257  tagExtraFilter = cms.string("hltEG85HEFilter"),
258  ),
259  cms.PSet(
260  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DiSC30_18_EIso_AND_HE_Mass70"),
261  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
262  filterName = cms.string("hltEG30EIso15HE30EcalIsoLastFilter"),
263  histTitle = cms.string(""),
264  tagExtraFilter = cms.string(""),
265  ),
266  cms.PSet(
267  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DiSC30_18_EIso_AND_HE_Mass70"),
268  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
269  filterName = cms.string("hltEG18EIso15HE30EcalIsoUnseededFilter"),
270  histTitle = cms.string(""),
271  tagExtraFilter = cms.string("hltEG30EIso15HE30EcalIsoLastFilter"),
272  ),
273  cms.PSet(
274  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele23_Ele12_CaloIdL_TrackIdL_IsoVL"),
275  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("26:99999")),),
276  filterName = cms.string("hltEle23Ele12CaloIdLTrackIdLIsoVLTrackIsoLeg1Filter"),
277  histTitle = cms.string(""),
278  tagExtraFilter = cms.string(""),
279  ),
280  cms.PSet(
281  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele23_Ele12_CaloIdL_TrackIdL_IsoVL"),
282  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("15:99999")),),
283  filterName = cms.string("hltEle23Ele12CaloIdLTrackIdLIsoVLTrackIsoLeg2Filter"),
284  histTitle = cms.string(""),
285  tagExtraFilter = cms.string(""),
286  ),
287  cms.PSet(
288  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele30_WPTight_Gsf"),
289  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("33:99999")),),
290  filterName = cms.string("hltEle30WPTightGsfTrackIsoFilter"),
291  histTitle = cms.string(""),
292  tagExtraFilter = cms.string(""),
293  ),
294  cms.PSet(
295  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele32_WPTight_Gsf"),
296  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
297  filterName = cms.string("hltEle32WPTightGsfTrackIsoFilter"),
298  histTitle = cms.string(""),
299  tagExtraFilter = cms.string(""),
300  ),
301  cms.PSet(
302  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele35_WPTight_Gsf"),
303  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("42:99999")),),
304  filterName = cms.string("hltEle35noerWPTightGsfTrackIsoFilter"),
305  histTitle = cms.string(""),
306  tagExtraFilter = cms.string(""),
307  ),
308  cms.PSet(
309  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele38_WPTight_Gsf"),
310  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("42:99999")),),
311  filterName = cms.string("hltEle38noerWPTightGsfTrackIsoFilter"),
312  histTitle = cms.string(""),
313  tagExtraFilter = cms.string(""),
314  ),
315  cms.PSet(
316  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele32_WPTight_Gsf_L1DoubleEG"),
317  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
318  filterName = cms.string("hltEle32L1DoubleEGWPTightGsfTrackIsoFilter"),
319  histTitle = cms.string(""),
320  tagExtraFilter = cms.string(""),
321  ),
322  cms.PSet(
323  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon33"),
324  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
325  filterName = cms.string("hltEG33L1EG26HEFilter"),
326  histTitle = cms.string(""),
327  tagExtraFilter = cms.string(""),
328  ),
329  cms.PSet(
330  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon50"),
331  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("55:99999")),),
332  filterName = cms.string("hltEG50HEFilter"),
333  histTitle = cms.string(""),
334  tagExtraFilter = cms.string(""),
335  ),
336  cms.PSet(
337  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon75"),
338  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("80:99999")),),
339  filterName = cms.string("hltEG75HEFilter"),
340  histTitle = cms.string(""),
341  tagExtraFilter = cms.string(""),
342  ),
343  cms.PSet(
344  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon90"),
345  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("95:99999")),),
346  filterName = cms.string("hltEG90HEFilter"),
347  histTitle = cms.string(""),
348  tagExtraFilter = cms.string(""),
349  ),
350  cms.PSet(
351  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon120"),
352  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("95:99999")),),
353  filterName = cms.string("hltEG120HEFilter"),
354  histTitle = cms.string(""),
355  tagExtraFilter = cms.string(""),
356  ),
357  cms.PSet(
358  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon150"),
359  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("160:99999")),),
360  filterName = cms.string("hltEG150HEFilter"),
361  histTitle = cms.string(""),
362  tagExtraFilter = cms.string(""),
363  ),
364  cms.PSet(
365  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon175"),
366  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("180:99999")),),
367  filterName = cms.string("hltEG175HEFilter"),
368  histTitle = cms.string(""),
369  tagExtraFilter = cms.string(""),
370  ),
371  cms.PSet(
372  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Photon200"),
373  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("220:99999")),),
374  filterName = cms.string("hltEG200HEFilter"),
375  histTitle = cms.string(""),
376  tagExtraFilter = cms.string(""),
377  ),
378  cms.PSet(
379  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_CaloJet500_NoJetID"),
380  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("500:99999")),),
381  filterName = cms.string("hltSingleCaloJet500"),
382  histTitle = cms.string(""),
383  tagExtraFilter = cms.string(""),
384  ),
385  cms.PSet(
386  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_CaloJet550_NoJetID"),
387  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("550:99999")),),
388  filterName = cms.string("hltSingleCaloJet550"),
389  histTitle = cms.string(""),
390  tagExtraFilter = cms.string(""),
391  ),
392  cms.PSet(
393  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele28_HighEta_SC20_Mass55"),
394  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("32:99999")),),
395  filterName = cms.string("hltEle28HighEtaSC20TrackIsoFilter"),
396  histTitle = cms.string(""),
397  tagExtraFilter = cms.string(""),
398  ),
399  cms.PSet(
400  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele50_CaloIdVT_GsfTrkIdT_PFJet165"),
401  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("55:99999")),),
402  filterName = cms.string("hltEle50CaloIdVTGsfTrkIdTGsfDphiFilter"),
403  histTitle = cms.string(""),
404  tagExtraFilter = cms.string(""),
405  ),
406  cms.PSet(
407  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele115_CaloIdVT_GsfTrkIdT"),
408  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("120:99999")),),
409  filterName = cms.string("hltEle115CaloIdVTGsfTrkIdTGsfDphiFilter"),
410  histTitle = cms.string(""),
411  tagExtraFilter = cms.string(""),
412  ),
413  cms.PSet(
414  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele135_CaloIdVT_GsfTrkIdT"),
415  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("140:99999")),),
416  filterName = cms.string("hltEle135CaloIdVTGsfTrkIdTGsfDphiFilter"),
417  histTitle = cms.string(""),
418  tagExtraFilter = cms.string(""),
419  ),
420  cms.PSet(
421  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DiEle27_WPTightCaloOnly_L1DoubleEG"),
422  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
423  filterName = cms.string("hltEle27L1DoubleEGWPTightHcalIsoFilter"),
424  histTitle = cms.string(""),
425  tagExtraFilter = cms.string(""),
426  ),
427  cms.PSet(
428  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DiEle27_WPTightCaloOnly_L1DoubleEG"),
429  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
430  filterName = cms.string("hltDiEle27L1DoubleEGWPTightEcalIsoFilter"),
431  histTitle = cms.string(""),
432  tagExtraFilter = cms.string("hltEle27L1DoubleEGWPTightHcalIsoFilter"),
433  ),
434  cms.PSet(
435  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoubleEle25_CaloIdL_MW"),
436  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("28:99999")),),
437  filterName = cms.string("hltEle25CaloIdLMWPMS2Filter"),
438  histTitle = cms.string(""),
439  tagExtraFilter = cms.string(""),
440  ),
441  cms.PSet(
442  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoubleEle25_CaloIdL_MW"),
443  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("28:99999")),),
444  filterName = cms.string("hltDiEle25CaloIdLMWPMS2UnseededFilter"),
445  histTitle = cms.string(""),
446  tagExtraFilter = cms.string("hltEle25CaloIdLMWPMS2Filter"),
447  ),
448  cms.PSet(
449  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoubleEle27_CaloIdL_MW"),
450  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
451  filterName = cms.string("hltEle27CaloIdLMWPMS2Filter"),
452  histTitle = cms.string(""),
453  tagExtraFilter = cms.string(""),
454  ),
455  cms.PSet(
456  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoubleEle27_CaloIdL_MW"),
457  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
458  filterName = cms.string("hltDiEle27CaloIdLMWPMS2UnseededFilter"),
459  histTitle = cms.string(""),
460  tagExtraFilter = cms.string("hltEle27CaloIdLMWPMS2Filter"),
461  ),
462  cms.PSet(
463  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele27_Ele37_CaloIdL_MW"),
464  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
465  filterName = cms.string("hltEle27CaloIdLMWPMS2Filter"),
466  histTitle = cms.string(""),
467  tagExtraFilter = cms.string(""),
468  ),
469  cms.PSet(
470  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele27_Ele37_CaloIdL_MW"),
471  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
472  filterName = cms.string("hltDiEle27CaloIdLMWPMS2UnseededFilter"),
473  histTitle = cms.string(""),
474  tagExtraFilter = cms.string("hltEle27CaloIdLMWPMS2Filter"),
475  ),
476  cms.PSet(
477  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele27_Ele37_CaloIdL_MW"),
478  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("40:99999")),),
479  filterName = cms.string("hltEle37CaloIdLMWPMS2UnseededFilter"),
480  histTitle = cms.string(""),
481  tagExtraFilter = cms.string("hltEle27CaloIdLMWPMS2Filter"),
482  )
483 
484  )
485 
486 
487 
488 egammaPhoHighEtaFiltersToMonitor= cms.VPSet(
489  cms.PSet(
490  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele28_HighEta_SC20_Mass55"),
491  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("22:99999")),
492  ecalEndcapHighEtaCut
493  ),
494  filterName = cms.string("hltEle28HighEtaSC20Mass55Filter"),
495  histTitle = cms.string(""),
496  tagExtraFilter = cms.string("hltEle28HighEtaSC20TrackIsoFilter"),
497  ),
498  cms.PSet(
499  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele28_HighEta_SC20_Mass55"),
500  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("22:99999")),
501  ecalEndcapHighEtaCut
502  ),
503  filterName = cms.string("hltEle28HighEtaSC20HcalIsoFilterUnseeded"),
504  histTitle = cms.string(""),
505  tagExtraFilter = cms.string("hltEle28HighEtaSC20TrackIsoFilter"),
506  ),
507 
508 )
509 egammaPhoFiltersToMonitor= cms.VPSet(
510  cms.PSet(
511  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_20_20_20_CaloIdLV2"),
512  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
513  filterName = cms.string("hltEG20CaloIdLV2ClusterShapeL1TripleEGFilter"),
514  histTitle = cms.string(""),
515  tagExtraFilter = cms.string(""),
516  ),
517  cms.PSet(
518  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_20_20_20_CaloIdLV2"),
519  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
520  filterName = cms.string("hltTriEG20CaloIdLV2ClusterShapeUnseededFilter"),
521  histTitle = cms.string(""),
522  tagExtraFilter = cms.string("hltEG20CaloIdLV2ClusterShapeL1TripleEGFilter"),
523  ),
524  cms.PSet(
525  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_20_20_20_CaloIdLV2_R9IdVL"),
526  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
527  filterName = cms.string("hltEG20CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
528  histTitle = cms.string(""),
529  tagExtraFilter = cms.string(""),
530  ),
531  cms.PSet(
532  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_20_20_20_CaloIdLV2_R9IdVL"),
533  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
534  filterName = cms.string("hltTriEG20CaloIdLV2R9IdVLR9IdUnseededFilter"),
535  histTitle = cms.string(""),
536  tagExtraFilter = cms.string("hltEG20CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
537  ),
538  #first seeded leg
539  cms.PSet(
540  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_30_30_10_CaloIdLV2"),
541  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
542  filterName = cms.string("hltEG30CaloIdLV2ClusterShapeL1TripleEGFilter"),
543  histTitle = cms.string(""),
544  tagExtraFilter = cms.string(""),
545  ),
546  #second unseeded leg, 10 GeV
547  cms.PSet(
548  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_30_30_10_CaloIdLV2"),
549  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("15:99999")),),
550  filterName = cms.string("hltEG10CaloIdLV2ClusterShapeUnseededFilter"),
551  histTitle = cms.string(""),
552  tagExtraFilter = cms.string("hltEG30CaloIdLV2ClusterShapeL1TripleEGFilter"),
553  ),
554  #second unseded leg, 30 GeV
555  cms.PSet(
556  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_30_30_10_CaloIdLV2"),
557  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
558  filterName = cms.string("hltDiEG30CaloIdLV2EtUnseededFilter"),
559  histTitle = cms.string(""),
560  tagExtraFilter = cms.string("hltEG30CaloIdLV2ClusterShapeL1TripleEGFilter"),
561  ),
562  #first seeded leg
563  cms.PSet(
564  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_30_30_10_CaloIdLV2_R9IdVL"),
565  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
566  filterName = cms.string("hltEG30CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
567  histTitle = cms.string(""),
568  tagExtraFilter = cms.string(""),
569  ),
570  #second unseeded leg, 10 GeV
571  cms.PSet(
572  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_30_30_10_CaloIdLV2_R9IdVL"),
573  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("15:99999")),),
574  filterName = cms.string("hltEG10CaloIdLV2R9IdVLR9IdUnseededFilter"),
575  histTitle = cms.string(""),
576  tagExtraFilter = cms.string("hltEG30CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
577 
578  ),
579  #second unseeded leg, 30 GeV
580  cms.PSet(
581  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_30_30_10_CaloIdLV2_R9IdVL"),
582  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
583  filterName = cms.string("hltDiEG30CaloIdLV2R9IdVLEtUnseededFilter"),
584  histTitle = cms.string(""),
585  tagExtraFilter = cms.string("hltEG30CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
586  ),
587  #first seeded leg
588  cms.PSet(
589  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_35_35_5_CaloIdLV2_R9IdVL"),
590  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("38:99999")),),
591  filterName = cms.string("hltEG35CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
592  histTitle = cms.string(""),
593  tagExtraFilter = cms.string(""),
594  ),
595  #second unseeded leg, 5 GeV
596  cms.PSet(
597  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_35_35_5_CaloIdLV2_R9IdVL"),
598  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("10:99999")),),
599  filterName = cms.string("hltEG5CaloIdLV2R9IdVLR9IdUnseededFilter"),
600  histTitle = cms.string(""),
601  tagExtraFilter = cms.string("hltEG35CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
602  ),
603  #second unseeded leg, 35 GeV
604  cms.PSet(
605  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_TriplePhoton_35_35_5_CaloIdLV2_R9IdVL"),
606  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("38:99999")),),
607  filterName = cms.string("hltDiEG35CaloIdLV2R9IdVLEtUnseededFilter"),
608  histTitle = cms.string(""),
609  tagExtraFilter = cms.string("hltEG35CaloIdLV2R9IdVLR9IdL1TripleEGFilter"),
610  ),
611 
612 )
613 
614 
615 egammaMuPhoFiltersToMonitor= cms.VPSet(
616  cms.PSet(
617  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Mu12_DoublePhoton20"),
618  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
619  filterName = cms.string("hltMu12DiEG20HEUnseededFilter"),
620  histTitle = cms.string(""),
621  tagExtraFilter = cms.string("hltL3fL1sMu12Diphoton20L1f0L2f8QL3Filtered12"),
622  ),
623 )
624 
625 egammaMuEleFiltersToMonitor= cms.VPSet(
626  cms.PSet(
627  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Mu12_DoublePhoton20"),
628  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("25:99999")),),
629  filterName = cms.string("hltMu12DiEG20HEUnseededFilter"),
630  histTitle = cms.string(""),
631  tagExtraFilter = cms.string("hltL3fL1sMu12Diphoton20L1f0L2f8QL3Filtered12"),
632  ),
633  cms.PSet(
634  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Mu37_Ele27_CaloIdL_MW"),
635  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("30:99999")),),
636  filterName = cms.string("hltEle27CaloIdLMWPMS2UnseededFilter"),
637  histTitle = cms.string(""),
638  tagExtraFilter = cms.string("hltL3fL1sMu16orMu25L1f0L2f10QL3Filtered37Q"),
639  ),
640  cms.PSet(
641  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Mu27_Ele37_CaloIdL_MW"),
642  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("42:99999")),),
643  filterName = cms.string("hltEle37CaloIdLMWPMS2UnseededFilter"),
644  histTitle = cms.string(""),
645  tagExtraFilter = cms.string("hltL3fL1sMu16orMu25L1f0L2f10QL3Filtered27Q"),
646  ),
647  cms.PSet(
648  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_DoubleEle33_CaloIdL_MW"),
649  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("40:99999")),),
650  filterName = cms.string("hltEle33CaloIdLMWPMS2Filter"),
651  histTitle = cms.string(""),
652  tagExtraFilter = cms.string(""),
653  ),
654  cms.PSet(
655  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele32_WPTight_Gsf"),
656  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
657  filterName = cms.string("hltEle32WPTightGsfTrackIsoFilter"),
658  histTitle = cms.string(""),
659  tagExtraFilter = cms.string(""),
660  ),
661  cms.PSet(
662  folderName = cms.string("HLT/EGM/TagAndProbeEffs/HLT_Ele32_WPTight_Gsf_L1DoubleEG"),
663  rangeCuts = cms.VPSet(etRangeCut.clone(allowedRanges=cms.vstring("35:99999")),),
664  filterName = cms.string("hltEle32L1DoubleEGWPTightGsfTrackIsoFilter"),
665  histTitle = cms.string(""),
666  tagExtraFilter = cms.string(""),
667  ),
668 )
669 
670 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
671 egHLTDQMOfflineTnPSource = DQMEDAnalyzer("HLTEleTagAndProbeOfflineSource",
672  tagAndProbeCollections = cms.VPSet(
673  cms.PSet(
674  tagAndProbeConfigEleWPTight,
675  histConfigs = egammaStdHistConfigs,
676  baseHistName = cms.string("eleWPTightTag_"),
677  filterConfigs = egammaStdFiltersToMonitor,
678  ),
679  )
680 )
681 
682 egHLTElePhoHighEtaDQMOfflineTnPSource = DQMEDAnalyzer("HLTElePhoTagAndProbeOfflineSource",
683  tagAndProbeCollections = cms.VPSet(
684  cms.PSet(
685  tagAndProbeElePhoHighEtaConfigEleWPTight,
686  histConfigs = egammaHighEtaHistConfigs,
687  baseHistName = cms.string("eleWPTightTagPhoHighEtaProbe_"),
688  filterConfigs = egammaPhoHighEtaFiltersToMonitor,
689  ),
690  )
691 )
692 egHLTElePhoDQMOfflineTnPSource = DQMEDAnalyzer("HLTElePhoTagAndProbeOfflineSource",
693  tagAndProbeCollections = cms.VPSet(
694  cms.PSet(
695  tagAndProbeElePhoConfigEleWPTight,
696  histConfigs = egammaStdHistConfigs,
697  baseHistName = cms.string("eleWPTightTagPhoProbe_"),
698  filterConfigs = egammaPhoFiltersToMonitor,
699  ),
700  )
701 )
702 
703 egHLTMuonEleDQMOfflineTnPSource = DQMEDAnalyzer("HLTMuEleTagAndProbeOfflineSource",
704  tagAndProbeCollections = cms.VPSet(
705  cms.PSet(
706  tagAndProbeMuonEleConfigIsoMu,
707  histConfigs = egammaStdHistConfigs,
708  baseHistName = cms.string("muonIsoMuTagEleProbe_"),
709  filterConfigs = egammaMuEleFiltersToMonitor,
710  ),
711  )
712 )
713 egHLTMuonPhoDQMOfflineTnPSource = DQMEDAnalyzer("HLTMuPhoTagAndProbeOfflineSource",
714  tagAndProbeCollections = cms.VPSet(
715  cms.PSet(
716  tagAndProbeMuonPhoConfigIsoMu,
717  histConfigs = egammaStdHistConfigs,
718  baseHistName = cms.string("muonIsoMuTagPhoProbe_"),
719  filterConfigs = egammaMuPhoFiltersToMonitor,
720  ),
721  )
722 )
723 
724 
725 from RecoEgamma.ElectronIdentification.egmGsfElectronIDs_cff import egmGsfElectronIDs
726 
727 egmGsfElectronIDsForDQM = egmGsfElectronIDs.clone()
728 egmGsfElectronIDsForDQM.physicsObjectsIDs = cms.VPSet()
729 egmGsfElectronIDsForDQM.physicsObjectSrc == cms.InputTag('gedGsfElectrons')
730 #note: be careful here to when selecting new ids that the vid tools dont do extra setup for them
731 #for example the HEEP cuts need an extra producer which vid tools automatically handles
732 from PhysicsTools.SelectorUtils.tools.vid_id_tools import setupVIDSelection
733 my_id_modules = ['RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Winter22_122X_V1_cff']
734 for id_module_name in my_id_modules:
735  idmod= __import__(id_module_name, globals(), locals(), ['idName','cutFlow'])
736  for name in dir(idmod):
737  item = getattr(idmod,name)
738  if hasattr(item,'idName') and hasattr(item,'cutFlow'):
739  setupVIDSelection(egmGsfElectronIDsForDQM,item)
740 
741 
742 from RecoEgamma.PhotonIdentification.photonIDValueMapProducer_cff import photonIDValueMapProducer
743 from RecoEgamma.PhotonIdentification.egmPhotonIDs_cfi import egmPhotonIDs
744 photonIDValueMapProducerForDQM = photonIDValueMapProducer.clone(
745  src="gedPhotons",
746  vertices="offlinePrimaryVertices",
747  ebReducedRecHitCollection="reducedEcalRecHitsEB",
748  eeReducedRecHitCollection="reducedEcalRecHitsEE",
749  esReducedRecHitCollection="reducedEcalRecHitsES",
750  pfCandidates="particleFlow",
751  isAOD=True,
752 )
753 egmPhotonIDsForDQM = egmPhotonIDs.clone()
754 #note: be careful here to when selecting new ids that the vid tools dont do extra setup for them
755 #for example the HEEP cuts need an extra producer which vid tools automatically handles
756 from PhysicsTools.SelectorUtils.tools.vid_id_tools import setupVIDSelection
757 my_id_modules = ['RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_RunIIIWinter22_122X_V1_cff']
758 for id_module_name in my_id_modules:
759  idmod= __import__(id_module_name, globals(), locals(), ['idName','cutFlow'])
760  for name in dir(idmod):
761  item = getattr(idmod,name)
762  if hasattr(item,'idName') and hasattr(item,'cutFlow'):
763  setupVIDSelection(egmPhotonIDsForDQM,item)
764 egmPhotonIDSequenceForDQM = cms.Sequence(photonIDValueMapProducerForDQM*
765  egmPhotonIDsForDQM)
766 
767 egmDQMSelectedMuons = cms.EDProducer("HLTDQMMuonSelector",
768  objs=cms.InputTag("muons"),
769  vertices=cms.InputTag("offlinePrimaryVertices"),
770  selection=cms.string("pt > 20"),
771  muonSelectionType=cms.string("tight")
772  )
773 egmMuonIDSequenceForDQM = cms.Sequence(egmDQMSelectedMuons)
def setupVIDSelection(vidproducer, cutflow)
Definition: vid_id_tools.py:11