26 m1.subDirs.extend([monitorModule.DQMBaseFolder.value()+
"/HLT_.*",
27 monitorModule.DQMBaseFolder.value()+
"/"+monitorModule.L1Plotter.DQMFolder.value(),
28 monitorModule.DQMBaseFolder.value()+
"/.*"])
30 def _addEfficiencies(level, quantities, nameFormat, titleObject="#tau", postfix=""):
33 for quantity, titleLabel
in quantities:
34 name = nameFormat % (level, quantity)
35 title =
"%s %s %s efficiency%s" % (level, titleObject, titleLabel, postfix)
36 m1.efficiencyProfile.append(
"%s '%s' helpers/%sNum helpers/%sDenom" % (name, title, name, name))
38 _addEfficiencies(
"L1", [(
"Et",
"E_{T}"),
40 (
"Phi",
"#phi")],
"%sTau%sEff")
41 _addEfficiencies(
"L1", [(
"Et",
"E_{T}"),
43 (
"Phi",
"#phi")],
"%sIsoTau%sEff")
44 _addEfficiencies(
"L1", [(
"HighEt",
"E_{T}")],
"%sTau%sEff", postfix=
"(high E_{T})")
46 _addEfficiencies(
"L1", [(
"Et",
"E_{T}")],
"%sETM%sEff",
"ETM")
48 _addEfficiencies(
"L2", [(
"Et",
"E_{T}"),
49 (
"Phi",
"#phi")],
"%sTrigMET%sEff",
"MET")
50 _addEfficiencies(
"tau", [(
"Et",
"E_{T}"),(
"Eta",
"#eta"),(
"Phi",
"#phi")],
"%s%sEff", titleObject=
"")
51 _addEfficiencies(
"muon", [(
"Et",
"E_{T}"),(
"Eta",
"#eta"),(
"Phi",
"#phi")],
"%s%sEff", titleObject=
"")
52 _addEfficiencies(
"electron", [(
"Et",
"E_{T}"),(
"Eta",
"#eta"),(
"Phi",
"#phi")],
"%s%sEff", titleObject=
"")
53 _addEfficiencies(
"met", [(
"Et",
"E_{T}"),(
"Phi",
"#phi")],
"%s%sEff", titleObject=
"")
55 for level
in [
"L2",
"L3"]:
56 _addEfficiencies(level, [(
"Et",
"p_{T}"),
58 (
"Phi",
"#phi")],
"%sTrigTau%sEff")
59 _addEfficiencies(level, [(
"HighEt",
"p_{T}")],
"%sTrigTau%sEff", postfix=
"(high p_{T})")
60 _addEfficiencies(level, [(
"Et",
"p_{T}"),
62 (
"Phi",
"#phi")],
"%sTrigElectron%sEff",
"electron")
63 _addEfficiencies(level, [(
"Et",
"p_{T}"),
65 (
"Phi",
"#phi")],
"%sTrigMuon%sEff",
"muon")
67 m1.efficiency.append(
"L3EtaPhiEfficiency 'eta phi eff; #eta; #phi' helpers/L3TrigTauEtaPhiEffNum helpers/L3TrigTauEtaPhiEffDenom")
68 m1.efficiency.append(
"tauEtaPhiEfficiency 'eta phi eff; #eta; #phi' helpers/tauEtaPhiEffNum helpers/tauEtaPhiEffDenom")
69 m1.efficiency.append(
"muonEtaPhiEfficiency 'eta phi eff; #eta; #phi' helpers/muonEtaPhiEffNum helpers/muonEtaPhiEffDenom")
70 m1.efficiency.append(
"electronEtaPhiEfficiency 'eta phi eff; #eta; #phi' helpers/electronEtaPhiEffNum helpers/electronEtaPhiEffDenom")
75 (HLTTauPostAnalysisInclusive, HLTTauPostAnalysisInclusive2) =
makeInclusiveAnalyzer(hltTauOfflineMonitor_Inclusive)
76 (HLTTauPostAnalysisPFTaus, HLTTauPostAnalysisPFTaus2) =
makePFTauAnalyzer(hltTauOfflineMonitor_PFTaus)
77 (HLTTauPostAnalysisPNetTaus, HLTTauPostAnalysisPNetTaus2) =
makePFTauAnalyzer(hltTauOfflineMonitor_PNetTaus)
78 (HLTTauPostAnalysisTP, HLTTauPostAnalysisTP2) =
makePFTauAnalyzer(hltTauOfflineMonitor_TagAndProbe)
def makePFTauAnalyzer(monitorModule)
def makeInclusiveAnalyzer(monitorModule)