CMS 3D CMS Logo

Functions | Variables
jetsAK8_cff Namespace Reference

Functions

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

Variables

 addBTagInfo
 
 area
 
 btagCSVV2
 
 btagDDBvLV2
 
 btagDDCvBV2
 
 btagDDCvLV2
 
 btagDeepB
 
 btagHbb
 
 chEmEF
 
 chHEF
 
 chMultiplicity
 
 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
 
 muEF
 
 muonIdx3SJ
 
 n2b1
 
 n3b1
 
 name
 
 nanoAOD_addDeepBoostedJet_switch
 
 nanoAOD_addDeepBTag_switch
 
 nanoAOD_addDeepDoubleX_switch
 
 nanoAOD_addDeepDoubleXV2_switch
 
 nanoAOD_addDeepInfoAK8_switch
 
 nanoAOD_addParticleNet_switch
 
 nanoAOD_addParticleNetMassLegacy_switch
 
 nConstituents
 
 neEmEF
 
 neHEF
 
 neMultiplicity
 
 particleNet_massCorr
 
 particleNet_QCD
 
 particleNet_QCD0HF
 
 particleNet_QCD1HF
 
 particleNet_QCD2HF
 
 particleNet_XbbVsQCD
 
 particleNet_XccVsQCD
 
 particleNet_XggVsQCD
 
 particleNet_XqqVsQCD
 
 particleNet_XteVsQCD
 
 particleNet_XtmVsQCD
 
 particleNet_XttVsQCD
 
 particleNetLegacy_mass
 
 particleNetLegacy_QCD
 
 particleNetLegacy_Xbb
 
 particleNetLegacy_Xcc
 
 particleNetLegacy_Xqq
 
 particleNetWithMass_H4qvsQCD
 
 particleNetWithMass_HbbvsQCD
 
 particleNetWithMass_HccvsQCD
 
 particleNetWithMass_QCD
 
 particleNetWithMass_TvsQCD
 
 particleNetWithMass_WvsQCD
 
 particleNetWithMass_ZvsQCD
 
 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,
  addParticleNetMassLegacy,
  addParticleNet,
  jecPayload 
)

Definition at line 218 of file jetsAK8_cff.py.

References join(), and print().

Referenced by nano_cff.nanoAOD_customizeCommon().

