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(
15 pfParticleNetAK4TagInfosForRECO = pfParticleNetAK4TagInfos.clone(
20 pfParticleNetAK4JetTags = boostedJetONNXJetTagsProducer.clone(
21 src =
'pfParticleNetAK4TagInfos',
22 preprocess_json =
'RecoBTag/Combined/data/ParticleNetAK4/CHS/V00/preprocess.json',
23 model_path =
'RecoBTag/Combined/data/ParticleNetAK4/CHS/V00/particle-net.onnx',
24 flav_names = [
"probb",
"probbb",
"probc",
"probcc",
"probuds",
"probg",
"probundef",
"probpu"],
27 pfParticleNetAK4JetTagsForRECO = pfParticleNetAK4JetTags.clone(
28 src =
'pfParticleNetAK4TagInfosForRECO',
31 pfParticleNetAK4DiscriminatorsJetTagsForRECO = pfParticleNetAK4DiscriminatorsJetTags.clone()
32 for discriminator
in pfParticleNetAK4DiscriminatorsJetTagsForRECO.discriminators:
33 for num
in discriminator.numerator:
34 num.setModuleLabel(
"pfParticleNetAK4JetTagsForRECO");
35 for den
in discriminator.denominator:
36 den.setModuleLabel(
"pfParticleNetAK4JetTagsForRECO");
42 pfParticleNetAK4Task = cms.Task(puppi, primaryVertexAssociation, pfParticleNetAK4TagInfos,
43 pfParticleNetAK4JetTags, pfParticleNetAK4DiscriminatorsJetTags)
45 pfParticleNetAK4TaskForRECO = cms.Task(puppi, primaryVertexAssociation, pfParticleNetAK4TagInfosForRECO,
46 pfParticleNetAK4JetTagsForRECO, pfParticleNetAK4DiscriminatorsJetTagsForRECO)
50 _pfParticleNetAK4JetTagsProbs = [
'pfParticleNetAK4JetTags:' + flav_name
51 for flav_name
in pfParticleNetAK4JetTags.flav_names]
53 _pfParticleNetAK4JetTagsMetaDiscrs = [
'pfParticleNetAK4DiscriminatorsJetTags:' + disc.name.value()
54 for disc
in pfParticleNetAK4DiscriminatorsJetTags.discriminators]
56 _pfParticleNetAK4JetTagsAll = _pfParticleNetAK4JetTagsProbs + _pfParticleNetAK4JetTagsMetaDiscrs
60 pfNegativeParticleNetAK4TagInfos = pfParticleNetAK4TagInfos.clone(
63 secondary_vertices =
'inclusiveCandidateNegativeSecondaryVertices',
66 pfNegativeParticleNetAK4JetTags = pfParticleNetAK4JetTags.clone(
67 src =
'pfNegativeParticleNetAK4TagInfos',
71 _pfNegativeParticleNetAK4JetTagsProbs = [
'pfNegativeParticleNetAK4JetTags:' + flav_name
72 for flav_name
in pfNegativeParticleNetAK4JetTags.flav_names]