CMS 3D CMS Logo

Functions | Variables
taus_cff Namespace Reference

Functions

def _tauIdWPMask (pattern, choices, doc="", from_raw=False, wp_thrs=None)
 Tables for final output and docs ##########################. More...
 

Variables

 _deepTauVars2017v2p1
 
 _deepTauVars2018v2p5
 
 _tauVarsBase
 
 _UTagCHS
 
 _UTagPUPPI
 
 _variablesMiniV2
 
 bool
 
 branchName
 
 charge
 
 chargedIso
 
 checkCharge
 
 choices
 
 cut
 
 decayMode
 
 decayModePNet
 
 decayModeUParT
 
 doc
 
 docString
 
 dxy
 
 dz
 
 eleIdx
 
 eta
 
 finalTaus
 
 float
 
 from_raw
 
 GenParticles
 
 genPartIdxMother
 
 genTauTask
 
 genVisTaus
 
 genVisTauTable
 
 idAntiEleDeadECal
 
 idAntiMu
 
 idDecayModeNewDMs
 
 idDecayModeOldDMs
 
 idDeepTau2017v2p1VSe
 
 idDeepTau2017v2p1VSjet
 
 idDeepTau2017v2p1VSmu
 
 idDeepTau2018v2p5VSe
 
 idDeepTau2018v2p5VSjet
 
 idDeepTau2018v2p5VSmu
 
 includeNeutrinos
 
 int
 
 jetIdx
 
 lazyEval
 
 leadTkDeltaEta
 
 leadTkDeltaPhi
 
 leadTkPtOverTauPt
 
 mass
 
 matched
 
 maxDeltaR
 
 maxDPtRel
 
 mcMap
 
 mcMapVisTau
 
 mcPdgId
 
 mcStatus
 
 muIdx
 
 name
 
 neutralIso
 
 nSVs
 
 objName
 
 objType
 
 pdgId
 
 phi
 
 photonsOutsideSignalCone
 
 precision
 
 probDM0PNet
 
 probDM0UParT
 
 probDM10PNet
 
 probDM10UParT
 
 probDM11PNet
 
 probDM11UParT
 
 probDM1PNet
 
 probDM1UParT
 
 probDM2PNet
 
 probDM2UParT
 
 pt
 
 ptCorrPNet
 
 ptCorrUParT
 
 puCorr
 
 qConfPNet
 
 qConfUParT
 
 rawDeepTau2017v2p1VSe
 
 rawDeepTau2017v2p1VSjet
 
 rawDeepTau2017v2p1VSmu
 
 rawDeepTau2018v2p5VSe
 
 rawDeepTau2018v2p5VSjet
 
 rawDeepTau2018v2p5VSmu
 
 rawIso
 
 rawIsodR03
 
 rawPNetVSe
 
 rawPNetVSjet
 
 rawPNetVSmu
 
 rawUParTVSe
 
 rawUParTVSjet
 
 rawUParTVSmu
 
 resolveAmbiguities
 
 resolveByMatchQuality
 
 src
 
 srcGenParticles
 
 status
 
 storeLostTracks
 
 svIdx1
 
 svIdx2
 
 tauGenJetsForNano
 
 tauGenJetsSelectorAllHadronsForNano
 
 tauIdx
 
 tauMCTable
 
 tauMCTask
 
 tauSignalCands
 
 tauSignalCandsTable
 
 tauSignalCandsTask
 
 tausMCMatchHadTauForTable
 
 tausMCMatchLepTauForTable
 
 tauTable
 
 tauTablesTask
 
 tauTask
 
 True
 
 variables
 
 wp_thrs
 

Function Documentation

◆ _tauIdWPMask()

def taus_cff._tauIdWPMask (   pattern,
  choices,
  doc = "",
  from_raw = False,
  wp_thrs = None 
)
private

Tables for final output and docs ##########################.

Definition at line 30 of file taus_cff.py.

References join(), and common_cff.Var().

30 def _tauIdWPMask(pattern, choices, doc="", from_raw=False, wp_thrs=None):
31  if from_raw:
32  assert wp_thrs is not None, "wp_thrs argument in _tauIdWPMask() is None, expect it to be dict-like"
33 
34  var_definition = []
35  for wp_name in choices:
36  if not isinstance(wp_thrs[wp_name], float):
37  raise TypeError("Threshold for WP=%s is not a float number." % wp_name)
38  wp_definition = "test_bit(tauID('{}')-{}+1,0)".format(pattern, wp_thrs[wp_name])
39  var_definition.append(wp_definition)
40  var_definition = " + ".join(var_definition)
41  var_definition = ("?isTauIDAvailable('%s')?(" % pattern) + var_definition + "):0"
42  else:
43  var_definition = " + ".join(["tauID('%s')" % (pattern % c) for c in choices])
44  var_definition = ("?isTauIDAvailable('%s')?(" % (pattern % choices[0])) + var_definition + "):0"
45 
46  doc = doc + ": "+", ".join(["%d = %s" % (i,c) for (i,c) in enumerate(choices, start=1)])
47  return Var(var_definition, "uint8", doc=doc)
48 
49 
def Var(expr, valtype, doc=None, precision=-1, lazyEval=False)
Definition: common_cff.py:17
static std::string join(char **cmd)
Definition: RemoteFile.cc:21
def _tauIdWPMask(pattern, choices, doc="", from_raw=False, wp_thrs=None)
Tables for final output and docs ##########################.
Definition: taus_cff.py:30

