Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to enable new DeepTauId trainig #37892

Merged
merged 32 commits into from May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
97a73f2
initial cfg setup for DeepTau v2p5
ofivite Apr 28, 2022
410576a
rename dnn_inputs_2017_v2
ofivite Apr 28, 2022
20fe7fc
subversioning of tau variables
ofivite Apr 29, 2022
bb16517
check ndof > 0 for PF track vars
ofivite Apr 29, 2022
b7b0b88
mv varsToDrop to namespace
ofivite Apr 30, 2022
98f5a55
initial setup for reading scaling params
ofivite May 1, 2022
f12661a
unify tau inputs
ofivite May 1, 2022
856ffcb
unify egamma block
ofivite May 2, 2022
035bd4c
unify muon block
ofivite May 2, 2022
6a15220
unify hadron block
ofivite May 2, 2022
cd88389
set workarounds to true for v2p5
ofivite May 2, 2022
4068add
shift tau_n_charged_prongs by one for v2p5
ofivite May 2, 2022
5e207f9
mv scaling namespace to deep_tau
ofivite May 3, 2022
e29b62e
mv scaling defs to separate header
ofivite May 4, 2022
3c330ea
constexpr inf
ofivite May 4, 2022
f2784a9
update scaling interface and constants for v2p5
ofivite May 4, 2022
9985cc8
upd default values
ofivite May 4, 2022
b3968f7
swap pf_e and ele blocks for v2p5
ofivite May 4, 2022
9154f9c
mv v2p1 params to new format
ofivite May 4, 2022
d26bd6e
remove wps for v2p5
ofivite May 5, 2022
a563b7d
mv scaling params to the corresponding header
ofivite May 5, 2022
b50ff5d
fix scaling
ofivite May 5, 2022
27cc66f
rename model version
ofivite May 8, 2022
d35c676
update from scram code checks
ofivite May 9, 2022
b72e737
Merge pull request #161 from ofivite/CMSSW_12_4_0_pre2_DeepTau_v2p5_dev
mbluj May 9, 2022
b6a0c16
adapt to changes in the base class (previously overlooked)
mbluj May 10, 2022
d199372
use default (auto-generated) cfi files to define tauID modules
mbluj May 10, 2022
8fa0122
Rollback to tests based on Run-2 UL MC
mbluj May 10, 2022
db64a2a
enable deepTau v2p5 in miniAOD
mbluj May 10, 2022
e21e69c
cosmetics
mbluj May 10, 2022
bfacf9f
add includes needed for header consistency
mbluj May 10, 2022
71bf7af
Reduce number of accesses to container items with at(idx)
mbluj May 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions PhysicsTools/PatAlgos/python/slimming/miniAOD_tools.py
Expand Up @@ -366,15 +366,15 @@ def _add_deepFlavour(process):
process.makePatTausTask, _makePatTausTaskWithRetrainedMVATauID
)
#-- Adding DeepTauID
# deepTau v2p1
# deepTau v2p1 and v2p5
_updatedTauName = 'slimmedTausDeepIDsv2p1'
_noUpdatedTauName = 'slimmedTausNoDeepIDs'
import RecoTauTag.RecoTau.tools.runTauIdMVA as tauIdConfig
tauIdEmbedder = tauIdConfig.TauIDEmbedder(
process, debug = False,
originalTauName = _noUpdatedTauName,
updatedTauName = _updatedTauName,
toKeep = ['deepTau2017v2p1']
toKeep = ['deepTau2017v2p1','deepTau2018v2p5']
)
from Configuration.Eras.Modifier_phase2_common_cff import phase2_common #Phase2 Tau MVA
phase2_common.toModify(tauIdEmbedder.toKeep, func=lambda t:t.append('newDMPhase2v1')) #Phase2 Tau isolation MVA
Expand Down