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"],
33 pfParticleNetTask = cms.Task(puppi, primaryVertexAssociation, pfParticleNetTagInfos,
34 pfParticleNetJetTags, pfMassDecorrelatedParticleNetJetTags, pfParticleNetDiscriminatorsJetTags)
38 _pfParticleNetJetTagsProbs = [
'pfParticleNetJetTags:' + flav_name
39 for flav_name
in pfParticleNetJetTags.flav_names]
41 _pfParticleNetJetTagsMetaDiscrs = [
'pfParticleNetDiscriminatorsJetTags:' + disc.name.value()
42 for disc
in pfParticleNetDiscriminatorsJetTags.discriminators]
44 _pfMassDecorrelatedParticleNetJetTagsProbs = [
'pfMassDecorrelatedParticleNetJetTags:' + flav_name
45 for flav_name
in pfMassDecorrelatedParticleNetJetTags.flav_names]
47 _pfMassDecorrelatedParticleNetJetTagsMetaDiscrs = [
'pfMassDecorrelatedParticleNetDiscriminatorsJetTags:' + disc.name.value()
48 for disc
in pfMassDecorrelatedParticleNetDiscriminatorsJetTags.discriminators]
50 _pfParticleNetJetTagsAll = _pfParticleNetJetTagsProbs + _pfParticleNetJetTagsMetaDiscrs + \
51 _pfMassDecorrelatedParticleNetJetTagsProbs + _pfMassDecorrelatedParticleNetJetTagsMetaDiscrs