CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
7 # modify default parameters for tag infos
8 pfHiggsInteractionNetTagInfos = _pfDeepBoostedJetTagInfos.clone(
9  min_pt_for_track_properties = 0.95,
10  min_puppi_wgt = -1,
11  use_puppiP4 = False,
12  include_neutrals = False,
13  sort_by_sip2dsig = True,
14 )
15 
16 # nominal Higgs IN
17 pfHiggsInteractionNetTags = boostedJetONNXJetTagsProducer.clone(
18  src = 'pfHiggsInteractionNetTagInfos',
19  preprocessParams = pfHiggsInteractionNetPreprocessParams,
20  model_path = 'RecoBTag/Combined/data/HiggsInteractionNet/V00/IN.onnx',
21  flav_names = [ 'probQCD', 'probHbb' ]
22 )
23 
24 # declare all the discriminators
25 # nominal: probs
26 _pfHiggsInteractionNetTagsProbs = ['pfHiggsInteractionNetTags:' + flav_name
27  for flav_name in pfHiggsInteractionNetTags.flav_names]
28