CMS 3D CMS Logo

Functions | Variables
jetsAK8_cff Namespace Reference

Functions

def nanoAOD_addDeepInfoAK8 (process, addDeepBTag, addDeepBoostedJet, addDeepDoubleX, addDeepDoubleXV2, addParticleNet, addParticleNetMass, jecPayload)
 

Variables

 addBTagInfo
 
 addDiscriminators
 
 addJetCorrFactors
 
 addTagInfos
 
 area
 
 btagCSVV2
 
 btagDDBvLV2
 
 btagDDCvBV2
 
 btagDDCvLV2
 
 btagDeepB
 
 btagHbb
 
 cut
 
 deepTag_H
 
 deepTag_QCD
 
 deepTag_QCDothers
 
 deepTag_TvsQCD
 
 deepTag_WvsQCD
 
 deepTag_ZvsQCD
 
 deepTagMD_bbvsLight
 
 deepTagMD_ccvsLight
 
 deepTagMD_H4qvsQCD
 
 deepTagMD_HbbvsQCD
 
 deepTagMD_TvsQCD
 
 deepTagMD_WvsQCD
 
 deepTagMD_ZbbvsQCD
 
 deepTagMD_ZHbbvsQCD
 
 deepTagMD_ZHccvsQCD
 
 deepTagMD_ZvsQCD
 
 discriminatorSources
 
 doc
 
 electronIdx3SJ
 
 emf
 
 extension
 
 externalVariables
 
 extraJPTOffset
 
 fatJetTable
 
 filterParams
 
 finalJetsAK8
 
 flavorType
 
 float
 
 int
 
 jecPayload
 
 jetAK8LepTask
 
 jetAK8TablesTask
 
 jetAK8Task
 
 jetAK8UserDataTask
 
 jetCorrFactorsAK8
 
 jetCorrFactorsSource
 
 jetId
 
 jetSource
 
 lepInAK8JetVars
 
 levels
 
 looseJetIdAK8
 
 lsf3
 
 mightGet
 
 msoftdrop
 
 muonIdx3SJ
 
 n2b1
 
 n3b1
 
 name
 
 nanoAOD_addDeepBoostedJet_switch
 
 nanoAOD_addDeepBTag_switch
 
 nanoAOD_addDeepDoubleX_switch
 
 nanoAOD_addDeepDoubleXV2_switch
 
 nanoAOD_addDeepInfoAK8_switch
 
 nanoAOD_addParticleNet_switch
 
 nanoAOD_addParticleNetMass_switch
 
 nConstituents
 
 particleNet_H4qvsQCD
 
 particleNet_HbbvsQCD
 
 particleNet_HccvsQCD
 
 particleNet_mass
 
 particleNet_QCD
 
 particleNet_TvsQCD
 
 particleNet_WvsQCD
 
 particleNet_ZvsQCD
 
 particleNetMD_QCD
 
 particleNetMD_Xbb
 
 particleNetMD_Xcc
 
 particleNetMD_Xqq
 
 payload
 
 precision
 
 primaryVertices
 
 printWarning
 
 quality
 
 rawFactor
 
 rho
 
 singleton
 
 sort
 
 src
 
 srcEle
 
 srcMu
 
 subJetIdx1
 
 subJetIdx2
 
 subJetTable
 DeepInfoAK8:End. More...
 
 tagInfoSources
 
 tau1
 
 tau2
 
 tau3
 
 tau4
 
 tightId
 
 tightIdLepVeto
 
 tightJetIdAK8
 
 tightJetIdLepVetoAK8
 
 updatedJetsAK8
 
 updatedJetsAK8WithUserData
 
 useNPV
 
 userCands
 
 userClasses
 
 userData
 
 userFloats
 
 userFunctionLabels
 
 userFunctions
 
 useRho
 
 userInts
 
 variables
 
 version
 

Function Documentation

◆ nanoAOD_addDeepInfoAK8()

