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