CMS 3D CMS Logo

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

Classes

class  AddTauCollection
 

Functions

def _buildIDSourcePSet
 
def _switchToPFTau
 
def redoPFTauDiscriminators
 
def switchTo31Xdefaults
 
def switchToCaloTau
 
def switchToPFTauByType
 
def switchToPFTauFixedCone
 
def switchToPFTauHPS
 
def switchToPFTauHPSpTaNC
 
def switchToPFTauShrinkingCone
 

Variables

list classicPFTauIDSources
 
list classicTauIDSources
 
list hpsTancTauIDSources
 
list hpsTauIDSources
 
tuple pfTauJECpayloadMapping
 
list tancTauIDSources
 

Function Documentation

def tauTools._buildIDSourcePSet (   pfTauType,
  idSources,
  postfix = "" 
)
private
Build a PSet defining the tau ID sources to embed into the pat::Tau 

Definition at line 116 of file tauTools.py.

References _switchToPFTau().

Referenced by _switchToPFTau(), and switchToCaloTau().

117 def _buildIDSourcePSet(pfTauType, idSources, postfix =""):
118  """ Build a PSet defining the tau ID sources to embed into the pat::Tau """
119  output = cms.PSet()
120  for label, discriminator in idSources:
121  if ":" in discriminator:
122  discr = discriminator.split(":")
123  setattr(output, label, cms.InputTag(pfTauType + discr[0] + postfix + ":" + discr[1]))
124  else:
125  setattr(output, label, cms.InputTag(pfTauType + discriminator + postfix))
126  return output
def _buildIDSourcePSet
Definition: tauTools.py:116
def tauTools._switchToPFTau (   process,
  pfTauLabelOld,
  pfTauLabelNew,
  pfTauType,
  idSources,
  jecLevels,
  jecPayloadMapping,
  patTauLabel = "",
  postfix = "" 
)
private
internal auxiliary function to switch to **any** PFTau collection

Definition at line 134 of file tauTools.py.

References _buildIDSourcePSet(), and helpers.applyPostfix().

Referenced by _buildIDSourcePSet(), switchToPFTauFixedCone(), switchToPFTauHPS(), switchToPFTauHPSpTaNC(), and switchToPFTauShrinkingCone().