Variable Documentation

◆ _deepTauVars2017v2p1

taus_cff._deepTauVars2017v2p1
private

Definition at line 88 of file taus_cff.py.

◆ _deepTauVars2018v2p5

taus_cff._deepTauVars2018v2p5
private

Definition at line 102 of file taus_cff.py.

◆ _tauVarsBase

taus_cff._tauVarsBase
private

Definition at line 56 of file taus_cff.py.

◆ _UTagCHS

taus_cff._UTagCHS
private

Definition at line 117 of file taus_cff.py.

◆ _UTagPUPPI

taus_cff._UTagPUPPI
private

Definition at line 131 of file taus_cff.py.

◆ _variablesMiniV2

taus_cff._variablesMiniV2
private

Definition at line 145 of file taus_cff.py.

◆ bool

taus_cff.bool

Definition at line 84 of file taus_cff.py.

◆ branchName

taus_cff.branchName

Definition at line 249 of file taus_cff.py.

◆ charge

taus_cff.charge

Definition at line 57 of file taus_cff.py.

◆ chargedIso

taus_cff.chargedIso

Definition at line 78 of file taus_cff.py.

◆ checkCharge

taus_cff.checkCharge

Definition at line 223 of file taus_cff.py.

◆ choices

taus_cff.choices

Definition at line 83 of file taus_cff.py.

◆ cut

taus_cff.cut

Definition at line 21 of file taus_cff.py.

◆ decayMode

taus_cff.decayMode

Definition at line 64 of file taus_cff.py.

◆ decayModePNet

taus_cff.decayModePNet

Definition at line 118 of file taus_cff.py.

◆ decayModeUParT

taus_cff.decayModeUParT

Definition at line 132 of file taus_cff.py.

◆ doc

taus_cff.doc

Definition at line 53 of file taus_cff.py.

◆ docString

taus_cff.docString

Definition at line 250 of file taus_cff.py.

◆ dxy

taus_cff.dxy

Definition at line 72 of file taus_cff.py.

◆ dz

taus_cff.dz

Definition at line 73 of file taus_cff.py.

◆ eleIdx

taus_cff.eleIdx

Definition at line 59 of file taus_cff.py.

Referenced by LeptonFSRProducer.produce().

◆ eta

taus_cff.eta

Definition at line 211 of file taus_cff.py.

◆ finalTaus

taus_cff.finalTaus

Definition at line 19 of file taus_cff.py.

◆ float

taus_cff.float

Definition at line 67 of file taus_cff.py.

◆ from_raw

taus_cff.from_raw

Definition at line 160 of file taus_cff.py.

◆ GenParticles

taus_cff.GenParticles

Definition at line 190 of file taus_cff.py.

◆ genPartIdxMother

taus_cff.genPartIdxMother

Definition at line 215 of file taus_cff.py.

◆ genTauTask

taus_cff.genTauTask

Definition at line 259 of file taus_cff.py.

◆ genVisTaus

taus_cff.genVisTaus

Definition at line 198 of file taus_cff.py.

Referenced by GenVisTauProducer.produce().

◆ genVisTauTable

taus_cff.genVisTauTable

Definition at line 203 of file taus_cff.py.

◆ idAntiEleDeadECal

taus_cff.idAntiEleDeadECal

Definition at line 84 of file taus_cff.py.

◆ idAntiMu

taus_cff.idAntiMu

Definition at line 83 of file taus_cff.py.

◆ idDecayModeNewDMs

taus_cff.idDecayModeNewDMs

Definition at line 66 of file taus_cff.py.

◆ idDecayModeOldDMs

taus_cff.idDecayModeOldDMs

Definition at line 65 of file taus_cff.py.

◆ idDeepTau2017v2p1VSe

taus_cff.idDeepTau2017v2p1VSe

Definition at line 92 of file taus_cff.py.

◆ idDeepTau2017v2p1VSjet

taus_cff.idDeepTau2017v2p1VSjet

