CMS 3D CMS Logo

pfHiggsInteractionNet_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 as _pfDeepBoostedJetTagInfos
4 from RecoBTag.ONNXRuntime.boostedJetONNXJetTagsProducer_cfi import boostedJetONNXJetTagsProducer
5 from RecoBTag.ONNXRuntime.Parameters.HiggsInteractionNet.V00.pfHiggsInteractionNetPreprocessParams_cfi import pfHiggsInteractionNetPreprocessParams
6 from RecoBTag.ONNXRuntime.particleNetSonicJetTagsProducer_cfi import particleNetSonicJetTagsProducer as _particleNetSonicJetTagsProducer
7 from Configuration.ProcessModifiers.particleNetSonicTriton_cff import particleNetSonicTriton
8 
9 # modify default parameters for tag infos
10 pfHiggsInteractionNetTagInfos = _pfDeepBoostedJetTagInfos.clone(
11  min_pt_for_track_properties = 0.95,
12  min_puppi_wgt = -1,
13  use_puppiP4 = False,
14  include_neutrals = False,
15  sort_by_sip2dsig = True,
16 )
17 
18 # nominal Higgs IN
19 pfHiggsInteractionNetTags = boostedJetONNXJetTagsProducer.clone(
20  src = 'pfHiggsInteractionNetTagInfos',
21  preprocessParams = pfHiggsInteractionNetPreprocessParams,
22  model_path = 'RecoBTag/Combined/data/HiggsInteractionNet/V00/modelfile/model.onnx',
23  flav_names = [ 'probQCD', 'probHbb' ]
24 )
25 
26 particleNetSonicTriton.toReplaceWith(pfHiggsInteractionNetTags, _particleNetSonicJetTagsProducer.clone(
27  src = 'pfHiggsInteractionNetTagInfos',
28  preprocess_json = 'RecoBTag/Combined/data/models/higgsInteractionNet/preprocess.json',
29  Client = cms.PSet(
30  timeout = cms.untracked.uint32(300),
31  mode = cms.string("Async"),
32  modelName = cms.string("higgsInteractionNet"),
33  modelConfigPath = cms.FileInPath("RecoBTag/Combined/data/models/higgsInteractionNet/config.pbtxt"),
34  modelVersion = cms.string(""),
35  verbose = cms.untracked.bool(False),
36  allowedTries = cms.untracked.uint32(0),
37  useSharedMemory = cms.untracked.bool(True),
38  compression = cms.untracked.string(""),
39  ),
40  flav_names = pfHiggsInteractionNetTags.flav_names,
41 ))
42 
43 # declare all the discriminators
44 # nominal: probs
45 _pfHiggsInteractionNetTagsProbs = ['pfHiggsInteractionNetTags:' + flav_name
46  for flav_name in pfHiggsInteractionNetTags.flav_names]
47