CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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/L1TObjects/L1TTau/L1TriggerVsReco/efficiency_raw"),
33  outputDir=cms.untracked.string("L1T/L1TObjects/L1TTau/L1TriggerVsReco"),
34  numeratorSuffix=cms.untracked.string("_Num"),
35  denominatorSuffix=cms.untracked.string("_Den"),
36  plots=cms.untracked.vstring(allEfficiencyPlots),
37 
38  ),
39  )
40 )
41 
42 l1tTauEmuEfficiency = l1tEfficiencyHarvesting.clone(
43  plotCfgs=cms.untracked.VPSet(
44  cms.untracked.PSet(
45  numeratorDir=cms.untracked.string(
46  "L1TEMU/L1TObjects/L1TTau/L1TriggerVsReco/efficiency_raw"),
47  outputDir=cms.untracked.string("L1TEMU/L1TObjects/L1TTau/L1TriggerVsReco"),
48  numeratorSuffix=cms.untracked.string("_Num"),
49  denominatorSuffix=cms.untracked.string("_Den"),
50  plots=cms.untracked.vstring(allEfficiencyPlots),
51  ),
52  )
53 )