1 import FWCore.ParameterSet.Config
as cms
2 from DQMOffline.L1Trigger
import L1TEGammaOffline_cfi
5 'electron': L1TEGammaOffline_cfi.electronEfficiencyThresholds,
6 'photon': L1TEGammaOffline_cfi.photonEfficiencyThresholds,
9 deepInspectionThresholds = {
10 'electron': L1TEGammaOffline_cfi.deepInspectionElectronThresholds,
16 "efficiencyElectronET_EB",
"efficiencyElectronET_EE",
17 "efficiencyElectronET_EB_EE",
"efficiencyElectronPhi_vs_Eta",
20 "efficiencyPhotonET_EB",
"efficiencyPhotonET_EE",
21 "efficiencyPhotonET_EB_EE" 25 deepInspectionPlots = {
27 'efficiencyElectronEta',
'efficiencyElectronPhi',
28 'efficiencyElectronNVertex' 34 'electron': L1TEGammaOffline_cfi.electronEfficiencyThresholds_HI,
35 'photon': L1TEGammaOffline_cfi.photonEfficiencyThresholds_HI,
38 deepInspectionThresholds_HI = {
39 'electron': L1TEGammaOffline_cfi.deepInspectionElectronThresholds_HI,
45 variables[
'photon'] = []
46 variables_HI[
'photon'] = []
48 from DQMOffline.L1Trigger.L1TCommon
import generateEfficiencyStrings
as ges
49 efficiencyStrings = list(ges(variables, plots))
50 efficiencyStrings += list(ges(deepInspectionThresholds, deepInspectionPlots))
52 efficiencyStrings_HI = list(ges(variables_HI, plots))
53 efficiencyStrings_HI += list(ges(deepInspectionThresholds_HI,
56 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
59 commands=cms.vstring(),
60 resolution=cms.vstring(),
61 subDirs=cms.untracked.vstring(
'L1T/L1TObjects/L1TEGamma/L1TriggerVsReco'),
62 efficiency=cms.vstring(),
63 efficiencyProfile=cms.untracked.vstring(efficiencyStrings),
66 l1tEGammaEmuEfficiency = l1tEGammaEfficiency.clone(
67 subDirs = [
'L1TEMU/L1TObjects/L1TEGamma/L1TriggerVsReco']
70 from Configuration.Eras.Modifier_ppRef_2017_cff
import ppRef_2017
71 ppRef_2017.toModify(l1tEGammaEfficiency, efficiencyProfile=efficiencyStrings_HI)
72 ppRef_2017.toModify(l1tEGammaEmuEfficiency, efficiencyProfile=efficiencyStrings_HI)