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

DeepDoubleCvL and DeepDoubleCvB tagger integration #24918

Merged
merged 46 commits into from
Nov 28, 2018
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
217ee7c
WIP 10X
Oct 16, 2018
40f8607
Fixing modules
Oct 17, 2018
9a49df9
Removing redundant
Oct 26, 2018
f22430b
renaming
Oct 26, 2018
4c34f16
renaming"
Oct 27, 2018
912c23d
cleaning up
Oct 28, 2018
dd24af3
Removing straggling comments
Oct 28, 2018
c821036
Using one produces for all models
Oct 29, 2018
9017647
cleaning up
Oct 29, 2018
147839a
Use default DDB model
Oct 29, 2018
a90008a
merge
Oct 29, 2018
0188aba
Merge pull request #1 from andrzejnovak/renaming
andrzejnovak Oct 29, 2018
eb3e3ea
Addressing comments
Oct 30, 2018
7c16f68
Merge branch 'DDX10X' of https://github.com/andrzejnovak/cmssw into D…
Oct 30, 2018
9163e90
Adding dummy optional params to pass validation
Nov 2, 2018
d656aa9
Slava might be fine with this, I guess
Nov 2, 2018
0ed5f6f
Using switch in producer
Nov 2, 2018
afc1a59
cleaning comments
Nov 2, 2018
3c81d7b
Merge pull request #2 from andrzejnovak/switch
andrzejnovak Nov 2, 2018
79471b3
using cloning for modules
Nov 8, 2018
27bdb12
fix comments
Nov 8, 2018
81b0d65
Merge pull request #3 from andrzejnovak/switch
andrzejnovak Nov 8, 2018
f6ac641
one mass-independent cff file
Nov 10, 2018
d3b1b86
missing cff
Nov 10, 2018
e42d295
Merge pull request #4 from andrzejnovak/switch
andrzejnovak Nov 10, 2018
d17215a
Making sure of backwards compatibility for DDBFeatures&JetTags
Nov 12, 2018
5d8e94f
Merge pull request #5 from andrzejnovak/switch
andrzejnovak Nov 12, 2018
2e9926b
Cleaning up references
Nov 14, 2018
183aa17
Merge pull request #6 from andrzejnovak/switch
andrzejnovak Nov 14, 2018
3d8733b
add missing mass ind ddb
Nov 14, 2018
f338373
Merge pull request #7 from andrzejnovak/switch
andrzejnovak Nov 14, 2018
f804c4e
Adding a pt>150 cut to DDX
Nov 15, 2018
aef474e
Merge pull request #8 from andrzejnovak/switch
andrzejnovak Nov 15, 2018
aa32440
Default not predicted values to -1, use auto descriptions
Nov 18, 2018
92bb0d6
Merge pull request #9 from andrzejnovak/switch
andrzejnovak Nov 18, 2018
5703a71
Run TF only when features are filled
Nov 21, 2018
5f8c3a4
Merge pull request #10 from andrzejnovak/switch
andrzejnovak Nov 21, 2018
b456bf9
Fix batch eval
Nov 22, 2018
230e8d3
Merge pull request #11 from andrzejnovak/switch
andrzejnovak Nov 22, 2018
f3eb756
Fix print for python3
Nov 27, 2018
f74c4c1
Merge pull request #12 from andrzejnovak/switch
andrzejnovak Nov 27, 2018
40f5b44
Remove type specification
Nov 27, 2018
2c45ee3
Remove wrong flavour print check
Nov 27, 2018
1658fcb
Merge pull request #13 from andrzejnovak/switch
andrzejnovak Nov 27, 2018
bbadee2
Fix indentation
Nov 28, 2018
fc232c4
Merge pull request #14 from andrzejnovak/switch
andrzejnovak Nov 28, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
from pfDeepDoubleCvBJetTags_cfi import pfDeepDoubleCvBJetTags

pfMassIndependentDeepDoubleBvLJetTags = pfDeepDoubleBvLJetTags.clone(
graph_path = cms.FileInPath('RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDB_mass_independent.pb')
)
graph_path = 'RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDB_mass_independent.pb')
pfMassIndependentDeepDoubleCvLJetTags = pfDeepDoubleCvLJetTags.clone(
graph_path = cms.FileInPath('RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDC_mass_independent.pb')
)
graph_path = 'RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDC_mass_independent.pb')
pfMassIndependentDeepDoubleCvBJetTags = pfDeepDoubleCvBJetTags.clone(
graph_path = cms.FileInPath('RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDCvB_mass_independent.pb')
)
graph_path = 'RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDCvB_mass_independent.pb')


