CMS 3D CMS Logo

pfUnifiedParticleTransformerAK4_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoBTag.FeatureTools.pfUnifiedParticleTransformerAK4TagInfos_cfi import pfUnifiedParticleTransformerAK4TagInfos
4 
5 from RecoBTag.ONNXRuntime.pfUnifiedParticleTransformerAK4JetTags_cfi import pfUnifiedParticleTransformerAK4JetTags
6 from RecoBTag.ONNXRuntime.pfUnifiedParticleTransformerAK4DiscriminatorsJetTags_cfi import pfUnifiedParticleTransformerAK4DiscriminatorsJetTags
7 from CommonTools.PileupAlgos.Puppi_cff import puppi
8 from CommonTools.RecoAlgos.primaryVertexAssociation_cfi import primaryVertexAssociation
9 
10 # declare all the discriminators
11 # probs
12 _pfUnifiedParticleTransformerAK4JetTagsProbs = ['pfUnifiedParticleTransformerAK4JetTags:' + flav_name
13  for flav_name in pfUnifiedParticleTransformerAK4JetTags.flav_names]
14 # meta-taggers
15 _pfUnifiedParticleTransformerAK4JetTagsMetaDiscrs = ['pfUnifiedParticleTransformerAK4DiscriminatorsJetTags:' + disc.name.value()
16  for disc in pfUnifiedParticleTransformerAK4DiscriminatorsJetTags.discriminators]
17 _pfUnifiedParticleTransformerAK4JetTagsAll = _pfUnifiedParticleTransformerAK4JetTagsProbs + _pfUnifiedParticleTransformerAK4JetTagsMetaDiscrs
18 
19 
20 
21 # ==
22 # This task is not used, useful only if we run it from RECO jets (RECO/AOD)
23 pfUnifiedParticleTransformerAK4Task = cms.Task(puppi, primaryVertexAssociation,
24  pfUnifiedParticleTransformerAK4TagInfos, pfUnifiedParticleTransformerAK4JetTags,
25  pfUnifiedParticleTransformerAK4DiscriminatorsJetTags)
26 # run from MiniAOD instead
27 pfUnifiedParticleTransformerAK4FromMiniAODTask = cms.Task(pfUnifiedParticleTransformerAK4TagInfos,
28  pfUnifiedParticleTransformerAK4JetTags,
29  pfUnifiedParticleTransformerAK4DiscriminatorsJetTags)