135  postfix = ""):
136  """internal auxiliary function to switch to **any** PFTau collection"""
137  print ' Taus: ', pfTauLabelOld, '->', pfTauLabelNew
138 
139  applyPostfix(process, "tauMatch" + patTauLabel, postfix).src = pfTauLabelNew
140  applyPostfix(process, "tauGenJetMatch" + patTauLabel, postfix).src = pfTauLabelNew
141 
142  applyPostfix(process, "tauIsoDepositPFCandidates" + patTauLabel, postfix).src = pfTauLabelNew
143  applyPostfix(process, "tauIsoDepositPFCandidates" + patTauLabel, postfix).ExtractorPSet.tauSource = pfTauLabelNew
144  applyPostfix(process, "tauIsoDepositPFChargedHadrons" + patTauLabel, postfix).src = pfTauLabelNew
145  applyPostfix(process, "tauIsoDepositPFChargedHadrons" + patTauLabel, postfix).ExtractorPSet.tauSource = pfTauLabelNew
146  applyPostfix(process, "tauIsoDepositPFNeutralHadrons" + patTauLabel, postfix).src = pfTauLabelNew
147  applyPostfix(process, "tauIsoDepositPFNeutralHadrons" + patTauLabel, postfix).ExtractorPSet.tauSource = pfTauLabelNew
148  applyPostfix(process, "tauIsoDepositPFGammas" + patTauLabel, postfix).src = pfTauLabelNew
149  applyPostfix(process, "tauIsoDepositPFGammas" + patTauLabel, postfix).ExtractorPSet.tauSource = pfTauLabelNew
150 
151 # applyPostfix(process, "patTauJetCorrFactors" + patTauLabel, postfix).src = pfTauLabelNew
152 # if len(jecLevels) > 0:
153 # applyPostfix(process, "patTaus" + patTauLabel, postfix).addTauJetCorrFactors = cms.bool(True)
154 # applyPostfix(process, "patTauJetCorrFactors" + patTauLabel, postfix).parameters = jecPayloadMapping
155 # else:
156 # applyPostfix(process, "patTaus" + patTauLabel, postfix).addTauJetCorrFactors = cms.bool(False)
157 
158 
159  UpdateDiscriminators=True
160  try:
161  from RecoTauTag.Configuration.updateHPSPFTaus_cff import updateHPSPFTaus
162  except ImportError:
163  UpdateDiscriminators=False
164 
165  if UpdateDiscriminators:
166  idSources += [
167  ("byIsolationMVAraw", "DiscriminationByIsolationMVAraw"),
168  ("byLooseIsolationMVA", "DiscriminationByLooseIsolationMVA"),
169  ("byMediumIsolationMVA", "DiscriminationByMediumIsolationMVA"),
170  ("byTightIsolationMVA", "DiscriminationByTightIsolationMVA"),
171  ("byIsolationMVA2raw", "DiscriminationByIsolationMVA2raw"),
172  ("byLooseIsolationMVA2", "DiscriminationByLooseIsolationMVA2"),
173  ("byMediumIsolationMVA2", "DiscriminationByMediumIsolationMVA2"),
174  ("byTightIsolationMVA2", "DiscriminationByTightIsolationMVA2"),
175 # ("againstElectronMVA2raw", "DiscriminationByMVA2rawElectronRejection"),
176 # ("againstElectronMVA2category", "DiscriminationByMVA2rawElectronRejection:category"),
177 # ("againstElectronVLooseMVA2", "DiscriminationByMVA2VLooseElectronRejection"),
178 # ("againstElectronLooseMVA2", "DiscriminationByMVA2LooseElectronRejection"),
179 # ("againstElectronMediumMVA2", "DiscriminationByMVA2MediumElectronRejection"),
180 # ("againstElectronTightMVA2", "DiscriminationByMVA2TightElectronRejection"),
181  ("byLooseCombinedIsolationDeltaBetaCorr3Hits", "DiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits"),
182  ("byMediumCombinedIsolationDeltaBetaCorr3Hits", "DiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits"),
183  ("byTightCombinedIsolationDeltaBetaCorr3Hits", "DiscriminationByTightCombinedIsolationDBSumPtCorr3Hits"),
184  ("byCombinedIsolationDeltaBetaCorrRaw3Hits", "DiscriminationByRawCombinedIsolationDBSumPtCorr3Hits"),
185  ("againstElectronMVA3raw", "DiscriminationByMVA3rawElectronRejection"),
186  ("againstElectronMVA3category", "DiscriminationByMVA3rawElectronRejection:category"),
187  ("againstElectronLooseMVA3", "DiscriminationByMVA3LooseElectronRejection"),
188  ("againstElectronMediumMVA3", "DiscriminationByMVA3MediumElectronRejection"),
189  ("againstElectronTightMVA3", "DiscriminationByMVA3TightElectronRejection"),
190  ("againstElectronVTightMVA3", "DiscriminationByMVA3VTightElectronRejection"),
191  ("againstElectronDeadECAL", "DiscriminationByDeadECALElectronRejection"),
192  ("againstMuonLoose2", "DiscriminationByLooseMuonRejection2"),
193  ("againstMuonMedium2", "DiscriminationByMediumMuonRejection2"),
194  ("againstMuonTight2", "DiscriminationByTightMuonRejection2"),
195  ("againstMuonLoose3", "DiscriminationByLooseMuonRejection3"),
196  ("againstMuonTight3", "DiscriminationByTightMuonRejection3")
197  ]
198 
199  applyPostfix(process, "patTaus" + patTauLabel, postfix).tauSource = pfTauLabelNew
200  applyPostfix(process, "patTaus" + patTauLabel, postfix).tauIDSources = _buildIDSourcePSet(pfTauType, idSources, postfix)
201 
202  if hasattr(process, "cleanPatTaus" + patTauLabel + postfix):
203  getattr(process, "cleanPatTaus" + patTauLabel + postfix).preselection = \
204  'tauID("leadingTrackFinding") > 0.5 & tauID("leadingPionPtCut") > 0.5 & tauID("byIsolationUsingLeadingPion") > 0.5' \
205  + ' & tauID("againstMuon") > 0.5 & tauID("againstElectron") > 0.5' \
206  + ' & (signalPFChargedHadrCands.size() = 1 | signalPFChargedHadrCands.size() = 3)'
207 
# Name mapping for classic tau ID sources (present for fixed and shrinkingCones)
def applyPostfix
Helpers to perform some technically boring tasks like looking for all modules with a given parameter ...
Definition: helpers.py:6
def _buildIDSourcePSet
Definition: tauTools.py:116
def tauTools.redoPFTauDiscriminators (   process,
  oldPFTauLabel = cms.InputTag('hpsPFTauProducer'),
  newPFTauLabel = cms.InputTag('hpsPFTauProducer'),
  tauType = 'hpsPFTau',
  postfix = "" 
)

