forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from andrzejnovak/switch
Use cloning in modules, Add back DeepDoubleBTagInfo.h in the meantime so PR can be tested
- Loading branch information
Showing
8 changed files
with
60 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef DataFormats_BTauReco_DeepDoubleBTagInfo_h | ||
#define DataFormats_BTauReco_DeepDoubleBTagInfo_h | ||
|
||
#include "DataFormats/BTauReco/interface/FeaturesTagInfo.h" | ||
#include "DataFormats/BTauReco/interface/DeepDoubleXFeatures.h" | ||
|
||
//keeping for posterity | ||
namespace reco { | ||
|
||
typedef FeaturesTagInfo<btagbtvdeep::DeepDoubleXFeatures> DeepDoubleBTagInfo; | ||
|
||
DECLARE_EDM_REFS( DeepDoubleBTagInfo ) | ||
|
||
} | ||
|
||
#endif // DataFormats_BTauReco_DeepDoubleBTagInfo_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,12 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
from pfDeepDoubleBvLJetTags_cfi import pfDeepDoubleBvLJetTags | ||
|
||
pfDeepDoubleCvBJetTags = cms.EDProducer('DeepDoubleXTFJetTagsProducer', | ||
src = cms.InputTag('pfDeepDoubleXTagInfos'), | ||
input_names = cms.vstring( | ||
'input_1', | ||
'input_2', | ||
'input_3' | ||
), | ||
graph_path = cms.FileInPath('RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDCvB.pb'), | ||
lp_names = cms.vstring('db_input_batchnorm/keras_learning_phase'), | ||
output_names = cms.vstring('ID_pred/Softmax'), | ||
flavor = cms.string('CvB'), | ||
flav_table = cms.PSet( | ||
probHbb = cms.vuint32(0), | ||
probHcc = cms.vuint32(1) | ||
), | ||
batch_eval = cms.bool(False), | ||
nThreads = cms.uint32(1), | ||
singleThreadPool = cms.string('no_threads') | ||
pfDeepDoubleCvBJetTags = pfDeepDoubleBvLJetTags.clone( | ||
flavor = 'CvB', | ||
graph_path = cms.FileInPath('RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDCvB.pb'), | ||
flav_table = cms.PSet( | ||
probHbb = cms.vuint32(0), | ||
probHcc = cms.vuint32(1) | ||
) | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,11 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
from pfDeepDoubleBvLJetTags_cfi import pfDeepDoubleBvLJetTags | ||
|
||
pfDeepDoubleCvLJetTags = cms.EDProducer('DeepDoubleXTFJetTagsProducer', | ||
src = cms.InputTag('pfDeepDoubleXTagInfos'), | ||
input_names = cms.vstring( | ||
'input_1', | ||
'input_2', | ||
'input_3' | ||
), | ||
graph_path = cms.FileInPath('RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDC.pb'), | ||
lp_names = cms.vstring('db_input_batchnorm/keras_learning_phase'), | ||
output_names = cms.vstring('ID_pred/Softmax'), | ||
flavor = cms.string('CvL'), | ||
flav_table = cms.PSet( | ||
probQCD = cms.vuint32(0), | ||
probHcc = cms.vuint32(1) | ||
), | ||
batch_eval = cms.bool(False), | ||
nThreads = cms.uint32(1), | ||
singleThreadPool = cms.string('no_threads') | ||
pfDeepDoubleCvLJetTags = pfDeepDoubleBvLJetTags.clone( | ||
flavor = 'CvL', | ||
graph_path = cms.FileInPath('RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDC.pb'), | ||
flav_table = cms.PSet( | ||
probQCD = cms.vuint32(0), | ||
probHcc = cms.vuint32(1) | ||
) | ||
) |
27 changes: 9 additions & 18 deletions
27
RecoBTag/TensorFlow/python/pfMassIndependentDeepDoubleBvLJetTags_cfi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,12 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
from pfDeepDoubleBvLJetTags_cfi import pfDeepDoubleBvLJetTags | ||
|
||
pfMassIndependentDeepDoubleBvLJetTags = cms.EDProducer('DeepDoubleXTFJetTagsProducer', | ||
src = cms.InputTag('pfDeepDoubleXTagInfos'), | ||
input_names = cms.vstring( | ||
'input_1', | ||
'input_2', | ||
'input_3' | ||
), | ||
graph_path = cms.FileInPath('RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDB_mass_independent.pb'), | ||
lp_names = cms.vstring('db_input_batchnorm/keras_learning_phase'), | ||
output_names = cms.vstring('ID_pred/Softmax'), | ||
flavor = cms.string('BvL'), | ||
flav_table = cms.PSet( | ||
probQCD = cms.vuint32(0), | ||
probHbb = cms.vuint32(1) | ||
), | ||
batch_eval = cms.bool(False), | ||
nThreads = cms.uint32(1), | ||
singleThreadPool = cms.string('no_threads') | ||
pfMassIndependentDeepDoubleBvLJetTags = pfDeepDoubleBvLJetTags.clone( | ||
flavor = 'BvL', | ||
graph_path = cms.FileInPath('RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDB_mass_independent.pb'), | ||
flav_table = cms.PSet( | ||
probQCD = cms.vuint32(0), | ||
probHbb = cms.vuint32(1) | ||
) | ||
) | ||
|
27 changes: 9 additions & 18 deletions
27
RecoBTag/TensorFlow/python/pfMassIndependentDeepDoubleCvBJetTags_cfi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,12 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
from pfDeepDoubleBvLJetTags_cfi import pfDeepDoubleBvLJetTags | ||
|
||
pfMassIndependentDeepDoubleCvBJetTags = cms.EDProducer('DeepDoubleXTFJetTagsProducer', | ||
src = cms.InputTag('pfDeepDoubleXTagInfos'), | ||
input_names = cms.vstring( | ||
'input_1', | ||
'input_2', | ||
'input_3' | ||
), | ||
graph_path = cms.FileInPath('RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDCvB_mass_independent.pb'), | ||
lp_names = cms.vstring('db_input_batchnorm/keras_learning_phase'), | ||
output_names = cms.vstring('ID_pred/Softmax'), | ||
flavor = cms.string('CvB'), | ||
flav_table = cms.PSet( | ||
probHbb = cms.vuint32(0), | ||
probHcc = cms.vuint32(1) | ||
), | ||
batch_eval = cms.bool(False), | ||
nThreads = cms.uint32(1), | ||
singleThreadPool = cms.string('no_threads') | ||
pfMassIndependentDeepDoubleCvBJetTags = pfDeepDoubleBvLJetTags.clone( | ||
flavor = 'CvB', | ||
graph_path = cms.FileInPath('RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDCvB_mass_independent.pb'), | ||
flav_table = cms.PSet( | ||
probHbb = cms.vuint32(0), | ||
probHcc = cms.vuint32(1) | ||
) | ||
) | ||
|
26 changes: 8 additions & 18 deletions
26
RecoBTag/TensorFlow/python/pfMassIndependentDeepDoubleCvLJetTags_cfi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,11 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
from pfDeepDoubleBvLJetTags_cfi import pfDeepDoubleBvLJetTags | ||
|
||
pfMassIndependentDeepDoubleCvLJetTags = cms.EDProducer('DeepDoubleXTFJetTagsProducer', | ||
src = cms.InputTag('pfDeepDoubleXTagInfos'), | ||
input_names = cms.vstring( | ||
'input_1', | ||
'input_2', | ||
'input_3' | ||
), | ||
graph_path = cms.FileInPath('RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDC_mass_independent.pb'), | ||
lp_names = cms.vstring('db_input_batchnorm/keras_learning_phase'), | ||
output_names = cms.vstring('ID_pred/Softmax'), | ||
flavor = cms.string('CvL'), | ||
flav_table = cms.PSet( | ||
probQCD = cms.vuint32(0), | ||
probHcc = cms.vuint32(1) | ||
), | ||
batch_eval = cms.bool(False), | ||
nThreads = cms.uint32(1), | ||
singleThreadPool = cms.string('no_threads') | ||
pfMassIndependentDeepDoubleCvLJetTags = pfDeepDoubleBvLJetTags.clone( | ||
flavor = 'CvL', | ||
graph_path = cms.FileInPath('RecoBTag/Combined/data/DeepDoubleX/94X/V01/DDC_mass_independent.pb'), | ||
flav_table = cms.PSet( | ||
probQCD = cms.vuint32(0), | ||
probHcc = cms.vuint32(1) | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters