CMS 3D CMS Logo

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

Functions

def _tauId2WPMask
 
def _tauId3WPMask
 
def _tauId4WPMask
 
def _tauId5WPMask
 
def _tauId6WPMask
 
def _tauId7WPMask
 
def _tauId8WPMask
 
def _tauIdWPMask
 Tables for final output and docs ##########################. More...
 

Variables

tuple _deepTauVars2017v2p1
 
tuple _mvaAntiEVars2015
 
tuple _mvaIsoVars2015
 
tuple _mvaIsoVars2015Reduced
 
tuple _mvaIsoVars2017v1
 
tuple _mvaIsoVars2017v2
 
tuple _tauVarsBase
 
tuple _variables80X
 
tuple _variablesMiniV1
 
tuple _variablesMiniV2
 
tuple cut = cms.string("pt > 18 && tauID('decayModeFindingNewDMs') && (tauID('byLooseCombinedIsolationDeltaBetaCorr3Hits') || tauID('byVLooseIsolationMVArun2v1DBoldDMwLT2015') || tauID('byVLooseIsolationMVArun2v1DBnewDMwLT') || tauID('byVLooseIsolationMVArun2v1DBdR03oldDMwLT') || tauID('byVVLooseIsolationMVArun2v1DBoldDMwLT') || tauID('byVVLooseIsolationMVArun2v1DBoldDMwLT2017v2') || tauID('byVVLooseIsolationMVArun2v1DBnewDMwLT2017v2') || tauID('byVVLooseIsolationMVArun2v1DBdR03oldDMwLT2017v2') || tauID('byVVVLooseDeepTau2017v2p1VSjet'))")
 
tuple finalTaus
 User floats producers, selectors ##########################. More...
 
tuple genTauTask = cms.Task(tauGenJetsForNano,tauGenJetsSelectorAllHadronsForNano,genVisTaus,genVisTauTable)
 
tuple genVisTaus
 
tuple genVisTauTable
 
tuple idAntiEle = _tauId5WPMask("againstElectron%sMVA6", doc= "Anti-electron MVA discriminator V6 (2015)")
 
tuple idAntiEle2018 = _tauId5WPMask("againstElectron%sMVA62018", doc= "Anti-electron MVA discriminator V6 (2018)")
 
 idAntiEleDeadECal = None)
 
tuple idDecayMode = Var("tauID('decayModeFinding')", bool)
 
tuple idDecayModeNewDMs = Var("tauID('decayModeFindingNewDMs')", bool)
 
 idDecayModeOldDMs = None
 
tuple rawAntiEle = Var("tauID('againstElectronMVA6Raw')", float, doc= "Anti-electron MVA discriminator V6 raw output discriminator (2015)", precision=10)
 
tuple rawAntiEle2018 = Var("tauID('againstElectronMVA6Raw2018')", float, doc= "Anti-electron MVA discriminator V6 raw output discriminator (2018)", precision=10)
 
tuple rawAntiEleCat = Var("tauID('againstElectronMVA6category')", int, doc="Anti-electron MVA discriminator V6 category (2015")
 
tuple rawAntiEleCat2018 = Var("tauID('againstElectronMVA6category2018')", int, doc="Anti-electron MVA discriminator V6 category (2018)")
 
tuple src = cms.InputTag("slimmedTaus")
 
tuple tauGenJetsForNano
 
tuple tauGenJetsSelectorAllHadronsForNano
 
tuple tauMCTable
 
tuple tauMCTask = cms.Task(genTauTask,tausMCMatchLepTauForTable,tausMCMatchHadTauForTable,tauMCTable)
 
tuple tausMCMatchHadTauForTable
 
tuple tausMCMatchLepTauForTable
 
tuple tauTable
 
tuple tauTablesTask = cms.Task(tauTable)
 
tuple tauTask = cms.Task( patTauMVAIDsTask,finalTaus)
 
tuple variables = cms.PSet(tauTable.variables, _mvaIsoVars2015Reduced, _mvaIsoVars2017v1, _mvaIsoVars2017v2)
 

Function Documentation

def taus_cff._tauId2WPMask (   pattern,
  doc 
)
private

