CMS 3D CMS Logo

pfParticleNetFromMiniAODAK8_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
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
7 
8 pfParticleNetFromMiniAODAK8TagInfos = ParticleNetFeatureEvaluator.clone(
9  jets = "slimmedJetsAK8",
10  jet_radius = 0.8,
11  min_jet_pt = 180,
12  min_jet_eta = 0.,
13  max_jet_eta = 2.5,
14 )
15 
16 
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'],
22 )
23 
24 
25 pfParticleNetFromMiniAODAK8Task = cms.Task( pfParticleNetFromMiniAODAK8TagInfos, pfParticleNetFromMiniAODAK8JetTags)
26 
27 # declare all the discriminators
28 # probs
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]
33 
34 _pfParticleNetFromMiniAODAK8JetTagsAll = _pfParticleNetFromMiniAODAK8JetTagsProbs + _pfParticleNetFromMiniAODAK8JetTagsMetaDiscr