27 m1.subDirs.extend([monitorModule.DQMBaseFolder.value()+
"/HLT_.*",
28 monitorModule.DQMBaseFolder.value()+
"/"+monitorModule.L1Plotter.DQMFolder.value(),
29 monitorModule.DQMBaseFolder.value()+
"/.*"])
31 def _addEfficiencies(level, quantities, nameFormat, titleObject="#tau", postfix=""):
34 for quantity, titleLabel
in quantities:
35 name = nameFormat % (level, quantity)
36 title =
"%s %s %s efficiency%s" % (level, titleObject, titleLabel, postfix)
37 m1.efficiencyProfile.append(
"%s '%s' helpers/%sNum helpers/%sDenom" % (name, title, name, name))
39 _addEfficiencies(
"L1", [(
"Et",
"E_{T}"),
41 (
"Phi",
"#phi")],
"%sTau%sEff")
42 _addEfficiencies(
"L1", [(
"Et",
"E_{T}"),
44 (
"Phi",
"#phi")],
"%sIsoTau%sEff")
45 _addEfficiencies(
"L1", [(
"HighEt",
"E_{T}")],
"%sTau%sEff", postfix=
"(high E_{T})")
47 _addEfficiencies(
"L1", [(
"Et",
"E_{T}")],
"%sETM%sEff",
"ETM")
49 _addEfficiencies(
"L2", [(
"Et",
"E_{T}"),
50 (
"Phi",
"#phi")],
"%sTrigMET%sEff",
"MET")
51 _addEfficiencies(
"tau", [(
"Et",
"E_{T}"),(
"Eta",
"#eta"),(
"Phi",
"#phi")],
"%s%sEff", titleObject=
"")
52 _addEfficiencies(
"muon", [(
"Et",
"E_{T}"),(
"Eta",
"#eta"),(
"Phi",
"#phi")],
"%s%sEff", titleObject=
"")
53 _addEfficiencies(
"electron", [(
"Et",
"E_{T}"),(
"Eta",
"#eta"),(
"Phi",
"#phi")],
"%s%sEff", titleObject=
"")
54 _addEfficiencies(
"met", [(
"Et",
"E_{T}"),(
"Phi",
"#phi")],
"%s%sEff", titleObject=
"")
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")
68 m1.efficiency.append(
"L3EtaPhiEfficiency 'eta phi eff; #eta; #phi' helpers/L3TrigTauEtaPhiEffNum helpers/L3TrigTauEtaPhiEffDenom")
69 m1.efficiency.append(
"tauEtaPhiEfficiency 'eta phi eff; #eta; #phi' helpers/tauEtaPhiEffNum helpers/tauEtaPhiEffDenom")
70 m1.efficiency.append(
"muonEtaPhiEfficiency 'eta phi eff; #eta; #phi' helpers/muonEtaPhiEffNum helpers/muonEtaPhiEffDenom")
71 m1.efficiency.append(
"electronEtaPhiEfficiency 'eta phi eff; #eta; #phi' helpers/electronEtaPhiEffNum helpers/electronEtaPhiEffDenom")
76 (HLTTauPostAnalysisInclusive, HLTTauPostAnalysisInclusive2) =
makeInclusiveAnalyzer(hltTauOfflineMonitor_Inclusive)
77 (HLTTauPostAnalysisPFTaus, HLTTauPostAnalysisPFTaus2) =
makePFTauAnalyzer(hltTauOfflineMonitor_PFTaus)
78 (HLTTauPostAnalysisTP, HLTTauPostAnalysisTP2) =
makePFTauAnalyzer(hltTauOfflineMonitor_TagAndProbe)
def makeInclusiveAnalyzer