Definition at line 35 of file taus_cff.py.

References _tauIdWPMask().

35 
36 def _tauId2WPMask(pattern,doc):
return _tauIdWPMask(pattern,choices=("Loose","Tight"),doc=doc)
def _tauId2WPMask
Definition: taus_cff.py:35
def _tauIdWPMask
Tables for final output and docs ##########################.
Definition: taus_cff.py:32
def taus_cff._tauId3WPMask (   pattern,
  doc 
)
private

Definition at line 37 of file taus_cff.py.

References _tauIdWPMask().

37 
38 def _tauId3WPMask(pattern,doc):
return _tauIdWPMask(pattern,choices=("Loose","Medium","Tight"),doc=doc)
def _tauId3WPMask
Definition: taus_cff.py:37
def _tauIdWPMask
Tables for final output and docs ##########################.
Definition: taus_cff.py:32
def taus_cff._tauId4WPMask (   pattern,
  doc 
)
private

Definition at line 39 of file taus_cff.py.

References _tauIdWPMask().

39 
40 def _tauId4WPMask(pattern,doc):
return _tauIdWPMask(pattern, choices=("VLoose", "Loose", "Medium", "Tight"), doc=doc)
def _tauId4WPMask
Definition: taus_cff.py:39
def _tauIdWPMask
Tables for final output and docs ##########################.
Definition: taus_cff.py:32
def taus_cff._tauId5WPMask (   pattern,
  doc 
)
private

Definition at line 41 of file taus_cff.py.

References _tauIdWPMask().

41 
42 def _tauId5WPMask(pattern,doc):
return _tauIdWPMask(pattern,choices=("VLoose","Loose","Medium","Tight","VTight"),doc=doc)
def _tauIdWPMask
Tables for final output and docs ##########################.
Definition: taus_cff.py:32
def _tauId5WPMask
Definition: taus_cff.py:41
def taus_cff._tauId6WPMask (   pattern,
  doc 
)
private

Definition at line 43 of file taus_cff.py.

References _tauIdWPMask().

43 
44 def _tauId6WPMask(pattern,doc):
return _tauIdWPMask(pattern,choices=("VLoose","Loose","Medium","Tight","VTight","VVTight"),doc=doc)
def _tauId6WPMask
Definition: taus_cff.py:43
def _tauIdWPMask
Tables for final output and docs ##########################.
Definition: taus_cff.py:32
def taus_cff._tauId7WPMask (   pattern,
  doc 
)
private

Definition at line 45 of file taus_cff.py.

References _tauIdWPMask().

45 
46 def _tauId7WPMask(pattern,doc):
return _tauIdWPMask(pattern,choices=("VVLoose","VLoose","Loose","Medium","Tight","VTight","VVTight"),doc=doc)
def _tauId7WPMask
Definition: taus_cff.py:45
def _tauIdWPMask
Tables for final output and docs ##########################.
Definition: taus_cff.py:32
def taus_cff._tauId8WPMask (   pattern,
  doc 
)
private

Definition at line 47 of file taus_cff.py.

References _tauIdWPMask().

47 
48 def _tauId8WPMask(pattern,doc):
49  return _tauIdWPMask(pattern,choices=("VVVLoose","VVLoose","VLoose","Loose","Medium","Tight","VTight","VVTight"),doc=doc)
def _tauId8WPMask
Definition: taus_cff.py:47
def _tauIdWPMask
Tables for final output and docs ##########################.
Definition: taus_cff.py:32
def taus_cff._tauIdWPMask (   pattern,
  choices,
  doc = "" 
)
private

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

Definition at line 32 of file taus_cff.py.

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

Referenced by _tauId2WPMask(), _tauId3WPMask(), _tauId4WPMask(), _tauId5WPMask(), _tauId6WPMask(), _tauId7WPMask(), and _tauId8WPMask().

32 
33 def _tauIdWPMask(pattern, choices, doc=""):
34  return Var(" + ".join(["%d * tauID('%s')" % (pow(2,i), pattern % c) for (i,c) in enumerate(choices)]), "uint8",
doc=doc+": bitmask "+", ".join(["%d = %s" % (pow(2,i),c) for (i,c) in enumerate(choices)]))
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
def _tauIdWPMask
Tables for final output and docs ##########################.
Definition: taus_cff.py:32
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