def jetsAK8_cff.nanoAOD_addDeepInfoAK8 (   process,
  addDeepBTag,
  addDeepBoostedJet,
  addDeepDoubleX,
  addDeepDoubleXV2,
  addParticleNet,
  addParticleNetMass,
  jecPayload 
)

Definition at line 146 of file jetsAK8_cff.py.

References join(), and print().

Referenced by nano_cff.nanoAOD_customizeCommon(), and nano_cff.nanoAOD_runMETfixEE2017().

146 def nanoAOD_addDeepInfoAK8(process, addDeepBTag, addDeepBoostedJet, addDeepDoubleX, addDeepDoubleXV2, addParticleNet, addParticleNetMass, jecPayload):
147  _btagDiscriminators=[]
148  if addDeepBTag:
149  print("Updating process to run DeepCSV btag to AK8 jets")
150  _btagDiscriminators += ['pfDeepCSVJetTags:probb','pfDeepCSVJetTags:probbb']
151  if addDeepBoostedJet:
152  print("Updating process to run DeepBoostedJet on datasets before 103X")
153  from RecoBTag.ONNXRuntime.pfDeepBoostedJet_cff import _pfDeepBoostedJetTagsAll as pfDeepBoostedJetTagsAll
154  _btagDiscriminators += pfDeepBoostedJetTagsAll
155  if addParticleNet:
156  print("Updating process to run ParticleNet before it's included in MiniAOD")
157  from RecoBTag.ONNXRuntime.pfParticleNet_cff import _pfParticleNetJetTagsAll as pfParticleNetJetTagsAll
158  _btagDiscriminators += pfParticleNetJetTagsAll
159  if addParticleNetMass:
160  from RecoBTag.ONNXRuntime.pfParticleNet_cff import _pfParticleNetMassRegressionOutputs
161  _btagDiscriminators += _pfParticleNetMassRegressionOutputs
162  if addDeepDoubleX:
163  print("Updating process to run DeepDoubleX on datasets before 104X")
164  _btagDiscriminators += ['pfDeepDoubleBvLJetTags:probHbb', \
165  'pfDeepDoubleCvLJetTags:probHcc', \
166  'pfDeepDoubleCvBJetTags:probHcc', \
167  'pfMassIndependentDeepDoubleBvLJetTags:probHbb', 'pfMassIndependentDeepDoubleCvLJetTags:probHcc', 'pfMassIndependentDeepDoubleCvBJetTags:probHcc']
168  if addDeepDoubleXV2:
169  print("Updating process to run DeepDoubleXv2 on datasets before 11X")
170  _btagDiscriminators += [
171  'pfMassIndependentDeepDoubleBvLV2JetTags:probHbb',
172  'pfMassIndependentDeepDoubleCvLV2JetTags:probHcc',
173  'pfMassIndependentDeepDoubleCvBV2JetTags:probHcc'
174  ]
175  if len(_btagDiscriminators)==0: return process
176  print("Will recalculate the following discriminators on AK8 jets: "+", ".join(_btagDiscriminators))
177  updateJetCollection(
178  process,
179  jetSource = cms.InputTag('slimmedJetsAK8'),
180  pvSource = cms.InputTag('offlineSlimmedPrimaryVertices'),
181  svSource = cms.InputTag('slimmedSecondaryVertices'),
182  rParam = 0.8,
183  jetCorrections = (jecPayload.value(), cms.vstring(['L1FastJet', 'L2Relative', 'L3Absolute', 'L2L3Residual']), 'None'),
184  btagDiscriminators = _btagDiscriminators,
185  postfix='AK8WithDeepInfo',
186  printWarning = False
187  )
188  process.jetCorrFactorsAK8.src="selectedUpdatedPatJetsAK8WithDeepInfo"
189  process.updatedJetsAK8.jetSource="selectedUpdatedPatJetsAK8WithDeepInfo"
190  return process
191 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def nanoAOD_addDeepInfoAK8(process, addDeepBTag, addDeepBoostedJet, addDeepDoubleX, addDeepDoubleXV2, addParticleNet, addParticleNetMass, jecPayload)
Definition: jetsAK8_cff.py:146
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

