1 import FWCore.ParameterSet.Config
as cms
3 from RecoBTag.FeatureTools.pfDeepBoostedJetTagInfos_cfi
import pfDeepBoostedJetTagInfos
4 from RecoBTag.ONNXRuntime.boostedJetONNXJetTagsProducer_cfi
import boostedJetONNXJetTagsProducer
5 from RecoBTag.ONNXRuntime.Parameters.DeepBoostedJet.V02.pfDeepBoostedJetPreprocessParams_cfi
import pfDeepBoostedJetPreprocessParams
6 from RecoBTag.ONNXRuntime.Parameters.DeepBoostedJet.V02.pfMassDecorrelatedDeepBoostedJetPreprocessParams_cfi
import pfMassDecorrelatedDeepBoostedJetPreprocessParams
7 from RecoBTag.ONNXRuntime.pfDeepBoostedDiscriminatorsJetTags_cfi
import pfDeepBoostedDiscriminatorsJetTags
8 from RecoBTag.ONNXRuntime.pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags_cfi
import pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags
11 pfDeepBoostedJetTags = boostedJetONNXJetTagsProducer.clone(
12 preprocessParams = pfDeepBoostedJetPreprocessParams,
13 model_path =
'RecoBTag/Combined/data/DeepBoostedJet/V02/full/resnet.onnx',
17 pfMassDecorrelatedDeepBoostedJetTags = boostedJetONNXJetTagsProducer.clone(
18 preprocessParams = pfMassDecorrelatedDeepBoostedJetPreprocessParams,
19 model_path =
'RecoBTag/Combined/data/DeepBoostedJet/V02/decorrelated/resnet.onnx',
27 pfDeepBoostedJetTask = cms.Task(puppi, primaryVertexAssociation,
28 pfDeepBoostedJetTagInfos, pfDeepBoostedJetTags, pfMassDecorrelatedDeepBoostedJetTags,
29 pfDeepBoostedDiscriminatorsJetTags, pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags)
33 _pfDeepBoostedJetTagsProbs = [
'pfDeepBoostedJetTags:' + flav_name
34 for flav_name
in pfDeepBoostedJetTags.flav_names]
36 _pfDeepBoostedJetTagsMetaDiscrs = [
'pfDeepBoostedDiscriminatorsJetTags:' + disc.name.value()
37 for disc
in pfDeepBoostedDiscriminatorsJetTags.discriminators]
40 _pfMassDecorrelatedDeepBoostedJetTagsProbs = [
'pfMassDecorrelatedDeepBoostedJetTags:' + flav_name
41 for flav_name
in pfMassDecorrelatedDeepBoostedJetTags.flav_names]
43 _pfMassDecorrelatedDeepBoostedJetTagsMetaDiscrs = [
'pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags:' + disc.name.value()
44 for disc
in pfMassDecorrelatedDeepBoostedDiscriminatorsJetTags.discriminators]
46 _pfDeepBoostedJetTagsAll = _pfDeepBoostedJetTagsProbs + _pfDeepBoostedJetTagsMetaDiscrs + \
47 _pfMassDecorrelatedDeepBoostedJetTagsProbs + _pfMassDecorrelatedDeepBoostedJetTagsMetaDiscrs