Variable Documentation

tuple taus_cff._deepTauVars2017v2p1
Initial value:
1 = cms.PSet(
2  rawDeepTau2017v2p1VSe = Var("tauID('byDeepTau2017v2p1VSeraw')", float, doc="byDeepTau2017v2p1VSe raw output discriminator (deepTau2017v2p1)", precision=10),
3  rawDeepTau2017v2p1VSmu = Var("tauID('byDeepTau2017v2p1VSmuraw')", float, doc="byDeepTau2017v2p1VSmu raw output discriminator (deepTau2017v2p1)", precision=10),
4  rawDeepTau2017v2p1VSjet = Var("tauID('byDeepTau2017v2p1VSjetraw')", float, doc="byDeepTau2017v2p1VSjet raw output discriminator (deepTau2017v2p1)", precision=10),
5  idDeepTau2017v2p1VSe = _tauId8WPMask("by%sDeepTau2017v2p1VSe", doc="byDeepTau2017v2p1VSe ID working points (deepTau2017v2p1)"),
6  idDeepTau2017v2p1VSmu = _tauId4WPMask("by%sDeepTau2017v2p1VSmu", doc="byDeepTau2017v2p1VSmu ID working points (deepTau2017v2p1)"),
7  idDeepTau2017v2p1VSjet = _tauId8WPMask("by%sDeepTau2017v2p1VSjet", doc="byDeepTau2017v2p1VSjet ID working points (deepTau2017v2p1)"),
8 )
def _tauId8WPMask
Definition: taus_cff.py:47
def _tauId4WPMask
Definition: taus_cff.py:39

Definition at line 117 of file taus_cff.py.

tuple taus_cff._mvaAntiEVars2015
Initial value:
1 = cms.PSet(
2  rawAntiEle = Var("tauID('againstElectronMVA6Raw')", float, doc= "Anti-electron MVA discriminator V6 raw output discriminator (2015)", precision=10),
3  rawAntiEleCat = Var("tauID('againstElectronMVA6category')", int, doc="Anti-electron MVA discriminator V6 category (2015"),
4  idAntiEle = _tauId5WPMask("againstElectron%sMVA6", doc= "Anti-electron MVA discriminator V6 (2015)"),
5 )
def _tauId5WPMask
Definition: taus_cff.py:41

Definition at line 112 of file taus_cff.py.

tuple taus_cff._mvaIsoVars2015
Initial value:
1 = cms.PSet(
2  rawMVAnewDM = Var( "tauID('byIsolationMVArun2v1DBnewDMwLTraw')",float, doc="byIsolationMVArun2v1DBoldDMwLT raw output discriminator (2015)",precision=10),
3  rawMVAoldDM = Var( "tauID('byIsolationMVArun2v1DBoldDMwLTraw')",float, doc="byIsolationMVArun2v1DBoldDMwLT raw output discriminator (2015)",precision=10),
4  rawMVAoldDMdR03 = Var( "tauID('byIsolationMVArun2v1DBdR03oldDMwLTraw')",float, doc="byIsolationMVArun2v1DBoldDMwLT raw output discriminator (2015)",precision=10),
5  idMVAnewDM = _tauId6WPMask( "by%sIsolationMVArun2v1DBnewDMwLT", doc="IsolationMVArun2v1DBnewDMwLT ID working point (2015)"),
6  idMVAoldDM = _tauId6WPMask( "by%sIsolationMVArun2v1DBoldDMwLT", doc="IsolationMVArun2v1DBoldDMwLT ID working point (2015)"),
7  idMVAoldDMdR03 = _tauId6WPMask( "by%sIsolationMVArun2v1DBdR03oldDMwLT", doc="IsolationMVArun2v1DBoldDMdR0p3wLT ID working point (2015)")
8 )
def _tauId6WPMask
Definition: taus_cff.py:43

Definition at line 88 of file taus_cff.py.

