Skip to content

Commit

Permalink
Define but not regiser payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
mbluj committed Apr 11, 2024
1 parent fcff0c8 commit 160e10c
Showing 1 changed file with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
)

####
# register tau ID (= isolation) discriminator MVA
# define payloads names of tau ID (= isolation) discriminator MVA
tauIdDiscrMVA_trainings = {
'tauIdMVAoldDMwoLT' : "tauIdMVAoldDMwoLT",
'tauIdMVAoldDMwLT' : "tauIdMVAoldDMwLT",
Expand Down Expand Up @@ -215,6 +215,8 @@
'tauIdMVAIsoPhase2_v1' : "mvaOutput_normalization",
}

'''
# register the tau ID payloads
tauIdDiscrMVA_version = "v1"
for training, gbrForestName in tauIdDiscrMVA_trainings.items():
loadRecoTauTagMVAsFromPrepDB.toGet.append(
Expand Down Expand Up @@ -339,9 +341,10 @@
label = cms.untracked.string("RecoTauTag_%s_mvaOutput_normalization" % (training))
)
)
'''

####
## register anti-electron discriminator MVA
## define payloads of anti-electron discriminator MVA
# MVA5
antiElectronDiscrMVA5_categories = {
'0' : "gbr_NoEleMatch_woGwoGSF_BL",
Expand All @@ -363,6 +366,8 @@
}
antiElectronDiscrMVA5_WPs = [ "eff99", "eff96", "eff91", "eff85", "eff79" ]
antiElectronDiscrMVA5_version = "v1"
'''
# ...and register
for category, gbrForestName in antiElectronDiscrMVA5_categories.items():
loadRecoTauTagMVAsFromPrepDB.toGet.append(
cms.PSet(
Expand All @@ -379,6 +384,7 @@
label = cms.untracked.string("RecoTauTag_antiElectronMVA5%s_%s_WP%s" % (antiElectronDiscrMVA5_version, gbrForestName, WP))
)
)
'''

# MVA6v1
antiElectronDiscrMVA6_categories = {
Expand All @@ -393,6 +399,8 @@
}
antiElectronDiscrMVA6_WPs = [ "Eff99", "Eff96", "Eff91", "Eff85", "Eff79" ]
antiElectronDiscrMVA6_version = "v1"
'''
# ...and register
for category, gbrForestName in antiElectronDiscrMVA6_categories.items():
loadRecoTauTagMVAsFromPrepDB.toGet.append(
cms.PSet(
Expand All @@ -409,10 +417,14 @@
label = cms.untracked.string("RecoTauTag_antiElectronMVA6%s_%s_WP%s" % (antiElectronDiscrMVA6_version, gbrForestName, WP))
)
)
'''

# MVA6v3
# MB: categories as in MVA6v1
antiElectronDiscrMVA6_2017_WPs = [ "eff98", "eff90", "eff80", "eff70", "eff60" ]
antiElectronDiscrMVA6_2017_version = "v3_noeveto"
'''
# ...and register
for category, gbrForestName in antiElectronDiscrMVA6_categories.items():
loadRecoTauTagMVAsFromPrepDB.toGet.append(
cms.PSet(
Expand All @@ -429,6 +441,7 @@
label = cms.untracked.string("RecoTauTag_antiElectronMVA6%s_%s_WP%s" % (antiElectronDiscrMVA6_2017_version, gbrForestName, WP))
)
)
'''

# MVA6 phase2
antiElectronDiscrMVA_phase2_categories = {
Expand All @@ -447,6 +460,8 @@
}
antiElectronDiscrMVA_phase2_WPs = [ "Eff98", "Eff90", "Eff80", "Eff70", "Eff60" ]
antiElectronDiscrMVA_phase2_version = "v1"
'''
# ...and register
for category, gbrForestName in antiElectronDiscrMVA_phase2_categories.items():
loadRecoTauTagMVAsFromPrepDB.toGet.append(
cms.PSet(
Expand All @@ -463,12 +478,15 @@
label = cms.untracked.string("RecoTauTag_antiElectronPhase2MVA6%s_%s_WP%s" % (antiElectronDiscrMVA_phase2_version, gbrForestName, WP))
)
)
'''

####
# register anti-muon discriminator MVA
# define payloads of anti-muon discriminator MVA
antiMuonDiscrMVA_WPs = [ "eff99_5", "eff99_0", "eff98_0" ]
antiMuonDiscrMVA_version = "v1"
gbrForestName = "againstMuonMVA"
'''
# ...and register
loadRecoTauTagMVAsFromPrepDB.toGet.append(
cms.PSet(
record = cms.string('GBRWrapperRcd'),
Expand All @@ -491,3 +509,4 @@
label = cms.untracked.string("RecoTauTag_%s%s_mvaOutput_normalization" % (gbrForestName, antiMuonDiscrMVA_version))
)
)
'''

0 comments on commit 160e10c

Please sign in to comment.