Definition at line 12 of file tauTools.py.

References helpers.applyPostfix(), helpers.cloneProcessingSnippet(), helpers.massSearchReplaceParam(), python.rootplot.root2matplotlib.replace(), and switchToCaloTau().

Referenced by pfTools.adaptPFTaus().

12 
13  tauType = 'hpsPFTau', postfix = ""):
14  print 'Tau discriminators: ', oldPFTauLabel, '->', newPFTauLabel
15  print 'Tau type: ', tauType
16  #oldPFTauLabel.setModuleLabel(oldPFTauLabel.getModuleLabel()+postfix)
17  tauSrc = 'PFTauProducer'
18 
19  tauDiscriminationSequence = None
20 
21  if tauType == 'hpsPFTau':
22  if hasattr(process,"updateHPSPFTaus"+postfix):
23  tauDiscriminationSequence = getattr(process,"patHPSPFTauDiscriminationUpdate"+postfix)
24  else:
25  # remove producers
26  process.patHPSPFTauDiscrimination = process.produceAndDiscriminateHPSPFTaus.copy()
27  for iname in process.patHPSPFTauDiscrimination.moduleNames():
28  if not (iname.find("DiscriminationBy")>-1 or iname.find("DiscriminationAgainst")>-1 or iname.find("kt6PFJetsForRhoComputationVoronoi")>-1):
29  process.patHPSPFTauDiscrimination.remove(getattr(process,iname) )
30  tauDiscriminationSequence = cloneProcessingSnippet(process, process.patHPSPFTauDiscrimination, postfix)
31 
32  elif tauType == 'hpsTancTaus': #to be checked if correct
33  process.patHPSTaNCPFTauDiscrimination = process.hpsTancTauInitialSequence.copy()
34  process.patHPSTaNCPFTauDiscrimination *= process.hpsTancTauDiscriminantSequence
35  # remove producers
36  for iname in process.patHPSTaNCPFTauDiscrimination.moduleNames():
37  if not (iname.find("DiscriminationBy")>-1 or iname.find("DiscriminationAgainst")>-1):
38  process.patHPSTaNCPFTauDiscrimination.remove(getattr(process,iname) )
39  tauDiscriminationSequence = cloneProcessingSnippet(process, process.patHPSTaNCPFTauDiscrimination, postfix)
40 
41  elif tauType == 'fixedConePFTau':
42  process.patFixedConePFTauDiscrimination = process.produceAndDiscriminateFixedConePFTaus.copy()
43  # remove producers
44  for iname in process.patFixedConePFTauDiscrimination.moduleNames():
45  if not (iname.find("DiscriminationBy")>-1 or iname.find("DiscriminationAgainst")>-1):
46  process.patFixedConePFTauDiscrimination.remove(getattr(process,iname) )
47  tauDiscriminationSequence = cloneProcessingSnippet(process, process.patFixedConePFTauDiscrimination, postfix)
48 
49  elif tauType == 'shrinkingConePFTau': #shr cone with TaNC
50  process.patShrinkingConePFTauDiscrimination = process.produceAndDiscriminateShrinkingConePFTaus.copy()
51  process.patShrinkingConePFTauDiscrimination *= process.produceShrinkingConeDiscriminationByTauNeuralClassifier
52  # remove producers
53  for iname in process.patShrinkingConePFTauDiscrimination.moduleNames():
54  if not (iname.find("DiscriminationBy")>-1 or iname.find("DiscriminationAgainst")>-1):
55  process.patShrinkingConePFTauDiscrimination.remove(getattr(process,iname) )
56  tauDiscriminationSequence = cloneProcessingSnippet(process, process.patShrinkingConePFTauDiscrimination, postfix)
57 
58  elif tauType == 'caloTau':
59  # fill calo sequence by discriminants
60  process.patCaloTauDiscrimination = process.tautagging.copy()
61  # remove producers
62  for iname in process.patCaloTauDiscrimination.moduleNames():
63  if not (iname.find("DiscriminationBy")>-1 or iname.find("DiscriminationAgainst")>-1):
64  process.patCaloTauDiscrimination.remove(getattr(process,iname) )
65  tauDiscriminationSequence = cloneProcessingSnippet(process, process.patCaloTauDiscrimination, postfix)
66  tauSrc = 'CaloTauProducer'
67  else:
68  raise StandardError, "Unkown tauType: '%s'"%tauType
69 
70  if not hasattr(process,"updateHPSPFTaus"+postfix):
71  applyPostfix(process,"patDefaultSequence",postfix).replace(
72  applyPostfix(process,"patTaus",postfix),
73  tauDiscriminationSequence*applyPostfix(process,"patTaus",postfix)
74  )
75 
76  massSearchReplaceParam(tauDiscriminationSequence, tauSrc, oldPFTauLabel, newPFTauLabel)
77 
# switch to CaloTau collection
def cloneProcessingSnippet
Definition: helpers.py:262
def applyPostfix
Helpers to perform some technically boring tasks like looking for all modules with a given parameter ...
Definition: helpers.py:6
def massSearchReplaceParam
Definition: helpers.py:205
def tauTools.switchTo31Xdefaults (   process)

