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.pfParticleNetDiscriminatorsJetTags_cfi
import pfParticleNetDiscriminatorsJetTags
6 from RecoBTag.ONNXRuntime.pfMassDecorrelatedParticleNetDiscriminatorsJetTags_cfi
import pfMassDecorrelatedParticleNetDiscriminatorsJetTags
8 pfParticleNetTagInfos = pfDeepBoostedJetTagInfos.clone(
12 pfParticleNetJetTags = boostedJetONNXJetTagsProducer.clone(
13 src =
'pfParticleNetTagInfos',
14 preprocess_json =
'RecoBTag/Combined/data/ParticleNetAK8/General/V01/preprocess.json',
15 model_path =
'RecoBTag/Combined/data/ParticleNetAK8/General/V01/particle-net.onnx',
16 flav_names = [
"probTbcq",
"probTbqq",
"probTbc",
"probTbq",
"probTbel",
"probTbmu",
"probTbta",
17 "probWcq",
"probWqq",
"probZbb",
"probZcc",
"probZqq",
"probHbb",
"probHcc",
18 "probHqqqq",
"probQCDbb",
"probQCDcc",
"probQCDb",
"probQCDc",
"probQCDothers"],
21 pfMassDecorrelatedParticleNetJetTags = boostedJetONNXJetTagsProducer.clone(
22 src =
'pfParticleNetTagInfos',
23 preprocess_json =
'RecoBTag/Combined/data/ParticleNetAK8/MD-2prong/V01/preprocess.json',
24 model_path =
'RecoBTag/Combined/data/ParticleNetAK8/MD-2prong/V01/particle-net.onnx',
25 flav_names = [
"probXbb",
"probXcc",
"probXqq",
"probQCDbb",
"probQCDcc",
26 "probQCDb",
"probQCDc",
"probQCDothers"],
29 pfParticleNetMassRegressionJetTags = boostedJetONNXJetTagsProducer.clone(
30 src =
'pfParticleNetTagInfos',
31 preprocess_json =
'RecoBTag/Combined/data/ParticleNetAK8/MassRegression/V01/preprocess.json',
32 model_path =
'RecoBTag/Combined/data/ParticleNetAK8/MassRegression/V01/particle-net.onnx',
33 flav_names = [
"mass"],
40 pfParticleNetTask = cms.Task(puppi, primaryVertexAssociation, pfParticleNetTagInfos,
41 pfParticleNetJetTags, pfMassDecorrelatedParticleNetJetTags, pfParticleNetMassRegressionJetTags,
42 pfParticleNetDiscriminatorsJetTags, pfMassDecorrelatedParticleNetDiscriminatorsJetTags)
46 _pfParticleNetJetTagsProbs = [
'pfParticleNetJetTags:' + flav_name
47 for flav_name
in pfParticleNetJetTags.flav_names]
49 _pfParticleNetJetTagsMetaDiscrs = [
'pfParticleNetDiscriminatorsJetTags:' + disc.name.value()
50 for disc
in pfParticleNetDiscriminatorsJetTags.discriminators]
52 _pfMassDecorrelatedParticleNetJetTagsProbs = [
'pfMassDecorrelatedParticleNetJetTags:' + flav_name
53 for flav_name
in pfMassDecorrelatedParticleNetJetTags.flav_names]
55 _pfMassDecorrelatedParticleNetJetTagsMetaDiscrs = [
'pfMassDecorrelatedParticleNetDiscriminatorsJetTags:' + disc.name.value()
56 for disc
in pfMassDecorrelatedParticleNetDiscriminatorsJetTags.discriminators]
58 _pfParticleNetMassRegressionOutputs = [
'pfParticleNetMassRegressionJetTags:' + flav_name
59 for flav_name
in pfParticleNetMassRegressionJetTags.flav_names]
61 _pfParticleNetJetTagsAll = _pfParticleNetJetTagsProbs + _pfParticleNetJetTagsMetaDiscrs + \
62 _pfMassDecorrelatedParticleNetJetTagsProbs + _pfMassDecorrelatedParticleNetJetTagsMetaDiscrs