Variable Documentation

◆ addBTagInfo

jetsAK8_cff.addBTagInfo

Definition at line 21 of file jetsAK8_cff.py.

◆ addDiscriminators

jetsAK8_cff.addDiscriminators

Definition at line 30 of file jetsAK8_cff.py.

◆ addJetCorrFactors

jetsAK8_cff.addJetCorrFactors

Definition at line 31 of file jetsAK8_cff.py.

◆ addTagInfos

jetsAK8_cff.addTagInfos

Definition at line 32 of file jetsAK8_cff.py.

◆ area

jetsAK8_cff.area

Definition at line 85 of file jetsAK8_cff.py.

◆ btagCSVV2

jetsAK8_cff.btagCSVV2

Definition at line 95 of file jetsAK8_cff.py.

◆ btagDDBvLV2

jetsAK8_cff.btagDDBvLV2

Definition at line 97 of file jetsAK8_cff.py.

◆ btagDDCvBV2

jetsAK8_cff.btagDDCvBV2

Definition at line 99 of file jetsAK8_cff.py.

◆ btagDDCvLV2

jetsAK8_cff.btagDDCvLV2

Definition at line 98 of file jetsAK8_cff.py.

◆ btagDeepB

jetsAK8_cff.btagDeepB

Definition at line 94 of file jetsAK8_cff.py.

◆ btagHbb

jetsAK8_cff.btagHbb

Definition at line 96 of file jetsAK8_cff.py.

◆ cut

jetsAK8_cff.cut

Definition at line 68 of file jetsAK8_cff.py.

◆ deepTag_H

jetsAK8_cff.deepTag_H

Definition at line 103 of file jetsAK8_cff.py.

◆ deepTag_QCD

jetsAK8_cff.deepTag_QCD

Definition at line 104 of file jetsAK8_cff.py.

◆ deepTag_QCDothers

jetsAK8_cff.deepTag_QCDothers

Definition at line 105 of file jetsAK8_cff.py.

◆ deepTag_TvsQCD

jetsAK8_cff.deepTag_TvsQCD

Definition at line 100 of file jetsAK8_cff.py.

◆ deepTag_WvsQCD

jetsAK8_cff.deepTag_WvsQCD

Definition at line 101 of file jetsAK8_cff.py.

◆ deepTag_ZvsQCD

jetsAK8_cff.deepTag_ZvsQCD

Definition at line 102 of file jetsAK8_cff.py.

◆ deepTagMD_bbvsLight

jetsAK8_cff.deepTagMD_bbvsLight

Definition at line 114 of file jetsAK8_cff.py.

◆ deepTagMD_ccvsLight

jetsAK8_cff.deepTagMD_ccvsLight

Definition at line 115 of file jetsAK8_cff.py.

◆ deepTagMD_H4qvsQCD

jetsAK8_cff.deepTagMD_H4qvsQCD

Definition at line 113 of file jetsAK8_cff.py.

◆ deepTagMD_HbbvsQCD

jetsAK8_cff.deepTagMD_HbbvsQCD

Definition at line 111 of file jetsAK8_cff.py.

◆ deepTagMD_TvsQCD

jetsAK8_cff.deepTagMD_TvsQCD

Definition at line 106 of file jetsAK8_cff.py.

◆ deepTagMD_WvsQCD

jetsAK8_cff.deepTagMD_WvsQCD

Definition at line 107 of file jetsAK8_cff.py.

◆ deepTagMD_ZbbvsQCD

jetsAK8_cff.deepTagMD_ZbbvsQCD

Definition at line 110 of file jetsAK8_cff.py.

