1 import FWCore.ParameterSet.Config
as cms
2 from DQMOffline.L1Trigger
import L1TEtSumJetOffline_cfi
as L1TStep1
5 'jet': L1TStep1.jetEfficiencyThresholds,
10 "efficiencyJetEt_HB",
"efficiencyJetEt_HE",
"efficiencyJetEt_HF",
11 "efficiencyJetEt_HB_HE"],
14 allEfficiencyPlots = []
15 add_plot = allEfficiencyPlots.append
16 for variable, thresholds
in variables.items():
17 for plot
in plots[variable]:
18 for threshold
in thresholds:
19 plotName =
'{0}_threshold_{1}'.
format(plot, threshold)
22 from DQMOffline.L1Trigger.L1TDiffHarvesting_cfi
import l1tDiffHarvesting
25 "resolutionJetET_HB",
"resolutionJetET_HE",
"resolutionJetET_HF",
26 "resolutionJetET_HB_HE",
"resolutionJetPhi_HB",
"resolutionJetPhi_HE",
27 "resolutionJetPhi_HF",
"resolutionJetPhi_HB_HE",
"resolutionJetEta",
30 'L1JetETvsCaloJetET_HB',
'L1JetETvsCaloJetET_HE',
'L1JetETvsCaloJetET_HF',
31 'L1JetETvsCaloJetET_HB_HE',
'L1JetPhivsCaloJetPhi_HB',
'L1JetPhivsCaloJetPhi_HE',
32 'L1JetPhivsCaloJetPhi_HF',
'L1JetPhivsCaloJetPhi_HB_HE',
'L1JetEtavsCaloJetEta_HB',
36 allPlots.extend(allEfficiencyPlots)
37 allPlots.extend(resolution_plots)
38 allPlots.extend(plots2D)
40 l1tJetEmuDiff = l1tDiffHarvesting.clone(
41 plotCfgs=cms.untracked.VPSet(
43 dir1=cms.untracked.string(
"L1T/L1TObjects/L1TJet/L1TriggerVsReco"),
44 dir2=cms.untracked.string(
"L1TEMU/L1TObjects/L1TJet/L1TriggerVsReco"),
45 outputDir=cms.untracked.string(
46 "L1TEMU/L1TObjects/L1TJet/L1TriggerVsReco/Comparison"),
47 plots=cms.untracked.vstring(allPlots)
53 variables_HI = variables
54 variables_HI[
'jet'] = L1TStep1.jetEfficiencyThresholds_HI
56 allEfficiencyPlots_HI = []
57 add_plot = allEfficiencyPlots_HI.append
58 for variable, thresholds
in variables_HI.items():
59 for plot
in plots[variable]:
60 for threshold
in thresholds:
61 plotName =
'{0}_threshold_{1}'.
format(plot, threshold)
65 allPlots_HI.extend(allEfficiencyPlots_HI)
66 allPlots_HI.extend(resolution_plots)
67 allPlots_HI.extend(plots2D)
69 from Configuration.Eras.Modifier_ppRef_2017_cff
import ppRef_2017
70 ppRef_2017.toModify(l1tJetEmuDiff,
71 plotCfgs = {0:dict(plots = allPlots_HI)}