1 import FWCore.ParameterSet.Config
as cms
2 from DQMOffline.L1Trigger
import L1TEGammaOffline_cfi
5 'electron': L1TEGammaOffline_cfi.electronEfficiencyThresholds,
10 "efficiencyElectronET_EB",
"efficiencyElectronET_EE",
11 "efficiencyElectronET_EB_EE" 15 allEfficiencyPlots = []
16 add_plot = allEfficiencyPlots.append
17 for variable, thresholds
in variables.iteritems():
18 for plot
in plots[variable]:
19 for threshold
in thresholds:
20 plotName =
'{0}_threshold_{1}'.
format(plot, threshold)
24 "resolutionElectronET_EB",
"resolutionElectronET_EE",
25 "resolutionElectronET_EB_EE",
"resolutionElectronPhi_EB",
"resolutionElectronPhi_EE",
26 "resolutionElectronPhi_EB_EE",
"resolutionElectronEta",
28 "resolutionPhotonET_EB",
"resolutionPhotonET_EE",
29 "resolutionPhotonET_EB_EE",
"resolutionPhotonPhi_EB",
"resolutionPhotonPhi_EE",
30 "resolutionPhotonPhi_EB_EE",
"resolutionPhotonEta",
33 'L1EGammaETvsElectronET_EB',
'L1EGammaETvsElectronET_EE',
'L1EGammaETvsElectronET_EB_EE',
34 'L1EGammaPhivsElectronPhi_EB',
'L1EGammaPhivsElectronPhi_EE',
'L1EGammaPhivsElectronPhi_EB_EE',
35 'L1EGammaEtavsElectronEta',
37 'L1EGammaETvsPhotonET_EB',
'L1EGammaETvsPhotonET_EE',
'L1EGammaETvsPhotonET_EB_EE',
38 'L1EGammaPhivsPhotonPhi_EB',
'L1EGammaPhivsPhotonPhi_EE',
'L1EGammaPhivsPhotonPhi_EB_EE',
39 'L1EGammaEtavsPhotonEta',
43 allPlots.extend(allEfficiencyPlots)
44 allPlots.extend(resolution_plots)
45 allPlots.extend(plots2D)
47 from DQMOffline.L1Trigger.L1TDiffHarvesting_cfi
import l1tDiffHarvesting
48 l1tEGammaEmuDiff = l1tDiffHarvesting.clone(
49 plotCfgs=cms.untracked.VPSet(
51 dir1=cms.untracked.string(
"L1T/L1TObjects/L1TEGamma/L1TriggerVsReco"),
52 dir2=cms.untracked.string(
"L1TEMU/L1TObjects/L1TEGamma/L1TriggerVsReco"),
53 outputDir=cms.untracked.string(
54 "L1TEMU/L1TObjects/L1TEGamma/L1TriggerVsReco/Comparison"),
55 plots=cms.untracked.vstring(allPlots)
62 'electron': L1TEGammaOffline_cfi.electronEfficiencyThresholds_HI,
65 allEfficiencyPlots_HI = []
66 add_plot = allEfficiencyPlots_HI.append
67 for variable, thresholds
in variables_HI.iteritems():
68 for plot
in plots[variable]:
69 for threshold
in thresholds:
70 plotName =
'{0}_threshold_{1}'.
format(plot, threshold)
74 allPlots_HI.extend(allEfficiencyPlots_HI)
75 allPlots_HI.extend(resolution_plots)
76 allPlots_HI.extend(plots2D)
78 from Configuration.Eras.Modifier_ppRef_2017_cff
import ppRef_2017
79 ppRef_2017.toModify(l1tEGammaEmuDiff,
80 plotCfgs = {0:
dict(plots = allPlots_HI)}