CMS 3D CMS Logo

Functions | Variables
jetsAK8_cff Namespace Reference

Functions

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

Variables

 addBTagInfo
 
 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
 
 doc
 
 electronIdx3SJ
 
 externalVariables
 
 fatJetTable
 
 filterParams
 
 finalJetsAK8
 
 float
 
 jecPayload
 
 jetAK8LepTask
 
 jetAK8TablesTask
 
 jetAK8Task
 
 jetAK8UserDataTask
 
 jetCorrFactorsAK8
 
 jetCorrFactorsSource
 
 jetId
 
 jetSource
 
 lepInAK8JetVars
 
 levels
 
 looseJetIdAK8
 
 lsf3
 
 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
 
 quality
 
 rawFactor
 
 src
 
 srcEle
 
 srcMu
 
 subJetIdx1
 
 subJetIdx2
 
 subJetTable
 DeepInfoAK8:End. More...
 
 tau1
 
 tau2
 
 tau3
 
 tau4
 
 tightId
 
 tightIdLepVeto
 
 tightJetIdAK8
 
 tightJetIdLepVetoAK8
 
 updatedJetsAK8
 
 updatedJetsAK8WithUserData
 
 userFloats
 
 userInts
 
 variables
 
 version
 

Function Documentation

◆ nanoAOD_addDeepInfoAK8()

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

Definition at line 162 of file jetsAK8_cff.py.

References join(), and print().

Referenced by nano_cff.nanoAOD_customizeCommon().

162 def nanoAOD_addDeepInfoAK8(process, addDeepBTag, addDeepBoostedJet, addDeepDoubleX, addDeepDoubleXV2, addParticleNet, addParticleNetMass, jecPayload):
163  _btagDiscriminators=[]
164  if addDeepBTag:
165  print("Updating process to run DeepCSV btag to AK8 jets")
166  _btagDiscriminators += ['pfDeepCSVJetTags:probb','pfDeepCSVJetTags:probbb']
167  if addDeepBoostedJet:
168  print("Updating process to run DeepBoostedJet on datasets before 103X")
169  from RecoBTag.ONNXRuntime.pfDeepBoostedJet_cff import _pfDeepBoostedJetTagsAll as pfDeepBoostedJetTagsAll
170  _btagDiscriminators += pfDeepBoostedJetTagsAll
171  if addParticleNet:
172  print("Updating process to run ParticleNet before it's included in MiniAOD")
173  from RecoBTag.ONNXRuntime.pfParticleNet_cff import _pfParticleNetJetTagsAll as pfParticleNetJetTagsAll
174  _btagDiscriminators += pfParticleNetJetTagsAll
175  if addParticleNetMass:
176  from RecoBTag.ONNXRuntime.pfParticleNet_cff import _pfParticleNetMassRegressionOutputs
177  _btagDiscriminators += _pfParticleNetMassRegressionOutputs
178  if addDeepDoubleX:
179  print("Updating process to run DeepDoubleX on datasets before 104X")
180  _btagDiscriminators += ['pfDeepDoubleBvLJetTags:probHbb', \
181  'pfDeepDoubleCvLJetTags:probHcc', \
182  'pfDeepDoubleCvBJetTags:probHcc', \
183  'pfMassIndependentDeepDoubleBvLJetTags:probHbb', 'pfMassIndependentDeepDoubleCvLJetTags:probHcc', 'pfMassIndependentDeepDoubleCvBJetTags:probHcc']
184  if addDeepDoubleXV2:
185  print("Updating process to run DeepDoubleXv2 on datasets before 11X")
186  _btagDiscriminators += [
187  'pfMassIndependentDeepDoubleBvLV2JetTags:probHbb',
188  'pfMassIndependentDeepDoubleCvLV2JetTags:probHcc',
189  'pfMassIndependentDeepDoubleCvBV2JetTags:probHcc'
190  ]
191  if len(_btagDiscriminators)==0: return process
192  print("Will recalculate the following discriminators on AK8 jets: "+", ".join(_btagDiscriminators))
193  updateJetCollection(
194  process,
195  jetSource = cms.InputTag('slimmedJetsAK8'),
196  pvSource = cms.InputTag('offlineSlimmedPrimaryVertices'),
197  svSource = cms.InputTag('slimmedSecondaryVertices'),
198  rParam = 0.8,
199  jetCorrections = (jecPayload.value(), cms.vstring(['L1FastJet', 'L2Relative', 'L3Absolute', 'L2L3Residual']), 'None'),
200  btagDiscriminators = _btagDiscriminators,
201  postfix='AK8WithDeepInfo',
202  printWarning = False
203  )
204  process.jetCorrFactorsAK8.src="selectedUpdatedPatJetsAK8WithDeepInfo"
205  process.updatedJetsAK8.jetSource="selectedUpdatedPatJetsAK8WithDeepInfo"
206  return process
207 
def nanoAOD_addDeepInfoAK8(process, addDeepBTag, addDeepBoostedJet, addDeepDoubleX, addDeepDoubleXV2, addParticleNet, addParticleNetMass, jecPayload)
Definition: jetsAK8_cff.py:162
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
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.

