@@ -63,15 +63,27 @@ def applySubstructure( process, postfix="" ) :
6363 jetCorrections = ('AK8PFPuppi' , ['L2Relative' , 'L3Absolute' ], 'None' ),
6464 getJetMCFlavour = False # jet flavor disabled
6565 )
66+
6667 ## PATify soft drop subjets
68+ from RecoBTag .ONNXRuntime .pfUnifiedParticleTransformerAK4_cff import _pfUnifiedParticleTransformerAK4JetTagsAll as pfUnifiedParticleTransformerAK4JetTagsAll
69+ _btagDiscriminatorsSubjets = cms .PSet (
70+ names = cms .vstring (
71+ 'pfDeepFlavourJetTags:probb' ,
72+ 'pfDeepFlavourJetTags:probbb' ,
73+ 'pfDeepFlavourJetTags:problepb' ,
74+ 'pfUnifiedParticleTransformerAK4DiscriminatorsJetTags:BvsAll'
75+ )
76+ # + pfUnifiedParticleTransformerAK4JetTagsAll
77+ )
78+
6779 addJetCollection (
6880 process ,
6981 postfix = postfix ,
7082 labelName = 'AK8PFPuppiSoftDropSubjets' ,
7183 jetSource = cms .InputTag ('ak8PFJetsPuppiSoftDrop' + postfix ,'SubJets' ),
7284 algo = 'ak' , # needed for subjet flavor clustering
7385 rParam = 0.8 , # needed for subjet flavor clustering
74- btagDiscriminators = [ 'pfDeepCSVJetTags:probb' , 'pfDeepCSVJetTags:probbb' , 'pfCombinedInclusiveSecondaryVertexV2BJetTags' , 'pfCombinedMVAV2BJetTags' ] ,
86+ btagDiscriminators = _btagDiscriminatorsSubjets . names . value () ,
7587 jetCorrections = ('AK4PFPuppi' , ['L2Relative' , 'L3Absolute' ], 'None' ),
7688 explicitJTA = True , # needed for subjet b tagging
7789 svClustering = True , # needed for subjet b tagging
@@ -80,14 +92,6 @@ def applySubstructure( process, postfix="" ) :
8092 groomedFatJets = cms .InputTag ('ak8PFJetsPuppiSoftDrop' ) # needed for subjet flavor clustering
8193 )
8294
83- from Configuration .Eras .Modifier_run3_common_cff import run3_common
84- run3_common .toModify (process .patJetsAK8PFPuppiSoftDropSubjets ,
85- discriminatorSources = cms .VInputTag (
86- cms .InputTag ("pfDeepCSVJetTagsAK8PFPuppiSoftDropSubjets" ,"probb" ),
87- cms .InputTag ("pfDeepCSVJetTagsAK8PFPuppiSoftDropSubjets" ,"probbb" )
88- )
89- )
90-
9195 # add groomed ECFs and N-subjettiness to soft dropped pat::Jets for fat jets and subjets
9296 process .load ('RecoJets.JetProducers.ECF_cff' )
9397 addToProcessAndTask ('nb1AK8PuppiSoftDrop' + postfix , process .ecfNbeta1 .clone (src = cms .InputTag ("ak8PFJetsPuppiSoftDrop" + postfix ), cuts = cms .vstring ('' , '' , 'pt > 250' )), process , task )
0 commit comments