Definition at line 98 of file taus_cff.py.

◆ idDeepTau2017v2p1VSmu

taus_cff.idDeepTau2017v2p1VSmu

Definition at line 95 of file taus_cff.py.

◆ idDeepTau2018v2p5VSe

taus_cff.idDeepTau2018v2p5VSe

Definition at line 106 of file taus_cff.py.

◆ idDeepTau2018v2p5VSjet

taus_cff.idDeepTau2018v2p5VSjet

Definition at line 112 of file taus_cff.py.

◆ idDeepTau2018v2p5VSmu

taus_cff.idDeepTau2018v2p5VSmu

Definition at line 109 of file taus_cff.py.

◆ includeNeutrinos

taus_cff.includeNeutrinos

Definition at line 191 of file taus_cff.py.

◆ int

taus_cff.int

Definition at line 183 of file taus_cff.py.

◆ jetIdx

taus_cff.jetIdx

Definition at line 58 of file taus_cff.py.

◆ lazyEval

taus_cff.lazyEval

Definition at line 72 of file taus_cff.py.

◆ leadTkDeltaEta

taus_cff.leadTkDeltaEta

Definition at line 68 of file taus_cff.py.

◆ leadTkDeltaPhi

taus_cff.leadTkDeltaPhi

Definition at line 69 of file taus_cff.py.

◆ leadTkPtOverTauPt

taus_cff.leadTkPtOverTauPt

Definition at line 67 of file taus_cff.py.

◆ mass

taus_cff.mass

Definition at line 212 of file taus_cff.py.

◆ matched

taus_cff.matched

Definition at line 221 of file taus_cff.py.

◆ maxDeltaR

taus_cff.maxDeltaR

Definition at line 225 of file taus_cff.py.

◆ maxDPtRel

taus_cff.maxDPtRel

Definition at line 226 of file taus_cff.py.

◆ mcMap

taus_cff.mcMap

Definition at line 245 of file taus_cff.py.

◆ mcMapVisTau

taus_cff.mcMapVisTau

Definition at line 246 of file taus_cff.py.

◆ mcPdgId

taus_cff.mcPdgId

Definition at line 222 of file taus_cff.py.

◆ mcStatus

taus_cff.mcStatus

Definition at line 224 of file taus_cff.py.

◆ muIdx

taus_cff.muIdx

Definition at line 60 of file taus_cff.py.

◆ name

taus_cff.name

Definition at line 52 of file taus_cff.py.

◆ neutralIso

taus_cff.neutralIso

Definition at line 79 of file taus_cff.py.

◆ nSVs

taus_cff.nSVs

Definition at line 63 of file taus_cff.py.

◆ objName

taus_cff.objName

Definition at line 247 of file taus_cff.py.

◆ objType

taus_cff.objType

Definition at line 248 of file taus_cff.py.

◆ pdgId

taus_cff.pdgId

Definition at line 183 of file taus_cff.py.

◆ phi

taus_cff.phi

Definition at line 210 of file taus_cff.py.

◆ photonsOutsideSignalCone

taus_cff.photonsOutsideSignalCone

Definition at line 81 of file taus_cff.py.

◆ precision

taus_cff.precision

Definition at line 67 of file taus_cff.py.

◆ probDM0PNet

taus_cff.probDM0PNet

Definition at line 124 of file taus_cff.py.

◆ probDM0UParT

taus_cff.probDM0UParT

Definition at line 138 of file taus_cff.py.

◆ probDM10PNet

taus_cff.probDM10PNet

Definition at line 127 of file taus_cff.py.

◆ probDM10UParT

taus_cff.probDM10UParT

Definition at line 141 of file taus_cff.py.

◆ probDM11PNet

taus_cff.probDM11PNet

Definition at line 128 of file taus_cff.py.

◆ probDM11UParT

taus_cff.probDM11UParT

Definition at line 142 of file taus_cff.py.

◆ probDM1PNet

taus_cff.probDM1PNet

Definition at line 125 of file taus_cff.py.

◆ probDM1UParT

taus_cff.probDM1UParT

Definition at line 139 of file taus_cff.py.

◆ probDM2PNet

taus_cff.probDM2PNet

Definition at line 126 of file taus_cff.py.

◆ probDM2UParT

taus_cff.probDM2UParT

Definition at line 140 of file taus_cff.py.

◆ pt

taus_cff.pt

Definition at line 209 of file taus_cff.py.

◆ ptCorrPNet

taus_cff.ptCorrPNet

Definition at line 122 of file taus_cff.py.

◆ ptCorrUParT

taus_cff.ptCorrUParT

Definition at line 136 of file taus_cff.py.

◆ puCorr

taus_cff.puCorr

Definition at line 80 of file taus_cff.py.