tuple taus_cff._mvaIsoVars2015Reduced
Initial value:
1 = cms.PSet(
2  rawMVAoldDM = Var( "tauID('byIsolationMVArun2v1DBoldDMwLTraw2015')",float, doc="byIsolationMVArun2v1DBoldDMwLT raw output discriminator (2015)",precision=10),
3  idMVAoldDM = _tauId6WPMask( "by%sIsolationMVArun2v1DBoldDMwLT2015", doc="IsolationMVArun2v1DBoldDMwLT ID working point (2015)"),
4 )
def _tauId6WPMask
Definition: taus_cff.py:43

Definition at line 96 of file taus_cff.py.

tuple taus_cff._mvaIsoVars2017v1
Initial value:
1 = cms.PSet(
2  rawMVAoldDM2017v1 = Var( "tauID('byIsolationMVArun2v1DBoldDMwLTraw')",float, doc="byIsolationMVArun2v1DBoldDMwLT raw output discriminator (2017v1)",precision=10),
3  idMVAoldDM2017v1 = _tauId7WPMask( "by%sIsolationMVArun2v1DBoldDMwLT", doc="IsolationMVArun2v1DBoldDMwLT ID working point (2017v1)")
4 )
def _tauId7WPMask
Definition: taus_cff.py:45

Definition at line 100 of file taus_cff.py.

tuple taus_cff._mvaIsoVars2017v2
Initial value:
1 = cms.PSet(
2  rawMVAnewDM2017v2 = Var( "tauID('byIsolationMVArun2v1DBnewDMwLTraw2017v2')",float, doc="byIsolationMVArun2v1DBnewDMwLT raw output discriminator (2017v2)",precision=10),
3  rawMVAoldDM2017v2 = Var( "tauID('byIsolationMVArun2v1DBoldDMwLTraw2017v2')",float, doc="byIsolationMVArun2v1DBoldDMwLT raw output discriminator (2017v2)",precision=10),
4  rawMVAoldDMdR032017v2 = Var( "tauID('byIsolationMVArun2v1DBdR03oldDMwLTraw2017v2')",float, doc="byIsolationMVArun2v1DBdR03oldDMwLT raw output discriminator (2017v2)",precision=10),
5  idMVAnewDM2017v2 = _tauId7WPMask( "by%sIsolationMVArun2v1DBnewDMwLT2017v2", doc="IsolationMVArun2v1DBnewDMwLT ID working point (2017v2)"),
6  idMVAoldDM2017v2 = _tauId7WPMask( "by%sIsolationMVArun2v1DBoldDMwLT2017v2", doc="IsolationMVArun2v1DBoldDMwLT ID working point (2017v2)"),
7  idMVAoldDMdR032017v2 = _tauId7WPMask( "by%sIsolationMVArun2v1DBdR03oldDMwLT2017v2", doc="IsolationMVArun2v1DBoldDMdR0p3wLT ID working point (2017v2)")
8 )
def _tauId7WPMask
Definition: taus_cff.py:45

Definition at line 104 of file taus_cff.py.

