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.FeatureTools.ParticleNetFeatureEvaluator_cfi
import ParticleNetFeatureEvaluator
6 from RecoBTag.ONNXRuntime.pfParticleNetFromMiniAODAK8DiscriminatorsJetTags_cfi
import pfParticleNetFromMiniAODAK8DiscriminatorsJetTags
8 pfParticleNetFromMiniAODAK8TagInfos = ParticleNetFeatureEvaluator.clone(
9 jets =
"slimmedJetsAK8",
17 pfParticleNetFromMiniAODAK8JetTags = boostedJetONNXJetTagsProducer.clone(
18 src =
'pfParticleNetFromMiniAODAK8TagInfos',
19 preprocess_json =
'RecoBTag/Combined/data/ParticleNetFromMiniAODAK8/preprocess.json',
20 model_path =
'RecoBTag/Combined/data/ParticleNetFromMiniAODAK8/particle-net.onnx',
21 flav_names = [
'probHtt',
'probHtm',
'probHte',
'probHbb',
'probHcc',
'probHqq',
'probHgg',
'probQCD2hf',
'probQCD1hf',
'probQCD0hf',
'masscorr'],
25 pfParticleNetFromMiniAODAK8Task = cms.Task( pfParticleNetFromMiniAODAK8TagInfos, pfParticleNetFromMiniAODAK8JetTags)
29 _pfParticleNetFromMiniAODAK8JetTagsProbs = [
'pfParticleNetFromMiniAODAK8JetTags:' + flav_name
30 for flav_name
in pfParticleNetFromMiniAODAK8JetTags.flav_names]
31 _pfParticleNetFromMiniAODAK8JetTagsMetaDiscr = [
'pfParticleNetFromMiniAODAK8DiscriminatorsJetTags:' + disc.name.value()
32 for disc
in pfParticleNetFromMiniAODAK8DiscriminatorsJetTags.discriminators]
34 _pfParticleNetFromMiniAODAK8JetTagsAll = _pfParticleNetFromMiniAODAK8JetTagsProbs + _pfParticleNetFromMiniAODAK8JetTagsMetaDiscr