◆ deepTagMD_ZHbbvsQCD

jetsAK8_cff.deepTagMD_ZHbbvsQCD

Definition at line 109 of file jetsAK8_cff.py.

◆ deepTagMD_ZHccvsQCD

jetsAK8_cff.deepTagMD_ZHccvsQCD

Definition at line 112 of file jetsAK8_cff.py.

◆ deepTagMD_ZvsQCD

jetsAK8_cff.deepTagMD_ZvsQCD

Definition at line 108 of file jetsAK8_cff.py.

◆ discriminatorSources

jetsAK8_cff.discriminatorSources

Definition at line 33 of file jetsAK8_cff.py.

◆ doc

jetsAK8_cff.doc

Definition at line 82 of file jetsAK8_cff.py.

◆ electronIdx3SJ

jetsAK8_cff.electronIdx3SJ

Definition at line 137 of file jetsAK8_cff.py.

◆ emf

jetsAK8_cff.emf

Definition at line 9 of file jetsAK8_cff.py.

◆ extension

jetsAK8_cff.extension

Definition at line 115 of file jetsAK8_cff.py.

◆ externalVariables

jetsAK8_cff.externalVariables

Definition at line 134 of file jetsAK8_cff.py.

◆ extraJPTOffset

jetsAK8_cff.extraJPTOffset

Definition at line 10 of file jetsAK8_cff.py.

◆ fatJetTable

jetsAK8_cff.fatJetTable

Definition at line 78 of file jetsAK8_cff.py.

◆ filterParams

jetsAK8_cff.filterParams

Definition at line 30 of file jetsAK8_cff.py.

◆ finalJetsAK8

jetsAK8_cff.finalJetsAK8

Definition at line 66 of file jetsAK8_cff.py.

◆ flavorType

jetsAK8_cff.flavorType

Definition at line 11 of file jetsAK8_cff.py.

◆ float

jetsAK8_cff.float

Definition at line 85 of file jetsAK8_cff.py.

◆ int

jetsAK8_cff.int

Definition at line 84 of file jetsAK8_cff.py.

◆ jecPayload

jetsAK8_cff.jecPayload

Definition at line 199 of file jetsAK8_cff.py.

◆ jetAK8LepTask

jetsAK8_cff.jetAK8LepTask

Definition at line 236 of file jetsAK8_cff.py.

◆ jetAK8TablesTask

jetsAK8_cff.jetAK8TablesTask

Definition at line 238 of file jetsAK8_cff.py.

◆ jetAK8Task

jetsAK8_cff.jetAK8Task

Definition at line 233 of file jetsAK8_cff.py.

◆ jetAK8UserDataTask

jetsAK8_cff.jetAK8UserDataTask

Definition at line 232 of file jetsAK8_cff.py.

◆ jetCorrFactorsAK8

jetsAK8_cff.jetCorrFactorsAK8

Definition at line 10 of file jetsAK8_cff.py.

◆ jetCorrFactorsSource

jetsAK8_cff.jetCorrFactorsSource

Definition at line 23 of file jetsAK8_cff.py.

◆ jetId

jetsAK8_cff.jetId

Definition at line 84 of file jetsAK8_cff.py.

◆ jetSource

jetsAK8_cff.jetSource

Definition at line 22 of file jetsAK8_cff.py.

◆ lepInAK8JetVars

jetsAK8_cff.lepInAK8JetVars

Definition at line 72 of file jetsAK8_cff.py.

◆ levels

jetsAK8_cff.levels

Definition at line 11 of file jetsAK8_cff.py.

◆ looseJetIdAK8

jetsAK8_cff.looseJetIdAK8

Definition at line 29 of file jetsAK8_cff.py.

◆ lsf3

jetsAK8_cff.lsf3

Definition at line 135 of file jetsAK8_cff.py.

◆ mightGet

jetsAK8_cff.mightGet