◆ qConfPNet

taus_cff.qConfPNet

Definition at line 123 of file taus_cff.py.

◆ qConfUParT

taus_cff.qConfUParT

Definition at line 137 of file taus_cff.py.

◆ rawDeepTau2017v2p1VSe

taus_cff.rawDeepTau2017v2p1VSe

Definition at line 89 of file taus_cff.py.

◆ rawDeepTau2017v2p1VSjet

taus_cff.rawDeepTau2017v2p1VSjet

Definition at line 91 of file taus_cff.py.

◆ rawDeepTau2017v2p1VSmu

taus_cff.rawDeepTau2017v2p1VSmu

Definition at line 90 of file taus_cff.py.

◆ rawDeepTau2018v2p5VSe

taus_cff.rawDeepTau2018v2p5VSe

Definition at line 103 of file taus_cff.py.

◆ rawDeepTau2018v2p5VSjet

taus_cff.rawDeepTau2018v2p5VSjet

Definition at line 105 of file taus_cff.py.

◆ rawDeepTau2018v2p5VSmu

taus_cff.rawDeepTau2018v2p5VSmu

Definition at line 104 of file taus_cff.py.

◆ rawIso

taus_cff.rawIso

Definition at line 76 of file taus_cff.py.

◆ rawIsodR03

taus_cff.rawIsodR03

Definition at line 77 of file taus_cff.py.

◆ rawPNetVSe

taus_cff.rawPNetVSe

Definition at line 119 of file taus_cff.py.

◆ rawPNetVSjet

taus_cff.rawPNetVSjet

Definition at line 121 of file taus_cff.py.

◆ rawPNetVSmu

taus_cff.rawPNetVSmu

Definition at line 120 of file taus_cff.py.

◆ rawUParTVSe

taus_cff.rawUParTVSe

Definition at line 133 of file taus_cff.py.

◆ rawUParTVSjet

taus_cff.rawUParTVSjet

Definition at line 135 of file taus_cff.py.

◆ rawUParTVSmu

taus_cff.rawUParTVSmu

Definition at line 134 of file taus_cff.py.

◆ resolveAmbiguities

taus_cff.resolveAmbiguities

Definition at line 227 of file taus_cff.py.

◆ resolveByMatchQuality

taus_cff.resolveByMatchQuality

Definition at line 228 of file taus_cff.py.

◆ src

taus_cff.src

Definition at line 20 of file taus_cff.py.

◆ srcGenParticles

taus_cff.srcGenParticles

Definition at line 200 of file taus_cff.py.

◆ status

taus_cff.status

Definition at line 214 of file taus_cff.py.

◆ storeLostTracks

taus_cff.storeLostTracks

Definition at line 173 of file taus_cff.py.

◆ svIdx1

taus_cff.svIdx1

Definition at line 61 of file taus_cff.py.

◆ svIdx2

taus_cff.svIdx2

Definition at line 62 of file taus_cff.py.

◆ tauGenJetsForNano

taus_cff.tauGenJetsForNano

Definition at line 189 of file taus_cff.py.

◆ tauGenJetsSelectorAllHadronsForNano

taus_cff.tauGenJetsSelectorAllHadronsForNano

Definition at line 194 of file taus_cff.py.

◆ tauIdx

taus_cff.tauIdx

◆ tauMCTable

taus_cff.tauMCTable

Definition at line 243 of file taus_cff.py.

◆ tauMCTask

taus_cff.tauMCTask

Definition at line 260 of file taus_cff.py.

◆ tauSignalCands

taus_cff.tauSignalCands

Definition at line 171 of file taus_cff.py.

◆ tauSignalCandsTable

taus_cff.tauSignalCandsTable

Definition at line 176 of file taus_cff.py.

◆ tauSignalCandsTask

taus_cff.tauSignalCandsTask

Definition at line 256 of file taus_cff.py.

◆ tausMCMatchHadTauForTable

taus_cff.tausMCMatchHadTauForTable

Definition at line 231 of file taus_cff.py.

◆ tausMCMatchLepTauForTable

taus_cff.tausMCMatchLepTauForTable

Definition at line 219 of file taus_cff.py.

◆ tauTable

taus_cff.tauTable

Definition at line 50 of file taus_cff.py.

◆ tauTablesTask

taus_cff.tauTablesTask

Definition at line 255 of file taus_cff.py.

◆ tauTask

taus_cff.tauTask

Definition at line 254 of file taus_cff.py.

◆ True

taus_cff.True

Definition at line 160 of file taus_cff.py.

◆ variables

taus_cff.variables

Definition at line 153 of file taus_cff.py.

◆ wp_thrs

taus_cff.wp_thrs

Definition at line 160 of file taus_cff.py.