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.Parameters.V02.pfDeepBoostedJetPreprocessParams_cfi
import pfDeepBoostedJetPreprocessParams
6 from RecoBTag.MXNet.Parameters.V02.pfMassDecorrelatedDeepBoostedJetPreprocessParams_cfi
import pfMassDecorrelatedDeepBoostedJetPreprocessParams
7 from RecoBTag.MXNet.pfDeepBoostedDiscriminatorsJetTags_cfi
import pfDeepBoostedDiscriminatorsJetTags
8 from RecoBTag.MXNet.pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags_cfi
import pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags
11 pfDeepBoostedJetTags = _pfDeepBoostedJetTags.clone(
12 preprocessParams = pfDeepBoostedJetPreprocessParams,
13 model_path =
'RecoBTag/Combined/data/DeepBoostedJet/V02/full/resnet-symbol.json',
14 param_path =
'RecoBTag/Combined/data/DeepBoostedJet/V02/full/resnet-0000.params',
19 pfMassDecorrelatedDeepBoostedJetTags = _pfDeepBoostedJetTags.clone(
20 preprocessParams = pfMassDecorrelatedDeepBoostedJetPreprocessParams,
21 model_path =
'RecoBTag/Combined/data/DeepBoostedJet/V02/decorrelated/resnet-symbol.json',
22 param_path =
'RecoBTag/Combined/data/DeepBoostedJet/V02/decorrelated/resnet-0000.params',
31 pfDeepBoostedJetTask = cms.Task(puppi, primaryVertexAssociation,
32 pfDeepBoostedJetTagInfos, pfDeepBoostedJetTags, pfMassDecorrelatedDeepBoostedJetTags,
33 pfDeepBoostedDiscriminatorsJetTags, pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags)
37 _pfDeepBoostedJetTagsProbs = [
'pfDeepBoostedJetTags:' + flav_name
38 for flav_name
in pfDeepBoostedJetTags.flav_names]
40 _pfDeepBoostedJetTagsMetaDiscrs = [
'pfDeepBoostedDiscriminatorsJetTags:' + disc.name.value()
41 for disc
in pfDeepBoostedDiscriminatorsJetTags.discriminators]
44 _pfMassDecorrelatedDeepBoostedJetTagsProbs = [
'pfMassDecorrelatedDeepBoostedJetTags:' + flav_name
45 for flav_name
in pfMassDecorrelatedDeepBoostedJetTags.flav_names]
47 _pfMassDecorrelatedDeepBoostedJetTagsMetaDiscrs = [
'pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags:' + disc.name.value()
48 for disc
in pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags.discriminators]
50 _pfDeepBoostedJetTagsAll = _pfDeepBoostedJetTagsProbs + _pfDeepBoostedJetTagsMetaDiscrs + \
51 _pfMassDecorrelatedDeepBoostedJetTagsProbs + _pfMassDecorrelatedDeepBoostedJetTagsMetaDiscrs