218 def nanoAOD_addDeepInfoAK8(process, addDeepBTag, addDeepBoostedJet, addDeepDoubleX, addDeepDoubleXV2, addParticleNetMassLegacy, addParticleNet, jecPayload):
219  _btagDiscriminators=[]
220  if addDeepBTag:
221  print("Updating process to run DeepCSV btag to AK8 jets")
222  _btagDiscriminators += ['pfDeepCSVJetTags:probb','pfDeepCSVJetTags:probbb']
223  if addDeepBoostedJet:
224  print("Updating process to run DeepBoostedJet on datasets before 103X")
225  from RecoBTag.ONNXRuntime.pfDeepBoostedJet_cff import _pfDeepBoostedJetTagsAll as pfDeepBoostedJetTagsAll
226  _btagDiscriminators += pfDeepBoostedJetTagsAll
227  if addParticleNet:
228  print("Updating process to run ParticleNet joint classification and mass regression")
229  from RecoBTag.ONNXRuntime.pfParticleNetFromMiniAODAK8_cff import _pfParticleNetFromMiniAODAK8JetTagsAll as pfParticleNetFromMiniAODAK8JetTagsAll
230  _btagDiscriminators += pfParticleNetFromMiniAODAK8JetTagsAll
231  if addParticleNetMassLegacy:
232  from RecoBTag.ONNXRuntime.pfParticleNet_cff import _pfParticleNetMassRegressionOutputs
233  _btagDiscriminators += _pfParticleNetMassRegressionOutputs
234  if addDeepDoubleX:
235  print("Updating process to run DeepDoubleX on datasets before 104X")
236  _btagDiscriminators += ['pfDeepDoubleBvLJetTags:probHbb', \
237  'pfDeepDoubleCvLJetTags:probHcc', \
238  'pfDeepDoubleCvBJetTags:probHcc', \
239  'pfMassIndependentDeepDoubleBvLJetTags:probHbb', 'pfMassIndependentDeepDoubleCvLJetTags:probHcc', 'pfMassIndependentDeepDoubleCvBJetTags:probHcc']
240  if addDeepDoubleXV2:
241  print("Updating process to run DeepDoubleXv2 on datasets before 11X")
242  _btagDiscriminators += [
243  'pfMassIndependentDeepDoubleBvLV2JetTags:probHbb',
244  'pfMassIndependentDeepDoubleCvLV2JetTags:probHcc',
245  'pfMassIndependentDeepDoubleCvBV2JetTags:probHcc'
246  ]
247  if len(_btagDiscriminators)==0: return process
248  print("Will recalculate the following discriminators on AK8 jets: "+", ".join(_btagDiscriminators))
249  updateJetCollection(
250  process,
251  jetSource = cms.InputTag('slimmedJetsAK8'),
252  pvSource = cms.InputTag('offlineSlimmedPrimaryVertices'),
253  svSource = cms.InputTag('slimmedSecondaryVertices'),
254  rParam = 0.8,
255  jetCorrections = (jecPayload.value(), cms.vstring(['L1FastJet', 'L2Relative', 'L3Absolute', 'L2L3Residual']), 'None'),
256  btagDiscriminators = _btagDiscriminators,
257  postfix='AK8WithDeepInfo',
258  printWarning = False
259  )
260  process.jetCorrFactorsAK8.src="selectedUpdatedPatJetsAK8WithDeepInfo"
261  process.updatedJetsAK8.jetSource="selectedUpdatedPatJetsAK8WithDeepInfo"
262  return process
263 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def nanoAOD_addDeepInfoAK8(process, addDeepBTag, addDeepBoostedJet, addDeepDoubleX, addDeepDoubleXV2, addParticleNetMassLegacy, addParticleNet, jecPayload)
Definition: jetsAK8_cff.py:218
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 147 of file jetsAK8_cff.py.

◆ btagDDBvLV2

jetsAK8_cff.btagDDBvLV2

Definition at line 187 of file jetsAK8_cff.py.

◆ btagDDCvBV2

jetsAK8_cff.btagDDCvBV2

Definition at line 189 of file jetsAK8_cff.py.

◆ btagDDCvLV2

jetsAK8_cff.btagDDCvLV2

Definition at line 188 of file jetsAK8_cff.py.

◆ btagDeepB

jetsAK8_cff.btagDeepB

Definition at line 185 of file jetsAK8_cff.py.

◆ btagHbb

jetsAK8_cff.btagHbb

Definition at line 186 of file jetsAK8_cff.py.

◆ chEmEF

jetsAK8_cff.chEmEF

Definition at line 134 of file jetsAK8_cff.py.

◆ chHEF

jetsAK8_cff.chHEF

Definition at line 132 of file jetsAK8_cff.py.

◆ chMultiplicity

jetsAK8_cff.chMultiplicity

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

◆ deepTag_QCD

jetsAK8_cff.deepTag_QCD

Definition at line 194 of file jetsAK8_cff.py.

◆ deepTag_QCDothers

jetsAK8_cff.deepTag_QCDothers

Definition at line 195 of file jetsAK8_cff.py.

◆ deepTag_TvsQCD

jetsAK8_cff.deepTag_TvsQCD

Definition at line 190 of file jetsAK8_cff.py.

◆ deepTag_WvsQCD

jetsAK8_cff.deepTag_WvsQCD

Definition at line 191 of file jetsAK8_cff.py.

◆ deepTag_ZvsQCD

jetsAK8_cff.deepTag_ZvsQCD

Definition at line 192 of file jetsAK8_cff.py.

◆ deepTagMD_bbvsLight

jetsAK8_cff.deepTagMD_bbvsLight