Definition at line 415 of file tauTools.py.

References switchToPFTauFixedCone().

416 def switchTo31Xdefaults(process):
417  switchToPFTauFixedCone(process)
418  process.cleanPatTaus.preselection = cms.string('tauID("byIsolation") > 0')
def switchToPFTauFixedCone
Definition: tauTools.py:329
def switchTo31Xdefaults
Definition: tauTools.py:415
def tauTools.switchToCaloTau (   process,
  pfTauLabelOld = cms.InputTag('hpsPFTauProducer'),
  pfTauLabelNew = cms.InputTag('caloRecoTauProducer'),
  patTauLabel = "",
  postfix = "" 
)

Definition at line 82 of file tauTools.py.

References _buildIDSourcePSet(), and helpers.applyPostfix().

Referenced by redoPFTauDiscriminators().

82 
83  postfix = ""):
84  print ' Taus: ', pfTauLabelOld, '->', pfTauLabelNew
85 
86  caloTauLabel = pfTauLabelNew
87  applyPostfix(process, "tauMatch" + patTauLabel, postfix).src = caloTauLabel
88  applyPostfix(process, "tauGenJetMatch"+ patTauLabel, postfix).src = caloTauLabel
89 
90  applyPostfix(process, "patTaus" + patTauLabel, postfix).tauSource = caloTauLabel
91  applyPostfix(process, "patTaus" + patTauLabel, postfix).tauIDSources = _buildIDSourcePSet('caloRecoTau', classicTauIDSources, postfix)
92 # applyPostfix(process, "patTaus" + patTauLabel, postfix).tauIDSources = cms.PSet(
93 # leadingTrackFinding = cms.InputTag("caloRecoTauDiscriminationByLeadingTrackFinding" + postfix),
94 # leadingTrackPtCut = cms.InputTag("caloRecoTauDiscriminationByLeadingTrackPtCut" + postfix),
95 # trackIsolation = cms.InputTag("caloRecoTauDiscriminationByTrackIsolation" + postfix),
96 # ecalIsolation = cms.InputTag("caloRecoTauDiscriminationByECALIsolation" + postfix),
97 # byIsolation = cms.InputTag("caloRecoTauDiscriminationByIsolation" + postfix),
98 # againstElectron = cms.InputTag("caloRecoTauDiscriminationAgainstElectron" + postfix),
99 # againstMuon = cms.InputTag("caloRecoTauDiscriminationAgainstMuon" + postfix)
100 # )
101  ## Isolation is somewhat an issue, so we start just by turning it off
102  print "NO PF Isolation will be computed for CaloTau (this could be improved later)"
103  applyPostfix(process, "patTaus" + patTauLabel, postfix).isolation = cms.PSet()
104  applyPostfix(process, "patTaus" + patTauLabel, postfix).isoDeposits = cms.PSet()
105  applyPostfix(process, "patTaus" + patTauLabel, postfix).userIsolation = cms.PSet()
106 
107  ## no tau-jet energy corrections determined for CaloTaus yet
108 # applyPostfix(process, "patTauJetCorrFactors" + patTauLabel, postfix).src = caloTauLabel
109 # applyPostfix(process, "patTaus" + patTauLabel, postfix).addTauJetCorrFactors = cms.bool(False)
110 
111  ## adapt cleanPatTaus
112  if hasattr(process, "cleanPatTaus" + patTauLabel + postfix):
113  getattr(process, "cleanPatTaus" + patTauLabel + postfix).preselection = \
114  'tauID("leadingTrackFinding") > 0.5 & tauID("leadingTrackPtCut") > 0.5' \
115  + ' & tauID("byIsolation") > 0.5 & tauID("againstElectron") > 0.5 & (signalTracks.size() = 1 | signalTracks.size() = 3)'
def applyPostfix
Helpers to perform some technically boring tasks like looking for all modules with a given parameter ...
Definition: helpers.py:6
def _buildIDSourcePSet
Definition: tauTools.py:116
def tauTools.switchToPFTauByType (   process,
  pfTauType = None,
  pfTauLabelNew = None,
  pfTauLabelOld = cms.InputTag('hpsPFTauProducer'),
  patTauLabel = "",
  jecLevels = [],
  postfix = "" 
)