◆ area

jetsAK8_cff.area

Definition at line 97 of file jetsAK8_cff.py.

◆ btagCSVV2

jetsAK8_cff.btagCSVV2

Definition at line 154 of file jetsAK8_cff.py.

◆ btagDDBvLV2

jetsAK8_cff.btagDDBvLV2

Definition at line 108 of file jetsAK8_cff.py.

◆ btagDDCvBV2

jetsAK8_cff.btagDDCvBV2

Definition at line 110 of file jetsAK8_cff.py.

◆ btagDDCvLV2

jetsAK8_cff.btagDDCvLV2

Definition at line 109 of file jetsAK8_cff.py.

◆ btagDeepB

jetsAK8_cff.btagDeepB

Definition at line 106 of file jetsAK8_cff.py.

◆ btagHbb

jetsAK8_cff.btagHbb

Definition at line 107 of file jetsAK8_cff.py.

◆ cut

jetsAK8_cff.cut

Definition at line 80 of file jetsAK8_cff.py.

◆ deepTag_H

jetsAK8_cff.deepTag_H

Definition at line 114 of file jetsAK8_cff.py.

◆ deepTag_QCD

jetsAK8_cff.deepTag_QCD

Definition at line 115 of file jetsAK8_cff.py.

◆ deepTag_QCDothers

jetsAK8_cff.deepTag_QCDothers

Definition at line 116 of file jetsAK8_cff.py.

◆ deepTag_TvsQCD

jetsAK8_cff.deepTag_TvsQCD

Definition at line 111 of file jetsAK8_cff.py.

◆ deepTag_WvsQCD

jetsAK8_cff.deepTag_WvsQCD

Definition at line 112 of file jetsAK8_cff.py.

◆ deepTag_ZvsQCD

jetsAK8_cff.deepTag_ZvsQCD

Definition at line 113 of file jetsAK8_cff.py.

◆ deepTagMD_bbvsLight

jetsAK8_cff.deepTagMD_bbvsLight

Definition at line 125 of file jetsAK8_cff.py.

◆ deepTagMD_ccvsLight

jetsAK8_cff.deepTagMD_ccvsLight

Definition at line 126 of file jetsAK8_cff.py.

◆ deepTagMD_H4qvsQCD

jetsAK8_cff.deepTagMD_H4qvsQCD

Definition at line 124 of file jetsAK8_cff.py.

◆ deepTagMD_HbbvsQCD

jetsAK8_cff.deepTagMD_HbbvsQCD

Definition at line 122 of file jetsAK8_cff.py.

◆ deepTagMD_TvsQCD

jetsAK8_cff.deepTagMD_TvsQCD

Definition at line 117 of file jetsAK8_cff.py.

◆ deepTagMD_WvsQCD

jetsAK8_cff.deepTagMD_WvsQCD

Definition at line 118 of file jetsAK8_cff.py.

◆ deepTagMD_ZbbvsQCD

jetsAK8_cff.deepTagMD_ZbbvsQCD

Definition at line 121 of file jetsAK8_cff.py.

◆ deepTagMD_ZHbbvsQCD

jetsAK8_cff.deepTagMD_ZHbbvsQCD

Definition at line 120 of file jetsAK8_cff.py.

◆ deepTagMD_ZHccvsQCD

jetsAK8_cff.deepTagMD_ZHccvsQCD

Definition at line 123 of file jetsAK8_cff.py.

◆ deepTagMD_ZvsQCD

jetsAK8_cff.deepTagMD_ZvsQCD

Definition at line 119 of file jetsAK8_cff.py.

◆ doc

jetsAK8_cff.doc

Definition at line 94 of file jetsAK8_cff.py.

◆ electronIdx3SJ

jetsAK8_cff.electronIdx3SJ

Definition at line 148 of file jetsAK8_cff.py.

◆ externalVariables

jetsAK8_cff.externalVariables

Definition at line 145 of file jetsAK8_cff.py.

◆ fatJetTable

jetsAK8_cff.fatJetTable

Definition at line 90 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 78 of file jetsAK8_cff.py.

◆ float

jetsAK8_cff.float

Definition at line 97 of file jetsAK8_cff.py.

◆ jecPayload

jetsAK8_cff.jecPayload

Definition at line 215 of file jetsAK8_cff.py.

◆ jetAK8LepTask

jetsAK8_cff.jetAK8LepTask

Definition at line 256 of file jetsAK8_cff.py.

◆ jetAK8TablesTask

jetsAK8_cff.jetAK8TablesTask

Definition at line 258 of file jetsAK8_cff.py.

◆ jetAK8Task

jetsAK8_cff.jetAK8Task

Definition at line 253 of file jetsAK8_cff.py.

◆ jetAK8UserDataTask