tuple taus_cff._tauVarsBase
Initial value:
1 = cms.PSet(P4Vars,
2  charge = Var("charge", int, doc="electric charge"),
3  jetIdx = Var("?hasUserCand('jet')?userCand('jet').key():-1", int, doc="index of the associated jet (-1 if none)"),
4  decayMode = Var("decayMode()",int),
5  idDecayModeOldDMs = Var("tauID('decayModeFinding')", bool),
6 
7  leadTkPtOverTauPt = Var("leadChargedHadrCand.pt/pt ",float, doc="pt of the leading track divided by tau pt",precision=10),
8  leadTkDeltaEta = Var("leadChargedHadrCand.eta - eta ",float, doc="eta of the leading track, minus tau eta",precision=8),
9  leadTkDeltaPhi = Var("deltaPhi(leadChargedHadrCand.phi, phi) ",float, doc="phi of the leading track, minus tau phi",precision=8),
10 
11  dxy = Var("leadChargedHadrCand().dxy()",float, doc="d_{xy} of lead track with respect to PV, in cm (with sign)",precision=10),
12  dz = Var("leadChargedHadrCand().dz()",float, doc="d_{z} of lead track with respect to PV, in cm (with sign)",precision=14),
13 
14  # these are too many, we may have to suppress some
15  rawIso = Var( "tauID('byCombinedIsolationDeltaBetaCorrRaw3Hits')", float, doc = "combined isolation (deltaBeta corrections)", precision=10),
16  rawIsodR03 = Var( "(tauID('chargedIsoPtSumdR03')+max(0.,tauID('neutralIsoPtSumdR03')-0.072*tauID('puCorrPtSum')))", float, doc = "combined isolation (deltaBeta corrections, dR=0.3)", precision=10),
17  chargedIso = Var( "tauID('chargedIsoPtSum')", float, doc = "charged isolation", precision=10),
18  neutralIso = Var( "tauID('neutralIsoPtSum')", float, doc = "neutral (photon) isolation", precision=10),
19  puCorr = Var( "tauID('puCorrPtSum')", float, doc = "pileup correction", precision=10),
20  photonsOutsideSignalCone = Var( "tauID('photonPtSumOutsideSignalCone')", float, doc = "sum of photons outside signal cone", precision=10),
21 
22  idAntiMu = _tauId2WPMask("againstMuon%s3", doc= "Anti-muon discriminator V3: "),
23  idAntiEleDeadECal = Var("tauID('againstElectronDeadECAL')", bool, doc = "Anti-electron dead-ECal discriminator"),
24 
25 # isoCI3hit = Var( "tauID("byCombinedIsolationDeltaBetaCorrRaw3Hits")" doc="byCombinedIsolationDeltaBetaCorrRaw3Hits raw output discriminator"),
26 # photonOutsideSigCone = Var( "tauID("photonPtSumOutsideSignalCone")" doc="photonPtSumOutsideSignalCone raw output discriminator"),
27 
28 )
def _tauId2WPMask
Definition: taus_cff.py:35

Definition at line 59 of file taus_cff.py.

tuple taus_cff._variables80X
Initial value:
1 = cms.PSet(
2  _tauVarsBase,
3  _mvaAntiEVars2015,
4  _mvaIsoVars2015
5 )

Definition at line 138 of file taus_cff.py.

tuple taus_cff._variablesMiniV1
Initial value:
1 = cms.PSet(
2  _variablesMiniV2,
3  _mvaIsoVars2017v2
4 )

Definition at line 130 of file taus_cff.py.

tuple taus_cff._variablesMiniV2
Initial value:
1 = cms.PSet(
2  _tauVarsBase,
3  _deepTauVars2017v2p1
4 )

Definition at line 126 of file taus_cff.py.

tuple taus_cff.cut = cms.string("pt > 18 && tauID('decayModeFindingNewDMs') && (tauID('byLooseCombinedIsolationDeltaBetaCorr3Hits') || tauID('byVLooseIsolationMVArun2v1DBoldDMwLT2015') || tauID('byVLooseIsolationMVArun2v1DBnewDMwLT') || tauID('byVLooseIsolationMVArun2v1DBdR03oldDMwLT') || tauID('byVVLooseIsolationMVArun2v1DBoldDMwLT') || tauID('byVVLooseIsolationMVArun2v1DBoldDMwLT2017v2') || tauID('byVVLooseIsolationMVArun2v1DBnewDMwLT2017v2') || tauID('byVVLooseIsolationMVArun2v1DBdR03oldDMwLT2017v2') || tauID('byVVVLooseDeepTau2017v2p1VSjet'))")

Definition at line 20 of file taus_cff.py.

tuple taus_cff.finalTaus
Initial value:
1 = cms.EDFilter("PATTauRefSelector",
2  src = cms.InputTag("slimmedTausUpdated"),
3  cut = cms.string("pt > 18 && tauID('decayModeFindingNewDMs') && (tauID('byLooseCombinedIsolationDeltaBetaCorr3Hits') || (tauID('chargedIsoPtSumdR03')+max(0.,tauID('neutralIsoPtSumdR03')-0.072*tauID('puCorrPtSum'))<2.5) || tauID('byVVVLooseDeepTau2017v2p1VSjet'))")
4 )

User floats producers, selectors ##########################.

Definition at line 13 of file taus_cff.py.

tuple taus_cff.genTauTask = cms.Task(tauGenJetsForNano,tauGenJetsSelectorAllHadronsForNano,genVisTaus,genVisTauTable)