Definition at line 404 of file tauTools.py.

Referenced by pfTools.adaptPFTaus(), switchToPFTauHPSpTaNC(), and tauTools.AddTauCollection.toolCode().

405  postfix = "" ):
406  mapping = { 'shrinkingConePFTau' : switchToPFTauShrinkingCone,
407  'fixedConePFTau' : switchToPFTauFixedCone,
408  'hpsPFTau' : switchToPFTauHPS,
409  'caloRecoTau' : switchToCaloTau,
410  'hpsTancPFTau' : switchToPFTauHPSpTaNC }
411  mapping[pfTauType](process, pfTauLabelOld = pfTauLabelOld, pfTauLabelNew = pfTauLabelNew,
412  jecLevels = jecLevels,
413  patTauLabel = patTauLabel, postfix = postfix)
414 
# switch to PFTau collection that was default in PAT production in CMSSW_3_1_x release series
def tauTools.switchToPFTauFixedCone (   process,
  pfTauLabelOld = cms.InputTag('hpsPFTauProducer'),
  pfTauLabelNew = cms.InputTag('fixedConePFTauProducer'),
  patTauLabel = "",
  jecLevels = [],
  postfix = "" 
)

Definition at line 329 of file tauTools.py.

References _switchToPFTau(), and switchToPFTauShrinkingCone().

Referenced by switchTo31Xdefaults().

330  postfix = ""):
331  fixedConeIDSources = copy.copy(classicTauIDSources)
332  fixedConeIDSources.extend(classicPFTauIDSources)
333 
334  fixedConeJECpayloadMapping = pfTauJECpayloadMapping
335 
336  _switchToPFTau(process, pfTauLabelOld, pfTauLabelNew, 'fixedConePFTau', fixedConeIDSources,
337  jecLevels, fixedConeJECpayloadMapping,
338  patTauLabel = patTauLabel, postfix = postfix)
339 
# switch to PFTau collection produced for shrinking signal cone of size dR = 5.0/Et(PFTau)
def _switchToPFTau
Definition: tauTools.py:134
def tauTools.switchToPFTauHPS (   process,
  pfTauLabelOld = cms.InputTag('hpsPFTauProducer'),
  pfTauLabelNew = cms.InputTag('hpsPFTauProducer'),
  patTauLabel = "",
  jecLevels = [],
  postfix = "" 
)

Definition at line 363 of file tauTools.py.

References _switchToPFTau(), and switchToPFTauHPSpTaNC().

