Skip to content

Commit

Permalink
rename model version
Browse files Browse the repository at this point in the history
  • Loading branch information
ofivite committed May 8, 2022
1 parent b50ff5d commit 27cc66f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions RecoTauTag/RecoTau/python/tools/runTauIdMVA.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class TauIDEmbedder(object):
"""class to rerun the tau seq and acces trainings from the database"""
availableDiscriminators = [
"2017v1", "2017v2", "newDM2017v2", "dR0p32017v2", "2016v1", "newDM2016v1",
"deepTau2017v1", "deepTau2017v2", "deepTau2017v2p1", "deepTau2022v2p5",
"deepTau2017v1", "deepTau2017v2", "deepTau2017v2p1", "deepTau2018v2p5",
"DPFTau_2016_v0", "DPFTau_2016_v1",
"againstEle2018",
"newDMPhase2v1",
Expand All @@ -20,7 +20,7 @@ def __init__(self, process, debug = False,
originalTauName = "slimmedTaus",
updatedTauName = "slimmedTausNewID",
postfix = "",
toKeep = ["deepTau2017v2p1", "deepTau2022v2p5"],
toKeep = ["deepTau2017v2p1", "deepTau2018v2p5"],
tauIdDiscrMVA_trainings_run2_2017 = { 'tauIdMVAIsoDBoldDMwLT2017' : "tauIdMVAIsoDBoldDMwLT2017", },
tauIdDiscrMVA_WPs_run2_2017 = {
'tauIdMVAIsoDBoldDMwLT2017' : {
Expand Down Expand Up @@ -737,20 +737,20 @@ def runTauID(self):
_rerunMvaIsolationTask.add(_deepTauProducer)
_rerunMvaIsolationSequence += _deepTauProducer

if "deepTau2022v2p5" in self.toKeep:
if "deepTau2018v2p5" in self.toKeep:
if self.debug: print ("Adding DeepTau IDs")

_deepTauName = "deepTau2022v2p5"
_deepTauName = "deepTau2018v2p5"
workingPoints_ = {
"e": {},
"mu": {},
"jet": {},
}

file_names = [
'core:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2022v2p5_test_core.pb',
'inner:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2022v2p5_test_inner.pb',
'outer:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2022v2p5_test_outer.pb',
'core:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2018v2p5_core.pb',
'inner:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2018v2p5_inner.pb',
'outer:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2018v2p5_outer.pb',
]
setattr(self.process,_deepTauName+self.postfix,cms.EDProducer("DeepTauId",
electrons = cms.InputTag('slimmedElectrons'),
Expand Down
2 changes: 1 addition & 1 deletion RecoTauTag/RecoTau/test/runDeepTauIDsOnMiniAOD.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
toKeep = [ "2017v2", "dR0p32017v2", "newDM2017v2",
# "deepTau2017v1",
"deepTau2017v2p1",
"deepTau2022v2p5",
"deepTau2018v2p5",
# "DPFTau_2016_v0",
# "DPFTau_2016_v1",
"againstEle2018",
Expand Down

0 comments on commit 27cc66f

Please sign in to comment.