1 import FWCore.ParameterSet.Config
as cms
3 from RecoBTag.FeatureTools.pfDeepBoostedJetTagInfos_cfi
import pfDeepBoostedJetTagInfos
4 from RecoBTag.MXNet.pfDeepBoostedJetTags_cfi
import pfDeepBoostedJetTags
as _pfDeepBoostedJetTags
5 from RecoBTag.MXNet.pfDeepBoostedJetPreprocessParams_cfi
import pfDeepBoostedJetPreprocessParams
6 from RecoBTag.MXNet.pfDeepBoostedDiscriminatorsJetTags_cfi
import pfDeepBoostedDiscriminatorsJetTags
7 from RecoBTag.MXNet.pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags_cfi
import pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags
10 pfDeepBoostedJetTags = _pfDeepBoostedJetTags.clone(
11 preprocessParams = pfDeepBoostedJetPreprocessParams,
12 model_path =
'RecoBTag/Combined/data/DeepBoostedJet/V01/full/resnet-symbol.json',
13 param_path =
'RecoBTag/Combined/data/DeepBoostedJet/V01/full/resnet-0000.params',
18 pfMassDecorrelatedDeepBoostedJetTags = _pfDeepBoostedJetTags.clone(
19 preprocessParams = pfDeepBoostedJetPreprocessParams,
20 model_path =
'RecoBTag/Combined/data/DeepBoostedJet/V01/decorrelated/resnet-symbol.json',
21 param_path =
'RecoBTag/Combined/data/DeepBoostedJet/V01/decorrelated/resnet-0000.params',
30 pfDeepBoostedJetTask = cms.Task(puppi, primaryVertexAssociation,
31 pfDeepBoostedJetTagInfos, pfDeepBoostedJetTags, pfMassDecorrelatedDeepBoostedJetTags,
32 pfDeepBoostedDiscriminatorsJetTags, pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags)
36 _pfDeepBoostedJetTagsProbs = [
'pfDeepBoostedJetTags:' + flav_name
37 for flav_name
in pfDeepBoostedJetTags.flav_names]
39 _pfDeepBoostedJetTagsMetaDiscrs = [
'pfDeepBoostedDiscriminatorsJetTags:' + disc.name.value()
40 for disc
in pfDeepBoostedDiscriminatorsJetTags.discriminators]
43 _pfMassDecorrelatedDeepBoostedJetTagsProbs = [
'pfMassDecorrelatedDeepBoostedJetTags:' + flav_name
44 for flav_name
in pfMassDecorrelatedDeepBoostedJetTags.flav_names]
46 _pfMassDecorrelatedDeepBoostedJetTagsMetaDiscrs = [
'pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags:' + disc.name.value()
47 for disc
in pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags.discriminators]
49 _pfDeepBoostedJetTagsAll = _pfDeepBoostedJetTagsProbs + _pfDeepBoostedJetTagsMetaDiscrs + \
50 _pfMassDecorrelatedDeepBoostedJetTagsProbs + _pfMassDecorrelatedDeepBoostedJetTagsMetaDiscrs