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
 
 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_addParticleNetMassLegacy_switch
 
 nConstituents
 
 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 198 of file jetsAK8_cff.py.

References join(), and print().

Referenced by nano_cff.nanoAOD_customizeCommon().

198 def nanoAOD_addDeepInfoAK8(process, addDeepBTag, addDeepBoostedJet, addDeepDoubleX, addDeepDoubleXV2, addParticleNetMassLegacy, addParticleNet, jecPayload):
199  _btagDiscriminators=[]
200  if addDeepBTag:
201  print("Updating process to run DeepCSV btag to AK8 jets")
202  _btagDiscriminators += ['pfDeepCSVJetTags:probb','pfDeepCSVJetTags:probbb']
203  if addDeepBoostedJet:
204  print("Updating process to run DeepBoostedJet on datasets before 103X")
205  from RecoBTag.ONNXRuntime.pfDeepBoostedJet_cff import _pfDeepBoostedJetTagsAll as pfDeepBoostedJetTagsAll
206  _btagDiscriminators += pfDeepBoostedJetTagsAll
207  if addParticleNet:
208  print("Updating process to run ParticleNet joint classification and mass regression")
209  from RecoBTag.ONNXRuntime.pfParticleNetFromMiniAODAK8_cff import _pfParticleNetFromMiniAODAK8JetTagsAll as pfParticleNetFromMiniAODAK8JetTagsAll
210  _btagDiscriminators += pfParticleNetFromMiniAODAK8JetTagsAll
211  if addParticleNetMassLegacy:
212  from RecoBTag.ONNXRuntime.pfParticleNet_cff import _pfParticleNetMassRegressionOutputs
213  _btagDiscriminators += _pfParticleNetMassRegressionOutputs
214  if addDeepDoubleX:
215  print("Updating process to run DeepDoubleX on datasets before 104X")
216  _btagDiscriminators += ['pfDeepDoubleBvLJetTags:probHbb', \
217  'pfDeepDoubleCvLJetTags:probHcc', \
218  'pfDeepDoubleCvBJetTags:probHcc', \
219  'pfMassIndependentDeepDoubleBvLJetTags:probHbb', 'pfMassIndependentDeepDoubleCvLJetTags:probHcc', 'pfMassIndependentDeepDoubleCvBJetTags:probHcc']
220  if addDeepDoubleXV2:
221  print("Updating process to run DeepDoubleXv2 on datasets before 11X")
222  _btagDiscriminators += [
223  'pfMassIndependentDeepDoubleBvLV2JetTags:probHbb',
224  'pfMassIndependentDeepDoubleCvLV2JetTags:probHcc',
225  'pfMassIndependentDeepDoubleCvBV2JetTags:probHcc'
226  ]
227  if len(_btagDiscriminators)==0: return process
228  print("Will recalculate the following discriminators on AK8 jets: "+", ".join(_btagDiscriminators))
229  updateJetCollection(
230  process,
231  jetSource = cms.InputTag('slimmedJetsAK8'),
232  pvSource = cms.InputTag('offlineSlimmedPrimaryVertices'),
233  svSource = cms.InputTag('slimmedSecondaryVertices'),
234  rParam = 0.8,
235  jetCorrections = (jecPayload.value(), cms.vstring(['L1FastJet', 'L2Relative', 'L3Absolute', 'L2L3Residual']), 'None'),
236  btagDiscriminators = _btagDiscriminators,
237  postfix='AK8WithDeepInfo',
238  printWarning = False
239  )
240  process.jetCorrFactorsAK8.src="selectedUpdatedPatJetsAK8WithDeepInfo"
241  process.updatedJetsAK8.jetSource="selectedUpdatedPatJetsAK8WithDeepInfo"
242  return process
243 
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:198
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 145 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 171 of file jetsAK8_cff.py.

◆ deepTag_QCD

jetsAK8_cff.deepTag_QCD

Definition at line 172 of file jetsAK8_cff.py.

