CMS 3D CMS Logo

L1TTauEfficiency_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  'NonIsotau': 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 variables.iteritems():
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 from DQMOffline.L1Trigger.L1TEfficiencyHarvesting_cfi import l1tEfficiencyHarvesting
29 l1tTauEfficiency = l1tEfficiencyHarvesting.clone(
30  plotCfgs=cms.untracked.VPSet(
31  cms.untracked.PSet(
32  numeratorDir=cms.untracked.string("L1T/L1TTau/efficiency_raw"),
33  outputDir=cms.untracked.string("L1T/L1TTau"),
34  numeratorSuffix=cms.untracked.string("_Num"),
35  denominatorSuffix=cms.untracked.string("_Den"),
36  plots=cms.untracked.vstring(allEfficiencyPlots),
37 
38  ),
39  cms.untracked.PSet(
40  numeratorDir=cms.untracked.string(
41  "L1TEMU/L1TTau/efficiency_raw"),
42  outputDir=cms.untracked.string("L1TEMU/L1TTau"),
43  numeratorSuffix=cms.untracked.string("_Num"),
44  denominatorSuffix=cms.untracked.string("_Den"),
45  plots=cms.untracked.vstring(allEfficiencyPlots),
46  ),
47  )
48 )