Definition at line 18 of file jetsAK8_cff.py.

◆ msoftdrop

jetsAK8_cff.msoftdrop

Definition at line 93 of file jetsAK8_cff.py.

◆ muonIdx3SJ

jetsAK8_cff.muonIdx3SJ

Definition at line 136 of file jetsAK8_cff.py.

◆ n2b1

jetsAK8_cff.n2b1

Definition at line 91 of file jetsAK8_cff.py.

◆ n3b1

jetsAK8_cff.n3b1

Definition at line 92 of file jetsAK8_cff.py.

◆ name

jetsAK8_cff.name

Definition at line 81 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepBoostedJet_switch

jetsAK8_cff.nanoAOD_addDeepBoostedJet_switch

Definition at line 194 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepBTag_switch

jetsAK8_cff.nanoAOD_addDeepBTag_switch

Definition at line 193 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepDoubleX_switch

jetsAK8_cff.nanoAOD_addDeepDoubleX_switch

Definition at line 195 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepDoubleXV2_switch

jetsAK8_cff.nanoAOD_addDeepDoubleXV2_switch

Definition at line 196 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepInfoAK8_switch

jetsAK8_cff.nanoAOD_addDeepInfoAK8_switch

Definition at line 192 of file jetsAK8_cff.py.

◆ nanoAOD_addParticleNet_switch

jetsAK8_cff.nanoAOD_addParticleNet_switch

Definition at line 197 of file jetsAK8_cff.py.

◆ nanoAOD_addParticleNetMass_switch

jetsAK8_cff.nanoAOD_addParticleNetMass_switch

Definition at line 198 of file jetsAK8_cff.py.

◆ nConstituents

jetsAK8_cff.nConstituents

Definition at line 132 of file jetsAK8_cff.py.

◆ particleNet_H4qvsQCD

jetsAK8_cff.particleNet_H4qvsQCD

Definition at line 121 of file jetsAK8_cff.py.

◆ particleNet_HbbvsQCD

jetsAK8_cff.particleNet_HbbvsQCD

Definition at line 119 of file jetsAK8_cff.py.

◆ particleNet_HccvsQCD

jetsAK8_cff.particleNet_HccvsQCD

Definition at line 120 of file jetsAK8_cff.py.

◆ particleNet_mass

jetsAK8_cff.particleNet_mass

Definition at line 123 of file jetsAK8_cff.py.

◆ particleNet_QCD

jetsAK8_cff.particleNet_QCD

Definition at line 122 of file jetsAK8_cff.py.

◆ particleNet_TvsQCD

jetsAK8_cff.particleNet_TvsQCD

Definition at line 116 of file jetsAK8_cff.py.

◆ particleNet_WvsQCD

jetsAK8_cff.particleNet_WvsQCD

Definition at line 117 of file jetsAK8_cff.py.

◆ particleNet_ZvsQCD

jetsAK8_cff.particleNet_ZvsQCD

Definition at line 118 of file jetsAK8_cff.py.

◆ particleNetMD_QCD

jetsAK8_cff.particleNetMD_QCD

Definition at line 127 of file jetsAK8_cff.py.

◆ particleNetMD_Xbb

jetsAK8_cff.particleNetMD_Xbb

Definition at line 124 of file jetsAK8_cff.py.

◆ particleNetMD_Xcc

jetsAK8_cff.particleNetMD_Xcc

Definition at line 125 of file jetsAK8_cff.py.

◆ particleNetMD_Xqq

jetsAK8_cff.particleNetMD_Xqq

Definition at line 126 of file jetsAK8_cff.py.

◆ payload

jetsAK8_cff.payload

Definition at line 15 of file jetsAK8_cff.py.

◆ precision

jetsAK8_cff.precision

Definition at line 85 of file jetsAK8_cff.py.

◆ primaryVertices

jetsAK8_cff.primaryVertices

Definition at line 16 of file jetsAK8_cff.py.