◆ deepTag_QCDothers

jetsAK8_cff.deepTag_QCDothers

Definition at line 173 of file jetsAK8_cff.py.

◆ deepTag_TvsQCD

jetsAK8_cff.deepTag_TvsQCD

Definition at line 168 of file jetsAK8_cff.py.

◆ deepTag_WvsQCD

jetsAK8_cff.deepTag_WvsQCD

Definition at line 169 of file jetsAK8_cff.py.

◆ deepTag_ZvsQCD

jetsAK8_cff.deepTag_ZvsQCD

Definition at line 170 of file jetsAK8_cff.py.

◆ deepTagMD_bbvsLight

jetsAK8_cff.deepTagMD_bbvsLight

Definition at line 182 of file jetsAK8_cff.py.

◆ deepTagMD_ccvsLight

jetsAK8_cff.deepTagMD_ccvsLight

Definition at line 183 of file jetsAK8_cff.py.

◆ deepTagMD_H4qvsQCD

jetsAK8_cff.deepTagMD_H4qvsQCD

Definition at line 181 of file jetsAK8_cff.py.

◆ deepTagMD_HbbvsQCD

jetsAK8_cff.deepTagMD_HbbvsQCD

Definition at line 179 of file jetsAK8_cff.py.

◆ deepTagMD_TvsQCD

jetsAK8_cff.deepTagMD_TvsQCD

Definition at line 174 of file jetsAK8_cff.py.

◆ deepTagMD_WvsQCD

jetsAK8_cff.deepTagMD_WvsQCD

Definition at line 175 of file jetsAK8_cff.py.

◆ deepTagMD_ZbbvsQCD

jetsAK8_cff.deepTagMD_ZbbvsQCD

Definition at line 178 of file jetsAK8_cff.py.

◆ deepTagMD_ZHbbvsQCD

jetsAK8_cff.deepTagMD_ZHbbvsQCD

Definition at line 177 of file jetsAK8_cff.py.

◆ deepTagMD_ZHccvsQCD

jetsAK8_cff.deepTagMD_ZHccvsQCD

Definition at line 180 of file jetsAK8_cff.py.

◆ deepTagMD_ZvsQCD

jetsAK8_cff.deepTagMD_ZvsQCD

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

◆ externalVariables

jetsAK8_cff.externalVariables

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

◆ jetAK8LepTask

jetsAK8_cff.jetAK8LepTask

Definition at line 296 of file jetsAK8_cff.py.

◆ jetAK8TablesTask

jetsAK8_cff.jetAK8TablesTask

Definition at line 298 of file jetsAK8_cff.py.

◆ jetAK8Task

jetsAK8_cff.jetAK8Task

Definition at line 293 of file jetsAK8_cff.py.

◆ jetAK8UserDataTask

jetsAK8_cff.jetAK8UserDataTask

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

◆ nanoAOD_addDeepBTag_switch

jetsAK8_cff.nanoAOD_addDeepBTag_switch

Definition at line 245 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepDoubleX_switch

jetsAK8_cff.nanoAOD_addDeepDoubleX_switch

Definition at line 247 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepDoubleXV2_switch

jetsAK8_cff.nanoAOD_addDeepDoubleXV2_switch

Definition at line 248 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepInfoAK8_switch

jetsAK8_cff.nanoAOD_addDeepInfoAK8_switch

Definition at line 244 of file jetsAK8_cff.py.

◆ nanoAOD_addParticleNet_switch

jetsAK8_cff.nanoAOD_addParticleNet_switch

Definition at line 249 of file jetsAK8_cff.py.

◆ nanoAOD_addParticleNetMassLegacy_switch

jetsAK8_cff.nanoAOD_addParticleNetMassLegacy_switch

Definition at line 250 of file jetsAK8_cff.py.

◆ nConstituents

jetsAK8_cff.nConstituents

Definition at line 134 of file jetsAK8_cff.py.

◆ particleNet_massCorr

jetsAK8_cff.particleNet_massCorr