Definition at line 255 of file taus_cff.py.

tuple taus_cff.genVisTaus
Initial value:
1 = cms.EDProducer("GenVisTauProducer",
2  src = cms.InputTag("tauGenJetsSelectorAllHadronsForNano"),
3  srcGenParticles = cms.InputTag("finalGenParticles")
4 )

Definition at line 191 of file taus_cff.py.

Referenced by GenVisTauProducer.produce().

tuple taus_cff.genVisTauTable
Initial value:
1 = cms.EDProducer("SimpleCandidateFlatTableProducer",
2  src = cms.InputTag("genVisTaus"),
3  cut = cms.string("pt > 10."),
4  name = cms.string("GenVisTau"),
5  doc = cms.string("gen hadronic taus "),
6  singleton = cms.bool(False), # the number of entries is variable
7  extension = cms.bool(False), # this is the main table for generator level hadronic tau decays
8  variables = cms.PSet(
9  pt = Var("pt", float,precision=8),
10  phi = Var("phi", float,precision=8),
11  eta = Var("eta", float,precision=8),
12  mass = Var("mass", float,precision=8),
13  charge = Var("charge", int),
14  status = Var("status", int, doc="Hadronic tau decay mode. 0=OneProng0PiZero, 1=OneProng1PiZero, 2=OneProng2PiZero, 10=ThreeProng0PiZero, 11=ThreeProng1PiZero, 15=Other"),
15  genPartIdxMother = Var("?numberOfMothers>0?motherRef(0).key():-1", int, doc="index of the mother particle"),
16  )
17 )

Definition at line 196 of file taus_cff.py.

tuple taus_cff.idAntiEle = _tauId5WPMask("againstElectron%sMVA6", doc= "Anti-electron MVA discriminator V6 (2015)")

Definition at line 164 of file taus_cff.py.

tuple taus_cff.idAntiEle2018 = _tauId5WPMask("againstElectron%sMVA62018", doc= "Anti-electron MVA discriminator V6 (2018)")

Definition at line 161 of file taus_cff.py.

tuple taus_cff.idAntiEleDeadECal = None)

Definition at line 175 of file taus_cff.py.

tuple taus_cff.idDecayMode = Var("tauID('decayModeFinding')", bool)

Definition at line 170 of file taus_cff.py.

tuple taus_cff.idDecayModeNewDMs = Var("tauID('decayModeFindingNewDMs')", bool)

Definition at line 171 of file taus_cff.py.

taus_cff.idDecayModeOldDMs = None

Definition at line 172 of file taus_cff.py.

tuple taus_cff.rawAntiEle = Var("tauID('againstElectronMVA6Raw')", float, doc= "Anti-electron MVA discriminator V6 raw output discriminator (2015)", precision=10)

Definition at line 162 of file taus_cff.py.

tuple taus_cff.rawAntiEle2018 = Var("tauID('againstElectronMVA6Raw2018')", float, doc= "Anti-electron MVA discriminator V6 raw output discriminator (2018)", precision=10)

Definition at line 159 of file taus_cff.py.

tuple taus_cff.rawAntiEleCat = Var("tauID('againstElectronMVA6category')", int, doc="Anti-electron MVA discriminator V6 category (2015")

Definition at line 163 of file taus_cff.py.

tuple taus_cff.rawAntiEleCat2018 = Var("tauID('againstElectronMVA6category2018')", int, doc="Anti-electron MVA discriminator V6 category (2018)")

Definition at line 160 of file taus_cff.py.

tuple taus_cff.src = cms.InputTag("slimmedTaus")

Definition at line 27 of file taus_cff.py.

tuple taus_cff.tauGenJetsForNano
Initial value:
1 = tauGenJets.clone(
2  GenParticles = "finalGenParticles",
3  includeNeutrinos = False
4 )

Definition at line 182 of file taus_cff.py.

tuple taus_cff.tauGenJetsSelectorAllHadronsForNano
Initial value:
1 = tauGenJetsSelectorAllHadrons.clone(
2  src = "tauGenJetsForNano"
3 )

Definition at line 187 of file taus_cff.py.

