CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
HLTTauPostProcessor_cfi Namespace Reference

Functions

def makeInclusiveAnalyzer
 
def makePFTauAnalyzer
 

Variables

tuple HLTTauPostSeq
 

Function Documentation

def HLTTauPostProcessor_cfi.makeInclusiveAnalyzer (   monitorModule)

Definition at line 6 of file HLTTauPostProcessor_cfi.py.

Referenced by makePFTauAnalyzer().

6 
7 def makeInclusiveAnalyzer(monitorModule):
8  m1 = DQMEDHarvester("DQMGenericClient",
9  subDirs = cms.untracked.vstring(monitorModule.DQMBaseFolder.value()+"/"+monitorModule.PathSummaryPlotter.DQMFolder.value()),
10  verbose = cms.untracked.uint32(0), # Set to 2 for all messages
11  outputFileName = cms.untracked.string(''),
12  resolution = cms.vstring(),
13  efficiency = cms.vstring(),
14  efficiencyProfile = cms.untracked.vstring(
15  "PathEfficiency 'Accepted Events per Path;;' helpers/PathTriggerBits helpers/RefEvents"
16  ),
17  )
18 
19  m2 = DQMEDHarvester("HLTTauPostProcessor",
20  DQMBaseFolder = cms.untracked.string(monitorModule.DQMBaseFolder.value())
21  )
22 
23  return (m1, m2)
def HLTTauPostProcessor_cfi.makePFTauAnalyzer (   monitorModule)

Definition at line 24 of file HLTTauPostProcessor_cfi.py.

References makeInclusiveAnalyzer().

24 
25 def makePFTauAnalyzer(monitorModule):
26  (m1, m2) = makeInclusiveAnalyzer(monitorModule)
27  m1.subDirs.extend([monitorModule.DQMBaseFolder.value()+"/HLT_.*",
28  monitorModule.DQMBaseFolder.value()+"/"+monitorModule.L1Plotter.DQMFolder.value(),
29  monitorModule.DQMBaseFolder.value()+"/.*"])
30 
31  def _addEfficiencies(level, quantities, nameFormat, titleObject="#tau", postfix=""):
32  if postfix != "":
33  postfix = " "+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))
38 
39  _addEfficiencies("L1", [("Et", "E_{T}"),
40  ("Eta", "#eta"),
41  ("Phi", "#phi")], "%sTau%sEff")
42  _addEfficiencies("L1", [("Et", "E_{T}"),
43  ("Eta", "#eta"),
44  ("Phi", "#phi")], "%sIsoTau%sEff")
45  _addEfficiencies("L1", [("HighEt", "E_{T}")], "%sTau%sEff", postfix="(high E_{T})")
46 
47  _addEfficiencies("L1", [("Et", "E_{T}")], "%sETM%sEff", "ETM")
48 
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="")
55 
56  for level in ["L2", "L3"]:
57  _addEfficiencies(level, [("Et", "p_{T}"),
58  ("Eta", "#eta"),
59  ("Phi", "#phi")], "%sTrigTau%sEff")
60  _addEfficiencies(level, [("HighEt", "p_{T}")], "%sTrigTau%sEff", postfix="(high p_{T})")
61  _addEfficiencies(level, [("Et", "p_{T}"),
62  ("Eta", "#eta"),
63  ("Phi", "#phi")], "%sTrigElectron%sEff", "electron")
64  _addEfficiencies(level, [("Et", "p_{T}"),
65  ("Eta", "#eta"),
66  ("Phi", "#phi")], "%sTrigMuon%sEff", "muon")
67 
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")
72 
73  return (m1, m2)
74 
75 
76 (HLTTauPostAnalysisInclusive, HLTTauPostAnalysisInclusive2) = makeInclusiveAnalyzer(hltTauOfflineMonitor_Inclusive)
77 (HLTTauPostAnalysisPFTaus, HLTTauPostAnalysisPFTaus2) = makePFTauAnalyzer(hltTauOfflineMonitor_PFTaus)
78 (HLTTauPostAnalysisTP, HLTTauPostAnalysisTP2) = makePFTauAnalyzer(hltTauOfflineMonitor_TagAndProbe)

Variable Documentation

tuple HLTTauPostProcessor_cfi.HLTTauPostSeq
Initial value:
1 = cms.Sequence(
2  HLTTauPostAnalysisInclusive+HLTTauPostAnalysisInclusive2+
3  HLTTauPostAnalysisPFTaus+HLTTauPostAnalysisPFTaus2+
4  HLTTauPostAnalysisTP+HLTTauPostAnalysisTP2
5 )

Definition at line 79 of file HLTTauPostProcessor_cfi.py.