Definition at line 122 of file jetsAK8_cff.py.

◆ particleNet_QCD

jetsAK8_cff.particleNet_QCD

Definition at line 118 of file jetsAK8_cff.py.

◆ particleNet_QCD0HF

jetsAK8_cff.particleNet_QCD0HF

Definition at line 121 of file jetsAK8_cff.py.

◆ particleNet_QCD1HF

jetsAK8_cff.particleNet_QCD1HF

Definition at line 120 of file jetsAK8_cff.py.

◆ particleNet_QCD2HF

jetsAK8_cff.particleNet_QCD2HF

Definition at line 119 of file jetsAK8_cff.py.

◆ particleNet_XbbVsQCD

jetsAK8_cff.particleNet_XbbVsQCD

Definition at line 123 of file jetsAK8_cff.py.

◆ particleNet_XccVsQCD

jetsAK8_cff.particleNet_XccVsQCD

Definition at line 124 of file jetsAK8_cff.py.

◆ particleNet_XggVsQCD

jetsAK8_cff.particleNet_XggVsQCD

Definition at line 126 of file jetsAK8_cff.py.

◆ particleNet_XqqVsQCD

jetsAK8_cff.particleNet_XqqVsQCD

Definition at line 125 of file jetsAK8_cff.py.

◆ particleNet_XteVsQCD

jetsAK8_cff.particleNet_XteVsQCD

Definition at line 129 of file jetsAK8_cff.py.

◆ particleNet_XtmVsQCD

jetsAK8_cff.particleNet_XtmVsQCD

Definition at line 128 of file jetsAK8_cff.py.

◆ particleNet_XttVsQCD

jetsAK8_cff.particleNet_XttVsQCD

Definition at line 127 of file jetsAK8_cff.py.

◆ particleNetLegacy_mass

jetsAK8_cff.particleNetLegacy_mass

Definition at line 184 of file jetsAK8_cff.py.

◆ particleNetLegacy_QCD

jetsAK8_cff.particleNetLegacy_QCD

Definition at line 188 of file jetsAK8_cff.py.

◆ particleNetLegacy_Xbb

jetsAK8_cff.particleNetLegacy_Xbb

Definition at line 185 of file jetsAK8_cff.py.

◆ particleNetLegacy_Xcc

jetsAK8_cff.particleNetLegacy_Xcc

Definition at line 186 of file jetsAK8_cff.py.

◆ particleNetLegacy_Xqq

jetsAK8_cff.particleNetLegacy_Xqq

Definition at line 187 of file jetsAK8_cff.py.

◆ particleNetWithMass_H4qvsQCD

jetsAK8_cff.particleNetWithMass_H4qvsQCD

Definition at line 115 of file jetsAK8_cff.py.

◆ particleNetWithMass_HbbvsQCD

jetsAK8_cff.particleNetWithMass_HbbvsQCD

Definition at line 116 of file jetsAK8_cff.py.

◆ particleNetWithMass_HccvsQCD

jetsAK8_cff.particleNetWithMass_HccvsQCD

Definition at line 117 of file jetsAK8_cff.py.

◆ particleNetWithMass_QCD

jetsAK8_cff.particleNetWithMass_QCD

Definition at line 111 of file jetsAK8_cff.py.

◆ particleNetWithMass_TvsQCD

jetsAK8_cff.particleNetWithMass_TvsQCD

Definition at line 112 of file jetsAK8_cff.py.

◆ particleNetWithMass_WvsQCD

jetsAK8_cff.particleNetWithMass_WvsQCD

Definition at line 113 of file jetsAK8_cff.py.

◆ particleNetWithMass_ZvsQCD

jetsAK8_cff.particleNetWithMass_ZvsQCD

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

◆ subJetIdx2

jetsAK8_cff.subJetIdx2

Definition at line 132 of file jetsAK8_cff.py.

◆ subJetTable

jetsAK8_cff.subJetTable

DeepInfoAK8:End.

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