jetsAK8_cff.jetAK8UserDataTask

Definition at line 252 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 96 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 84 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 146 of file jetsAK8_cff.py.

◆ msoftdrop

jetsAK8_cff.msoftdrop

Definition at line 105 of file jetsAK8_cff.py.

◆ muonIdx3SJ

jetsAK8_cff.muonIdx3SJ

Definition at line 147 of file jetsAK8_cff.py.

◆ n2b1

jetsAK8_cff.n2b1

Definition at line 103 of file jetsAK8_cff.py.

◆ n3b1

jetsAK8_cff.n3b1

Definition at line 104 of file jetsAK8_cff.py.

◆ name

jetsAK8_cff.name

Definition at line 93 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepBoostedJet_switch

jetsAK8_cff.nanoAOD_addDeepBoostedJet_switch

Definition at line 210 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepBTag_switch

jetsAK8_cff.nanoAOD_addDeepBTag_switch

Definition at line 209 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepDoubleX_switch

jetsAK8_cff.nanoAOD_addDeepDoubleX_switch

Definition at line 211 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepDoubleXV2_switch

jetsAK8_cff.nanoAOD_addDeepDoubleXV2_switch

Definition at line 212 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepInfoAK8_switch

jetsAK8_cff.nanoAOD_addDeepInfoAK8_switch

Definition at line 208 of file jetsAK8_cff.py.

◆ nanoAOD_addParticleNet_switch

jetsAK8_cff.nanoAOD_addParticleNet_switch

Definition at line 213 of file jetsAK8_cff.py.

◆ nanoAOD_addParticleNetMass_switch

jetsAK8_cff.nanoAOD_addParticleNetMass_switch

Definition at line 214 of file jetsAK8_cff.py.

◆ nConstituents

jetsAK8_cff.nConstituents

Definition at line 143 of file jetsAK8_cff.py.

◆ particleNet_H4qvsQCD

jetsAK8_cff.particleNet_H4qvsQCD

Definition at line 132 of file jetsAK8_cff.py.

◆ particleNet_HbbvsQCD

jetsAK8_cff.particleNet_HbbvsQCD

Definition at line 130 of file jetsAK8_cff.py.

◆ particleNet_HccvsQCD

jetsAK8_cff.particleNet_HccvsQCD

Definition at line 131 of file jetsAK8_cff.py.

◆ particleNet_mass

jetsAK8_cff.particleNet_mass

Definition at line 134 of file jetsAK8_cff.py.

◆ particleNet_QCD

jetsAK8_cff.particleNet_QCD

Definition at line 133 of file jetsAK8_cff.py.

◆ particleNet_TvsQCD

jetsAK8_cff.particleNet_TvsQCD

Definition at line 127 of file jetsAK8_cff.py.

◆ particleNet_WvsQCD

jetsAK8_cff.particleNet_WvsQCD

Definition at line 128 of file jetsAK8_cff.py.

◆ particleNet_ZvsQCD

jetsAK8_cff.particleNet_ZvsQCD

Definition at line 129 of file jetsAK8_cff.py.

◆ particleNetMD_QCD

jetsAK8_cff.particleNetMD_QCD

Definition at line 138 of file jetsAK8_cff.py.

◆ particleNetMD_Xbb

jetsAK8_cff.particleNetMD_Xbb

Definition at line 135 of file jetsAK8_cff.py.

◆ particleNetMD_Xcc

jetsAK8_cff.particleNetMD_Xcc

Definition at line 136 of file jetsAK8_cff.py.

◆ particleNetMD_Xqq

jetsAK8_cff.particleNetMD_Xqq

Definition at line 137 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 97 of file jetsAK8_cff.py.

◆ primaryVertices

jetsAK8_cff.primaryVertices

Definition at line 16 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 98 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 86 of file jetsAK8_cff.py.

◆ srcMu

jetsAK8_cff.srcMu

Definition at line 87 of file jetsAK8_cff.py.

◆ subJetIdx1

jetsAK8_cff.subJetIdx1

Definition at line 139 of file jetsAK8_cff.py.

◆ subJetIdx2

jetsAK8_cff.subJetIdx2

Definition at line 141 of file jetsAK8_cff.py.

◆ subJetTable

jetsAK8_cff.subJetTable

DeepInfoAK8:End.

Definition at line 227 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 73 of file jetsAK8_cff.py.

◆ tightIdLepVeto

jetsAK8_cff.tightIdLepVeto

Definition at line 74 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 69 of file jetsAK8_cff.py.

◆ userFloats

jetsAK8_cff.userFloats

Definition at line 71 of file jetsAK8_cff.py.

◆ userInts

jetsAK8_cff.userInts

Definition at line 72 of file jetsAK8_cff.py.

◆ variables

jetsAK8_cff.variables

Definition at line 95 of file jetsAK8_cff.py.

◆ version

jetsAK8_cff.version

Definition at line 31 of file jetsAK8_cff.py.