Definition at line 204 of file jetsAK8_cff.py.

◆ deepTagMD_ccvsLight

jetsAK8_cff.deepTagMD_ccvsLight

Definition at line 205 of file jetsAK8_cff.py.

◆ deepTagMD_H4qvsQCD

jetsAK8_cff.deepTagMD_H4qvsQCD

Definition at line 203 of file jetsAK8_cff.py.

◆ deepTagMD_HbbvsQCD

jetsAK8_cff.deepTagMD_HbbvsQCD

Definition at line 201 of file jetsAK8_cff.py.

◆ deepTagMD_TvsQCD

jetsAK8_cff.deepTagMD_TvsQCD

Definition at line 196 of file jetsAK8_cff.py.

◆ deepTagMD_WvsQCD

jetsAK8_cff.deepTagMD_WvsQCD

Definition at line 197 of file jetsAK8_cff.py.

◆ deepTagMD_ZbbvsQCD

jetsAK8_cff.deepTagMD_ZbbvsQCD

Definition at line 200 of file jetsAK8_cff.py.

◆ deepTagMD_ZHbbvsQCD

jetsAK8_cff.deepTagMD_ZHbbvsQCD

Definition at line 199 of file jetsAK8_cff.py.

◆ deepTagMD_ZHccvsQCD

jetsAK8_cff.deepTagMD_ZHccvsQCD

Definition at line 202 of file jetsAK8_cff.py.

◆ deepTagMD_ZvsQCD

jetsAK8_cff.deepTagMD_ZvsQCD

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

◆ externalVariables

jetsAK8_cff.externalVariables

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

◆ jetAK8LepTask

jetsAK8_cff.jetAK8LepTask

Definition at line 322 of file jetsAK8_cff.py.

◆ jetAK8TablesTask

jetsAK8_cff.jetAK8TablesTask

Definition at line 324 of file jetsAK8_cff.py.

◆ jetAK8Task

jetsAK8_cff.jetAK8Task

Definition at line 319 of file jetsAK8_cff.py.

◆ jetAK8UserDataTask

jetsAK8_cff.jetAK8UserDataTask

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

◆ msoftdrop

jetsAK8_cff.msoftdrop

Definition at line 105 of file jetsAK8_cff.py.

◆ muEF

jetsAK8_cff.muEF

Definition at line 136 of file jetsAK8_cff.py.

◆ muonIdx3SJ

jetsAK8_cff.muonIdx3SJ

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

◆ nanoAOD_addDeepBTag_switch

jetsAK8_cff.nanoAOD_addDeepBTag_switch

Definition at line 265 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepDoubleX_switch

jetsAK8_cff.nanoAOD_addDeepDoubleX_switch

Definition at line 267 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepDoubleXV2_switch

jetsAK8_cff.nanoAOD_addDeepDoubleXV2_switch

Definition at line 268 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepInfoAK8_switch

jetsAK8_cff.nanoAOD_addDeepInfoAK8_switch

Definition at line 264 of file jetsAK8_cff.py.

◆ nanoAOD_addParticleNet_switch

jetsAK8_cff.nanoAOD_addParticleNet_switch

Definition at line 269 of file jetsAK8_cff.py.

◆ nanoAOD_addParticleNetMassLegacy_switch

jetsAK8_cff.nanoAOD_addParticleNetMassLegacy_switch

Definition at line 270 of file jetsAK8_cff.py.

◆ nConstituents

jetsAK8_cff.nConstituents

Definition at line 129 of file jetsAK8_cff.py.

◆ neEmEF

jetsAK8_cff.neEmEF

Definition at line 135 of file jetsAK8_cff.py.

◆ neHEF

jetsAK8_cff.neHEF

Definition at line 133 of file jetsAK8_cff.py.

◆ neMultiplicity

jetsAK8_cff.neMultiplicity

Definition at line 131 of file jetsAK8_cff.py.

◆ particleNet_massCorr

jetsAK8_cff.particleNet_massCorr

