26 m1.subDirs.extend([monitorModule.DQMBaseFolder.value()+
"/HLT_.*",
27 monitorModule.DQMBaseFolder.value()+
"/"+monitorModule.L1Plotter.DQMFolder.value()])
29 def _addEfficiencies(level, quantities, nameFormat, titleObject="#tau", postfix=""):
32 for quantity, titleLabel
in quantities:
33 name = nameFormat % (level, quantity)
34 title =
"%s %s %s efficiency%s" % (level, titleObject, titleLabel, postfix)
35 m1.efficiencyProfile.append(
"%s '%s' helpers/%sNum helpers/%sDenom" % (name, title, name, name))
37 _addEfficiencies(
"L1", [(
"Et",
"E_{T}"),
39 (
"Phi",
"#phi")],
"%sTau%sEff")
40 _addEfficiencies(
"L1", [(
"HighEt",
"E_{T}")],
"%sTau%sEff", postfix=
"(high E_{T})")
42 _addEfficiencies(
"L1", [(
"Et",
"E_{T}"),
44 (
"Phi",
"#phi")],
"%sIsoTau%sEff")
45 _addEfficiencies(
"L1", [(
"HighEt",
"E_{T}")],
"%sIsoTau%sEff", postfix=
"(high E_{T})")
47 _addEfficiencies(
"L1", [(
"Et",
"E_{T}")],
"%sJet%sEff")
48 _addEfficiencies(
"L1", [(
"HighEt",
"E_{T}")],
"%sJet%sEff",
"central jet", postfix=
"(high E_{T})")
49 _addEfficiencies(
"L1", [(
"Eta",
"#eta"),
50 (
"Phi",
"#phi")],
"%sJet%sEff",
"central jet",
"(E_{T} > %.1f)" % monitorModule.L1Plotter.L1JetMinEt.value())
51 _addEfficiencies(
"L1", [(
"Et",
"E_{T}")],
"%sETM%sEff",
"ETM")
53 _addEfficiencies(
"L2", [(
"Et",
"E_{T}"),
54 (
"Phi",
"#phi")],
"%sTrigMET%sEff",
"MET")
56 for level
in [
"L2",
"L3"]:
57 _addEfficiencies(level, [(
"Et",
"p_{T}"),
59 (
"Phi",
"#phi")],
"%sTrigTau%sEff")
60 _addEfficiencies(level, [(
"HighEt",
"p_{T}")],
"%sTrigTau%sEff", postfix=
"(high p_{T})")
61 _addEfficiencies(level, [(
"Et",
"p_{T}"),
63 (
"Phi",
"#phi")],
"%sTrigElectron%sEff",
"electron")
64 _addEfficiencies(level, [(
"Et",
"p_{T}"),
66 (
"Phi",
"#phi")],
"%sTrigMuon%sEff",
"muon")
70 (HLTTauPostAnalysis_Inclusive, HLTTauPostAnalysis_Inclusive2) =
makeInclusiveAnalyzer(hltTauOfflineMonitor_Inclusive)
(HLTTauPostAnalysis_PFTaus, HLTTauPostAnalysis_PFTaus2) =
makePFTauAnalyzer(hltTauOfflineMonitor_PFTaus)
def makeInclusiveAnalyzer