21 changes: 11 additions & 10 deletions RecoBTag/TensorFlow/test/plotDDX.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import print_function
import ROOT
from DataFormats.FWLite import Handle, Events

Expand All @@ -16,16 +17,16 @@
event.getByLabel (labelJ, handleJ)
jets = handleJ.product()
for jet in jets :
if jet.pt() < 300 or jet.pt() > 2000: continue
if jet.mass() < 40 or jet.mass() > 200: continue

print jet.pt(), jet.mass()
print "DDB", jet.bDiscriminator("pfDeepDoubleBvLJetTags:probQCD"), jet.bDiscriminator("pfDeepDoubleBvLJetTags:probHbb") , jet.bDiscriminator("pfDeepDoubleBvLJetTags:probHcc")
print "DDB", jet.bDiscriminator("pfMassIndependentDeepDoubleBvLJetTags:probQCD"), jet.bDiscriminator("pfMassIndependentDeepDoubleBvLJetTags:probHbb") , jet.bDiscriminator("pfMassIndependentDeepDoubleBvLJetTags:probHcc")
print "DDCvL", jet.bDiscriminator("pfDeepDoubleCvLJetTags:probQCD"), jet.bDiscriminator("pfDeepDoubleCvLJetTags:probHcc") , jet.bDiscriminator("pfDeepDoubleCvLJetTags:probHbb")
print "DDCvL", jet.bDiscriminator("pfMassIndependentDeepDoubleCvLJetTags:probQCD"), jet.bDiscriminator("pfMassIndependentDeepDoubleCvLJetTags:probHcc") , jet.bDiscriminator("pfDeepDoubleMassIndependentCvLJetTags:probHbb")
print "DDCvB", jet.bDiscriminator("pfDeepDoubleCvBJetTags:probHbb"), jet.bDiscriminator("pfDeepDoubleCvBJetTags:probHcc") , jet.bDiscriminator("pfDeepDoubleCvBJetTags:probQCD")
print "DDCvB", jet.bDiscriminator("pfMassIndependentDeepDoubleCvBJetTags:probHbb"), jet.bDiscriminator("pfMassIndependentDeepDoubleCvBJetTags:probHcc") , jet.bDiscriminator("pfMassIndependentDeepDoubleCvBJetTags:probQCD")
if jet.pt() < 300 or jet.pt() > 2000: continue
if jet.mass() < 40 or jet.mass() > 200: continue

print(jet.pt(), jet.mass())
print("DDB", jet.bDiscriminator("pfDeepDoubleBvLJetTags:probQCD"), jet.bDiscriminator("pfDeepDoubleBvLJetTags:probHbb"))
print("DDB", jet.bDiscriminator("pfMassIndependentDeepDoubleBvLJetTags:probQCD"), jet.bDiscriminator("pfMassIndependentDeepDoubleBvLJetTags:probHbb"))
print("DDCvL", jet.bDiscriminator("pfDeepDoubleCvLJetTags:probQCD"), jet.bDiscriminator("pfDeepDoubleCvLJetTags:probHcc"))
print("DDCvL", jet.bDiscriminator("pfMassIndependentDeepDoubleCvLJetTags:probQCD"), jet.bDiscriminator("pfMassIndependentDeepDoubleCvLJetTags:probHcc"))
print("DDCvB", jet.bDiscriminator("pfDeepDoubleCvBJetTags:probHbb"), jet.bDiscriminator("pfDeepDoubleCvBJetTags:probHcc") )
print("DDCvB", jet.bDiscriminator("pfMassIndependentDeepDoubleCvBJetTags:probHbb"), jet.bDiscriminator("pfMassIndependentDeepDoubleCvBJetTags:probHcc"))
h_probQ_ddb.Fill(jet.bDiscriminator("pfDeepDoubleBvLJetTags:probQCD"))
h_probH_ddb.Fill(jet.bDiscriminator("pfDeepDoubleBvLJetTags:probHbb"))
h_probQ_ddc.Fill(jet.bDiscriminator("pfDeepDoubleCvLJetTags:probQCD"))
Expand Down