CMS 3D CMS Logo

L1TTauDiff_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMOffline.L1Trigger import L1TTauOffline_cfi
3 import six
4 
5 variables = {
6  'tau': L1TTauOffline_cfi.tauEfficiencyThresholds,
7 }
8 
9 plots = {
10  'tau': [
11  "efficiencyIsoTauET_EB", "efficiencyIsoTauET_EE",
12  "efficiencyIsoTauET_EB_EE"
13  ],
14  'NonIsotau': [
15  "efficiencyNonIsoTauET_EB", "efficiencyNonIsoTauET_EE",
16  "efficiencyNonIsoTauET_EB_EE"
17  ],
18 }
19 
20 allEfficiencyPlots = []
21 add_plot = allEfficiencyPlots.append
22 for variable, thresholds in six.iteritems(variables):
23  for plot in plots[variable]:
24  for threshold in thresholds:
25  plotName = '{0}_threshold_{1}'.format(plot, threshold)
26  add_plot(plotName)
27 
28 resolution_plots = [
29  "resolutionTauET_EB", "resolutionTauET_EE",
30  "resolutionTauET_EB_EE", "resolutionTauPhi_EB", "resolutionTauPhi_EE",
31  "resolutionTauPhi_EB_EE", "resolutionTauEta",
32 
33 ]
34 plots2D = [
35  'L1TauETvsTauET_EB', 'L1TauETvsTauET_EE', 'L1TauETvsTauET_EB_EE',
36  'L1TauPhivsTauPhi_EB', 'L1TauPhivsTauPhi_EE', 'L1TauPhivsTauPhi_EB_EE',
37  'L1TauEtavsTauEta',
38 ]
39 
40 allPlots = []
41 allPlots.extend(allEfficiencyPlots)
42 allPlots.extend(resolution_plots)
43 allPlots.extend(plots2D)
44 
45 from DQMOffline.L1Trigger.L1TDiffHarvesting_cfi import l1tDiffHarvesting
46 l1tTauEmuDiff = l1tDiffHarvesting.clone(
47  plotCfgs=cms.untracked.VPSet(
48  cms.untracked.PSet( # EMU comparison
49  dir1=cms.untracked.string("L1T/L1TObjects/L1TTau/L1TriggerVsReco"),
50  dir2=cms.untracked.string("L1TEMU/L1TObjects/L1TTau/L1TriggerVsReco"),
51  outputDir=cms.untracked.string(
52  "L1TEMU/L1TObjects/L1TTau/L1TriggerVsReco/Comparison"),
53  plots=cms.untracked.vstring(allPlots)
54  ),
55  )
56 )
L1TTauDiff_cfi.add_plot
add_plot
Definition: L1TTauDiff_cfi.py:21
format