◆ printWarning

jetsAK8_cff.printWarning

Definition at line 37 of file jetsAK8_cff.py.

◆ quality

jetsAK8_cff.quality

Definition at line 32 of file jetsAK8_cff.py.

◆ rawFactor

jetsAK8_cff.rawFactor

Definition at line 86 of file jetsAK8_cff.py.

◆ rho

jetsAK8_cff.rho

Definition at line 21 of file jetsAK8_cff.py.

◆ singleton

jetsAK8_cff.singleton

Definition at line 114 of file jetsAK8_cff.py.

◆ sort

jetsAK8_cff.sort

Definition at line 38 of file jetsAK8_cff.py.

◆ src

jetsAK8_cff.src

Definition at line 10 of file jetsAK8_cff.py.

◆ srcEle

jetsAK8_cff.srcEle

Definition at line 74 of file jetsAK8_cff.py.

◆ srcMu

jetsAK8_cff.srcMu

Definition at line 75 of file jetsAK8_cff.py.

◆ subJetIdx1

jetsAK8_cff.subJetIdx1

Definition at line 128 of file jetsAK8_cff.py.

◆ subJetIdx2

jetsAK8_cff.subJetIdx2

Definition at line 130 of file jetsAK8_cff.py.

◆ subJetTable

jetsAK8_cff.subJetTable

DeepInfoAK8:End.

Definition at line 211 of file jetsAK8_cff.py.

◆ tagInfoSources

jetsAK8_cff.tagInfoSources

Definition at line 39 of file jetsAK8_cff.py.

◆ tau1

jetsAK8_cff.tau1

◆ tau2

jetsAK8_cff.tau2

◆ tau3

jetsAK8_cff.tau3

◆ tau4

jetsAK8_cff.tau4

◆ tightId

jetsAK8_cff.tightId

Definition at line 61 of file jetsAK8_cff.py.

◆ tightIdLepVeto

jetsAK8_cff.tightIdLepVeto

Definition at line 62 of file jetsAK8_cff.py.

◆ tightJetIdAK8

jetsAK8_cff.tightJetIdAK8

Definition at line 36 of file jetsAK8_cff.py.

◆ tightJetIdLepVetoAK8

jetsAK8_cff.tightJetIdLepVetoAK8

Definition at line 43 of file jetsAK8_cff.py.

◆ updatedJetsAK8

jetsAK8_cff.updatedJetsAK8

Definition at line 20 of file jetsAK8_cff.py.

◆ updatedJetsAK8WithUserData

jetsAK8_cff.updatedJetsAK8WithUserData

Definition at line 57 of file jetsAK8_cff.py.

◆ useNPV

jetsAK8_cff.useNPV

Definition at line 23 of file jetsAK8_cff.py.

◆ userCands

jetsAK8_cff.userCands

Definition at line 41 of file jetsAK8_cff.py.

◆ userClasses

jetsAK8_cff.userClasses

Definition at line 44 of file jetsAK8_cff.py.

◆ userData

jetsAK8_cff.userData

Definition at line 40 of file jetsAK8_cff.py.

◆ userFloats

jetsAK8_cff.userFloats

Definition at line 59 of file jetsAK8_cff.py.

◆ userFunctionLabels

jetsAK8_cff.userFunctionLabels

Definition at line 50 of file jetsAK8_cff.py.

◆ userFunctions

jetsAK8_cff.userFunctions

Definition at line 51 of file jetsAK8_cff.py.

◆ useRho

jetsAK8_cff.useRho

Definition at line 24 of file jetsAK8_cff.py.

◆ userInts

jetsAK8_cff.userInts

Definition at line 60 of file jetsAK8_cff.py.

◆ variables

jetsAK8_cff.variables

Definition at line 83 of file jetsAK8_cff.py.

◆ version

jetsAK8_cff.version

Definition at line 31 of file jetsAK8_cff.py.