CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 5 of file HLTTauPostProcessor_cfi.py.

Referenced by makePFTauAnalyzer().

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

Definition at line 23 of file HLTTauPostProcessor_cfi.py.

References makeInclusiveAnalyzer().

23 
24 def makePFTauAnalyzer(monitorModule):
25  (m1, m2) = makeInclusiveAnalyzer(monitorModule)
26  m1.subDirs.extend([monitorModule.DQMBaseFolder.value()+"/HLT_.*",
27  monitorModule.DQMBaseFolder.value()+"/"+monitorModule.L1Plotter.DQMFolder.value()])
28 
29  def _addEfficiencies(level, quantities, nameFormat, titleObject="#tau", postfix=""):
30  if postfix != "":
31  postfix = " "+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))
36 
37  _addEfficiencies("L1", [("Et", "E_{T}"),
38  ("Eta", "#eta"),
39  ("Phi", "#phi")], "%sTau%sEff")
40  _addEfficiencies("L1", [("HighEt", "E_{T}")], "%sTau%sEff", postfix="(high E_{T})")
41 
42  _addEfficiencies("L1", [("Et", "E_{T}"),
43  ("Eta", "#eta"),
44  ("Phi", "#phi")], "%sIsoTau%sEff")
45  _addEfficiencies("L1", [("HighEt", "E_{T}")], "%sIsoTau%sEff", postfix="(high E_{T})")
46 
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")
52 
53  _addEfficiencies("L2", [("Et", "E_{T}"),
54  ("Phi", "#phi")], "%sTrigMET%sEff", "MET")
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  return (m1, m2)
68 
69 
70 (HLTTauPostAnalysis_Inclusive, HLTTauPostAnalysis_Inclusive2) = makeInclusiveAnalyzer(hltTauOfflineMonitor_Inclusive)
(HLTTauPostAnalysis_PFTaus, HLTTauPostAnalysis_PFTaus2) = makePFTauAnalyzer(hltTauOfflineMonitor_PFTaus)

Variable Documentation

tuple HLTTauPostProcessor_cfi.HLTTauPostSeq
Initial value:
1 = cms.Sequence(
2  HLTTauPostAnalysis_Inclusive+HLTTauPostAnalysis_Inclusive2+
3  HLTTauPostAnalysis_PFTaus+HLTTauPostAnalysis_PFTaus2
4 )

Definition at line 71 of file HLTTauPostProcessor_cfi.py.