tuple taus_cff.tauMCTable
Initial value:
1 = cms.EDProducer("CandMCMatchTableProducer",
2  src = tauTable.src,
3  mcMap = cms.InputTag("tausMCMatchLepTauForTable"),
4  mcMapVisTau = cms.InputTag("tausMCMatchHadTauForTable"),
5  objName = tauTable.name,
6  objType = tauTable.name, #cms.string("Tau"),
7  branchName = cms.string("genPart"),
8  docString = cms.string("MC matching to status==2 taus"),
9 )

Definition at line 238 of file taus_cff.py.

tuple taus_cff.tauMCTask = cms.Task(genTauTask,tausMCMatchLepTauForTable,tausMCMatchHadTauForTable,tauMCTable)

Definition at line 256 of file taus_cff.py.

tuple taus_cff.tausMCMatchHadTauForTable
Initial value:
1 = cms.EDProducer("MCMatcher", # cut on deltaR, deltaPt/Pt; pick best by deltaR
2  src = tauTable.src, # final reco collection
3  matched = cms.InputTag("genVisTaus"), # generator level hadronic tau decays
4  mcPdgId = cms.vint32(15), # one or more PDG ID (15 = tau); absolute values (see below)
5  checkCharge = cms.bool(False), # True = require RECO and MC objects to have the same charge
6  mcStatus = cms.vint32(), # CV: no *not* require certain status code for matching (status code corresponds to decay mode for hadronic tau decays)
7  maxDeltaR = cms.double(0.3), # Maximum deltaR for the match
8  maxDPtRel = cms.double(1.), # Maximum deltaPt/Pt for the match
9  resolveAmbiguities = cms.bool(True), # Forbid two RECO objects to match to the same GEN object
10  resolveByMatchQuality = cms.bool(True), # False = just match input in order; True = pick lowest deltaR pair first
11 )

Definition at line 226 of file taus_cff.py.

tuple taus_cff.tausMCMatchLepTauForTable
Initial value:
1 = cms.EDProducer("MCMatcher", # cut on deltaR, deltaPt/Pt; pick best by deltaR
2  src = tauTable.src, # final reco collection
3  matched = cms.InputTag("finalGenParticles"), # final mc-truth particle collection
4  mcPdgId = cms.vint32(11,13), # one or more PDG ID (11 = electron, 13 = muon); absolute values (see below)
5  checkCharge = cms.bool(False), # True = require RECO and MC objects to have the same charge
6  mcStatus = cms.vint32(), # PYTHIA status code (1 = stable, 2 = shower, 3 = hard scattering)
7  maxDeltaR = cms.double(0.3), # Minimum deltaR for the match
8  maxDPtRel = cms.double(0.5), # Minimum deltaPt/Pt for the match
9  resolveAmbiguities = cms.bool(True), # Forbid two RECO objects to match to the same GEN object
10  resolveByMatchQuality = cms.bool(True), # False = just match input in order; True = pick lowest deltaR pair first
11 )

Definition at line 214 of file taus_cff.py.

tuple taus_cff.tauTable
Initial value:
1 = cms.EDProducer("SimpleCandidateFlatTableProducer",
2  src = cms.InputTag("linkedObjects","taus"),
3  cut = cms.string(""), #we should not filter on cross linked collections
4  name= cms.string("Tau"),
5  doc = cms.string("slimmedTaus after basic selection (" + finalTaus.cut.value()+")"),
6  singleton = cms.bool(False), # the number of entries is variable
7  extension = cms.bool(False), # this is the main table for the taus
8  variables = cms.PSet() # PSet defined below in era dependent way
9 )

Definition at line 50 of file taus_cff.py.

tuple taus_cff.tauTablesTask = cms.Task(tauTable)

Definition at line 253 of file taus_cff.py.

tuple taus_cff.tauTask = cms.Task( patTauMVAIDsTask,finalTaus)

Definition at line 249 of file taus_cff.py.

taus_cff.variables = cms.PSet(tauTable.variables, _mvaIsoVars2015Reduced, _mvaIsoVars2017v1, _mvaIsoVars2017v2)

Definition at line 147 of file taus_cff.py.