Referenced by switchToPFTauShrinkingCone().

364  postfix = ""):
365 
366  hpsTauJECpayloadMapping = pfTauJECpayloadMapping
367 
368  _switchToPFTau(process, pfTauLabelOld, pfTauLabelNew, 'hpsPFTau', hpsTauIDSources,
369  jecLevels, hpsTauJECpayloadMapping,
370  patTauLabel = patTauLabel, postfix = postfix)
371 
372  ## adapt cleanPatTaus
373  if hasattr(process, "cleanPatTaus" + patTauLabel + postfix):
374  getattr(process, "cleanPatTaus" + patTauLabel + postfix).preselection = \
375  'pt > 15 & abs(eta) < 2.3 & tauID("decayModeFinding") > 0.5 & tauID("byLooseIsolation") > 0.5' \
376  + ' & tauID("againstMuonTight") > 0.5 & tauID("againstElectronLoose") > 0.5'
377 
# switch to hadron-plus-strip(s) (HPS) PFTau collection
def _switchToPFTau
Definition: tauTools.py:134
def tauTools.switchToPFTauHPSpTaNC (   process,
  pfTauLabelOld = cms.InputTag('hpsPFTauProducer'),
  pfTauLabelNew = cms.InputTag('hpsTancTaus'),
  patTauLabel = "",
  jecLevels = [],
  postfix = "" 
)

Definition at line 383 of file tauTools.py.

References _switchToPFTau(), and switchToPFTauByType().

Referenced by switchToPFTauHPS().

384  postfix = ""):
385 
386  hpsTancTauJECpayloadMapping = pfTauJECpayloadMapping
387 
388  _switchToPFTau(process, pfTauLabelOld, pfTauLabelNew, 'hpsTancTaus', hpsTancTauIDSources,
389  jecLevels, hpsTancTauJECpayloadMapping,
390  patTauLabel = patTauLabel, postfix = postfix)
391 
392  ## adapt cleanPatTaus
393  if hasattr(process, "cleanPatTaus" + patTauLabel + postfix):
394  getattr(process, "cleanPatTaus" + patTauLabel + postfix).preselection = \
395  'pt > 15 & abs(eta) < 2.3 & tauID("decayModeFinding") > 0.5 & tauID("byHPSloose") > 0.5' \
396  + ' & tauID("againstMuonTight") > 0.5 & tauID("againstElectronLoose") > 0.5'
397 
# Select switcher by string
def _switchToPFTau
Definition: tauTools.py:134
def tauTools.switchToPFTauShrinkingCone (   process,
  pfTauLabelOld = cms.InputTag('hpsPFTauProducer'),
  pfTauLabelNew = cms.InputTag('shrinkingConePFTauProducer'),
  patTauLabel = "",
  jecLevels = [],
  postfix = "" 
)

Definition at line 345 of file tauTools.py.

References _switchToPFTau(), and switchToPFTauHPS().

Referenced by switchToPFTauFixedCone().

346  postfix = ""):
347  shrinkingIDSources = copy.copy(classicTauIDSources)
348  shrinkingIDSources.extend(classicPFTauIDSources)
349  # Only shrinkingCone has associated TaNC discriminators, so add them here
350  shrinkingIDSources.extend(tancTauIDSources)
351 
352  shrinkingConeJECpayloadMapping = pfTauJECpayloadMapping
353 
354  _switchToPFTau(process, pfTauLabelOld, pfTauLabelNew, 'shrinkingConePFTau', shrinkingIDSources,
355  jecLevels, shrinkingConeJECpayloadMapping,
356  patTauLabel = patTauLabel, postfix = postfix)
357 
# switch to hadron-plus-strip(s) (HPS) PFTau collection
def _switchToPFTau
Definition: tauTools.py:134

Variable Documentation

list tauTools.classicPFTauIDSources
Initial value:
1 = [
2  ("leadingPionPtCut", "DiscriminationByLeadingPionPtCut"),
3  ("trackIsolationUsingLeadingPion", "DiscriminationByTrackIsolationUsingLeadingPion"),
4  ("ecalIsolationUsingLeadingPion", "DiscriminationByECALIsolationUsingLeadingPion"),
5  ("byIsolationUsingLeadingPion", "DiscriminationByIsolationUsingLeadingPion")]

Definition at line 217 of file tauTools.py.

list tauTools.classicTauIDSources
Initial value:
1 = [
2  ("leadingTrackFinding", "DiscriminationByLeadingTrackFinding"),
3  ("leadingTrackPtCut", "DiscriminationByLeadingTrackPtCut"),
4  ("trackIsolation", "DiscriminationByTrackIsolation"),
5  ("ecalIsolation", "DiscriminationByECALIsolation"),
6  ("byIsolation", "DiscriminationByIsolation"),
7  ("againstElectron", "DiscriminationAgainstElectron"),
8  ("againstMuon", "DiscriminationAgainstMuon") ]

Definition at line 208 of file tauTools.py.

list tauTools.hpsTancTauIDSources
Initial value:
1 = [
2  ("leadingTrackFinding", "DiscriminationByLeadingTrackFinding"),
3  ("leadingTrackPtCut", "DiscriminationByLeadingTrackPtCut"),
4  ("leadingPionPtCut", "DiscriminationByLeadingPionPtCut"),
5  ("byTaNCraw", "DiscriminationByTancRaw"),
6  ("byTaNC", "DiscriminationByTanc"),
7  ("byTaNCvloose", "DiscriminationByTancVLoose"),
8  ("byTaNCloose", "DiscriminationByTancLoose"),
9  ("byTaNCmedium", "DiscriminationByTancMedium"),
10  ("byTaNCtight", "DiscriminationByTancTight"),
11  ("decayModeFinding", "DiscriminationByDecayModeSelection"),
12  ("byHPSvloose", "DiscriminationByVLooseIsolation"),
13  ("byHPSloose", "DiscriminationByLooseIsolation"),
14  ("byHPSmedium", "DiscriminationByMediumIsolation"),
15  ("byHPStight", "DiscriminationByTightIsolation"),
16  ("againstElectronLoose", "DiscriminationByLooseElectronRejection"),
17  ("againstElectronMedium", "DiscriminationByMediumElectronRejection"),
18  ("againstElectronTight", "DiscriminationByTightElectronRejection"),
19  ("againstMuonLoose", "DiscriminationByLooseMuonRejection"),
20  ("againstMuonTight", "DiscriminationByTightMuonRejection") ]

Definition at line 277 of file tauTools.py.

list tauTools.hpsTauIDSources

Definition at line 232 of file tauTools.py.

tuple tauTools.pfTauJECpayloadMapping
Initial value:
1 = cms.VPSet(
2  cms.PSet(
3  payload = cms.string('AK5tauHPSlooseCombDBcorrOneProng0Pi0'),
4  decayModes = cms.vstring('%i' % tauToOneProng0PiZero)
5  ),
6  cms.PSet(
7  payload = cms.string('AK5tauHPSlooseCombDBcorrOneProng1Pi0'),
8  decayModes = cms.vstring('%i' % tauToOneProng1PiZero)
9  ),
10  cms.PSet(
11  payload = cms.string('AK5tauHPSlooseCombDBcorrOneProng2Pi0'),
12  decayModes = cms.vstring('%i' % tauToOneProng2PiZero)
13  ),
14  cms.PSet(
15  payload = cms.string('AK5tauHPSlooseCombDBcorrThreeProng0Pi0'),
16  decayModes = cms.vstring('%i' % tauToThreeProng0PiZero)
17  ),
18  cms.PSet(
19  payload = cms.string('AK5tauHPSlooseCombDBcorr'),
20  decayModes = cms.vstring('*')
21  )
22 )

Definition at line 300 of file tauTools.py.

list tauTools.tancTauIDSources
Initial value:
1 = [
2  ("byTaNC", "DiscriminationByTaNC"),
3  ("byTaNCfrOnePercent", "DiscriminationByTaNCfrOnePercent"),
4  ("byTaNCfrHalfPercent", "DiscriminationByTaNCfrHalfPercent"),
5  ("byTaNCfrQuarterPercent", "DiscriminationByTaNCfrQuarterPercent"),
6  ("byTaNCfrTenthPercent", "DiscriminationByTaNCfrTenthPercent") ]

Definition at line 224 of file tauTools.py.