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.pfParticleNetAK4DiscriminatorsJetTags_cfi
import pfParticleNetAK4DiscriminatorsJetTags
7 pfParticleNetAK4TagInfos = pfDeepBoostedJetTagInfos.clone(
14 pfParticleNetAK4JetTags = boostedJetONNXJetTagsProducer.clone(
15 src =
'pfParticleNetAK4TagInfos',
16 preprocess_json =
'RecoBTag/Combined/data/ParticleNetAK4/CHS/V00/preprocess.json',
17 model_path =
'RecoBTag/Combined/data/ParticleNetAK4/CHS/V00/particle-net.onnx',
18 flav_names = [
"probb",
"probbb",
"probc",
"probcc",
"probuds",
"probg",
"probundef",
"probpu"],
25 pfParticleNetAK4Task = cms.Task(puppi, primaryVertexAssociation, pfParticleNetAK4TagInfos,
26 pfParticleNetAK4JetTags, pfParticleNetAK4DiscriminatorsJetTags)
30 _pfParticleNetAK4JetTagsProbs = [
'pfParticleNetAK4JetTags:' + flav_name
31 for flav_name
in pfParticleNetAK4JetTags.flav_names]
33 _pfParticleNetAK4JetTagsMetaDiscrs = [
'pfParticleNetAK4DiscriminatorsJetTags:' + disc.name.value()
34 for disc
in pfParticleNetAK4DiscriminatorsJetTags.discriminators]
36 _pfParticleNetAK4JetTagsAll = _pfParticleNetAK4JetTagsProbs + _pfParticleNetAK4JetTagsMetaDiscrs
40 pfNegativeParticleNetAK4TagInfos = pfParticleNetAK4TagInfos.clone(
43 secondary_vertices =
'inclusiveCandidateNegativeSecondaryVertices',
46 pfNegativeParticleNetAK4JetTags = pfParticleNetAK4JetTags.clone(
47 src =
'pfNegativeParticleNetAK4TagInfos',
51 _pfNegativeParticleNetAK4JetTagsProbs = [
'pfNegativeParticleNetAK4JetTags:' + flav_name
52 for flav_name
in pfNegativeParticleNetAK4JetTags.flav_names]