Definition at line 117 of file jetsAK8_cff.py.

◆ particleNet_QCD

jetsAK8_cff.particleNet_QCD

Definition at line 113 of file jetsAK8_cff.py.

◆ particleNet_QCD0HF

jetsAK8_cff.particleNet_QCD0HF

Definition at line 116 of file jetsAK8_cff.py.

◆ particleNet_QCD1HF

jetsAK8_cff.particleNet_QCD1HF

Definition at line 115 of file jetsAK8_cff.py.

◆ particleNet_QCD2HF

jetsAK8_cff.particleNet_QCD2HF

Definition at line 114 of file jetsAK8_cff.py.

◆ particleNet_XbbVsQCD

jetsAK8_cff.particleNet_XbbVsQCD

Definition at line 118 of file jetsAK8_cff.py.

◆ particleNet_XccVsQCD

jetsAK8_cff.particleNet_XccVsQCD

Definition at line 119 of file jetsAK8_cff.py.

◆ particleNet_XggVsQCD

jetsAK8_cff.particleNet_XggVsQCD

Definition at line 121 of file jetsAK8_cff.py.

◆ particleNet_XqqVsQCD

jetsAK8_cff.particleNet_XqqVsQCD

Definition at line 120 of file jetsAK8_cff.py.

◆ particleNet_XteVsQCD

jetsAK8_cff.particleNet_XteVsQCD

Definition at line 124 of file jetsAK8_cff.py.

◆ particleNet_XtmVsQCD

jetsAK8_cff.particleNet_XtmVsQCD

Definition at line 123 of file jetsAK8_cff.py.

◆ particleNet_XttVsQCD

jetsAK8_cff.particleNet_XttVsQCD

Definition at line 122 of file jetsAK8_cff.py.

◆ particleNetLegacy_mass

jetsAK8_cff.particleNetLegacy_mass

Definition at line 206 of file jetsAK8_cff.py.

◆ particleNetLegacy_QCD

jetsAK8_cff.particleNetLegacy_QCD

Definition at line 210 of file jetsAK8_cff.py.

◆ particleNetLegacy_Xbb

jetsAK8_cff.particleNetLegacy_Xbb

Definition at line 207 of file jetsAK8_cff.py.

◆ particleNetLegacy_Xcc

jetsAK8_cff.particleNetLegacy_Xcc

Definition at line 208 of file jetsAK8_cff.py.

◆ particleNetLegacy_Xqq

jetsAK8_cff.particleNetLegacy_Xqq

Definition at line 209 of file jetsAK8_cff.py.

◆ particleNetWithMass_H4qvsQCD

jetsAK8_cff.particleNetWithMass_H4qvsQCD

Definition at line 110 of file jetsAK8_cff.py.

◆ particleNetWithMass_HbbvsQCD

jetsAK8_cff.particleNetWithMass_HbbvsQCD

Definition at line 111 of file jetsAK8_cff.py.

◆ particleNetWithMass_HccvsQCD

jetsAK8_cff.particleNetWithMass_HccvsQCD

Definition at line 112 of file jetsAK8_cff.py.

◆ particleNetWithMass_QCD

jetsAK8_cff.particleNetWithMass_QCD

Definition at line 106 of file jetsAK8_cff.py.

◆ particleNetWithMass_TvsQCD

jetsAK8_cff.particleNetWithMass_TvsQCD

Definition at line 107 of file jetsAK8_cff.py.

◆ particleNetWithMass_WvsQCD

jetsAK8_cff.particleNetWithMass_WvsQCD

Definition at line 108 of file jetsAK8_cff.py.

◆ particleNetWithMass_ZvsQCD

jetsAK8_cff.particleNetWithMass_ZvsQCD

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

◆ subJetIdx2

jetsAK8_cff.subJetIdx2

Definition at line 127 of file jetsAK8_cff.py.

◆ subJetTable

jetsAK8_cff.subJetTable

DeepInfoAK8:End.

Definition at line 287 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.