CMS 3D CMS Logo

Functions | Variables
jetsAK8_cff Namespace Reference

Functions

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

Variables

 _jetAK8UserDataTask2016
 
 addBTagInfo
 
 area
 
 btagCMVA
 
 btagCSVV2
 
 btagDDBvL
 
 btagDDBvL_noMD
 
 btagDDBvLV2
 
 btagDDCvB
 
 btagDDCvB_noMD
 
 btagDDCvBV2
 
 btagDDCvL
 
 btagDDCvL_noMD
 
 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
 
 expr
 
 extension
 
 externalVariables
 
 fatJetTable
 
 filterParams
 
 finalJetsAK8
 
 float
 
 int
 
 jecPayload
 
 jetAK8LepTask
 
 jetAK8TablesTask
 
 jetAK8Task
 
 jetAK8UserDataTask
 
 jetCorrFactorsAK8
 
 jetCorrFactorsSource
 
 jetId
 
 jetSource
 
 lepInAK8JetVars
 
 levels
 
 looseId
 
 looseJetIdAK8
 
 lsf3
 
 msoftdrop
 
 msoftdrop_chs
 
 muonIdx3SJ
 
 n2b1
 Era dependent customization. More...
 
 n3b1
 
 name
 
 nanoAOD_addDeepBoostedJet_switch
 
 nanoAOD_addDeepBTag_switch
 
 nanoAOD_addDeepDoubleX_switch
 
 nanoAOD_addDeepDoubleXV2_switch
 
 nanoAOD_addDeepInfoAK8_switch
 
 nanoAOD_addParticleNet_switch
 
 nanoAOD_addParticleNetMass_switch
 
 nConstituents
 
 None
 
 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
 
 singleton
 
 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 182 of file jetsAK8_cff.py.

References join(), and print().

Referenced by nano_cff.nanoAOD_customizeCommon().

182 def nanoAOD_addDeepInfoAK8(process, addDeepBTag, addDeepBoostedJet, addDeepDoubleX, addDeepDoubleXV2, addParticleNet, addParticleNetMass, jecPayload):
183  _btagDiscriminators=[]
184  if addDeepBTag:
185  print("Updating process to run DeepCSV btag to AK8 jets")
186  _btagDiscriminators += ['pfDeepCSVJetTags:probb','pfDeepCSVJetTags:probbb']
187  if addDeepBoostedJet:
188  print("Updating process to run DeepBoostedJet on datasets before 103X")
189  from RecoBTag.ONNXRuntime.pfDeepBoostedJet_cff import _pfDeepBoostedJetTagsAll as pfDeepBoostedJetTagsAll
190  _btagDiscriminators += pfDeepBoostedJetTagsAll
191  if addParticleNet:
192  print("Updating process to run ParticleNet before it's included in MiniAOD")
193  from RecoBTag.ONNXRuntime.pfParticleNet_cff import _pfParticleNetJetTagsAll as pfParticleNetJetTagsAll
194  _btagDiscriminators += pfParticleNetJetTagsAll
195  if addParticleNetMass:
196  from RecoBTag.ONNXRuntime.pfParticleNet_cff import _pfParticleNetMassRegressionOutputs
197  _btagDiscriminators += _pfParticleNetMassRegressionOutputs
198  if addDeepDoubleX:
199  print("Updating process to run DeepDoubleX on datasets before 104X")
200  _btagDiscriminators += ['pfDeepDoubleBvLJetTags:probHbb', \
201  'pfDeepDoubleCvLJetTags:probHcc', \
202  'pfDeepDoubleCvBJetTags:probHcc', \
203  'pfMassIndependentDeepDoubleBvLJetTags:probHbb', 'pfMassIndependentDeepDoubleCvLJetTags:probHcc', 'pfMassIndependentDeepDoubleCvBJetTags:probHcc']
204  if addDeepDoubleXV2:
205  print("Updating process to run DeepDoubleXv2 on datasets before 11X")
206  _btagDiscriminators += [
207  'pfMassIndependentDeepDoubleBvLV2JetTags:probHbb',
208  'pfMassIndependentDeepDoubleCvLV2JetTags:probHcc',
209  'pfMassIndependentDeepDoubleCvBV2JetTags:probHcc'
210  ]
211  if len(_btagDiscriminators)==0: return process
212  print("Will recalculate the following discriminators on AK8 jets: "+", ".join(_btagDiscriminators))
213  updateJetCollection(
214  process,
215  jetSource = cms.InputTag('slimmedJetsAK8'),
216  pvSource = cms.InputTag('offlineSlimmedPrimaryVertices'),
217  svSource = cms.InputTag('slimmedSecondaryVertices'),
218  rParam = 0.8,
219  jetCorrections = (jecPayload.value(), cms.vstring(['L1FastJet', 'L2Relative', 'L3Absolute', 'L2L3Residual']), 'None'),
220  btagDiscriminators = _btagDiscriminators,
221  postfix='AK8WithDeepInfo',
222  printWarning = False
223  )
224  process.jetCorrFactorsAK8.src="selectedUpdatedPatJetsAK8WithDeepInfo"
225  process.updatedJetsAK8.jetSource="selectedUpdatedPatJetsAK8WithDeepInfo"
226  return process
227 
def nanoAOD_addDeepInfoAK8(process, addDeepBTag, addDeepBoostedJet, addDeepDoubleX, addDeepDoubleXV2, addParticleNet, addParticleNetMass, jecPayload)
Definition: jetsAK8_cff.py:182
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

◆ _jetAK8UserDataTask2016

jetsAK8_cff._jetAK8UserDataTask2016
private

Definition at line 307 of file jetsAK8_cff.py.

◆ 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.

◆ btagCMVA

jetsAK8_cff.btagCMVA

Definition at line 159 of file jetsAK8_cff.py.

◆ btagCSVV2

jetsAK8_cff.btagCSVV2

Definition at line 107 of file jetsAK8_cff.py.

◆ btagDDBvL

jetsAK8_cff.btagDDBvL

Definition at line 163 of file jetsAK8_cff.py.

◆ btagDDBvL_noMD

jetsAK8_cff.btagDDBvL_noMD

Definition at line 160 of file jetsAK8_cff.py.

◆ btagDDBvLV2

jetsAK8_cff.btagDDBvLV2

Definition at line 109 of file jetsAK8_cff.py.

◆ btagDDCvB

jetsAK8_cff.btagDDCvB

Definition at line 165 of file jetsAK8_cff.py.

◆ btagDDCvB_noMD

jetsAK8_cff.btagDDCvB_noMD

Definition at line 162 of file jetsAK8_cff.py.

◆ btagDDCvBV2

jetsAK8_cff.btagDDCvBV2

Definition at line 111 of file jetsAK8_cff.py.

◆ btagDDCvL

jetsAK8_cff.btagDDCvL

Definition at line 164 of file jetsAK8_cff.py.

◆ btagDDCvL_noMD

jetsAK8_cff.btagDDCvL_noMD

Definition at line 161 of file jetsAK8_cff.py.

◆ btagDDCvLV2

jetsAK8_cff.btagDDCvLV2

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

◆ cut

jetsAK8_cff.cut

Definition at line 78 of file jetsAK8_cff.py.

◆ deepTag_H

jetsAK8_cff.deepTag_H

Definition at line 115 of file jetsAK8_cff.py.

◆ deepTag_QCD

jetsAK8_cff.deepTag_QCD

Definition at line 116 of file jetsAK8_cff.py.

◆ deepTag_QCDothers

jetsAK8_cff.deepTag_QCDothers

Definition at line 117 of file jetsAK8_cff.py.

◆ deepTag_TvsQCD

jetsAK8_cff.deepTag_TvsQCD

Definition at line 112 of file jetsAK8_cff.py.

◆ deepTag_WvsQCD

jetsAK8_cff.deepTag_WvsQCD

Definition at line 113 of file jetsAK8_cff.py.

◆ deepTag_ZvsQCD

jetsAK8_cff.deepTag_ZvsQCD

Definition at line 114 of file jetsAK8_cff.py.

◆ deepTagMD_bbvsLight

jetsAK8_cff.deepTagMD_bbvsLight

Definition at line 126 of file jetsAK8_cff.py.

◆ deepTagMD_ccvsLight

jetsAK8_cff.deepTagMD_ccvsLight

Definition at line 127 of file jetsAK8_cff.py.

◆ deepTagMD_H4qvsQCD

jetsAK8_cff.deepTagMD_H4qvsQCD

Definition at line 125 of file jetsAK8_cff.py.

◆ deepTagMD_HbbvsQCD

jetsAK8_cff.deepTagMD_HbbvsQCD

Definition at line 123 of file jetsAK8_cff.py.

◆ deepTagMD_TvsQCD

jetsAK8_cff.deepTagMD_TvsQCD

Definition at line 118 of file jetsAK8_cff.py.

◆ deepTagMD_WvsQCD

jetsAK8_cff.deepTagMD_WvsQCD

Definition at line 119 of file jetsAK8_cff.py.

◆ deepTagMD_ZbbvsQCD

jetsAK8_cff.deepTagMD_ZbbvsQCD

Definition at line 122 of file jetsAK8_cff.py.

◆ deepTagMD_ZHbbvsQCD

jetsAK8_cff.deepTagMD_ZHbbvsQCD

Definition at line 121 of file jetsAK8_cff.py.

◆ deepTagMD_ZHccvsQCD

jetsAK8_cff.deepTagMD_ZHccvsQCD

Definition at line 124 of file jetsAK8_cff.py.

◆ deepTagMD_ZvsQCD

jetsAK8_cff.deepTagMD_ZvsQCD

Definition at line 120 of file jetsAK8_cff.py.

◆ doc

jetsAK8_cff.doc

Definition at line 92 of file jetsAK8_cff.py.

◆ electronIdx3SJ

jetsAK8_cff.electronIdx3SJ

Definition at line 149 of file jetsAK8_cff.py.

◆ expr

jetsAK8_cff.expr

◆ extension

jetsAK8_cff.extension

Definition at line 94 of file jetsAK8_cff.py.

◆ externalVariables

jetsAK8_cff.externalVariables

Definition at line 146 of file jetsAK8_cff.py.

◆ fatJetTable

jetsAK8_cff.fatJetTable

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

◆ float

jetsAK8_cff.float

Definition at line 97 of file jetsAK8_cff.py.

◆ int

jetsAK8_cff.int

Definition at line 96 of file jetsAK8_cff.py.

◆ jecPayload

jetsAK8_cff.jecPayload

Definition at line 235 of file jetsAK8_cff.py.

◆ jetAK8LepTask

jetsAK8_cff.jetAK8LepTask

Definition at line 315 of file jetsAK8_cff.py.

◆ jetAK8TablesTask

jetsAK8_cff.jetAK8TablesTask

Definition at line 317 of file jetsAK8_cff.py.

◆ jetAK8Task

jetsAK8_cff.jetAK8Task

Definition at line 312 of file jetsAK8_cff.py.

◆ jetAK8UserDataTask

jetsAK8_cff.jetAK8UserDataTask

Definition at line 306 of file jetsAK8_cff.py.

◆ jetCorrFactorsAK8

jetsAK8_cff.jetCorrFactorsAK8

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

◆ levels

jetsAK8_cff.levels

Definition at line 10 of file jetsAK8_cff.py.

◆ looseId

jetsAK8_cff.looseId

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

◆ msoftdrop

jetsAK8_cff.msoftdrop

Definition at line 105 of file jetsAK8_cff.py.

◆ msoftdrop_chs

jetsAK8_cff.msoftdrop_chs

Definition at line 167 of file jetsAK8_cff.py.

◆ muonIdx3SJ

jetsAK8_cff.muonIdx3SJ

Definition at line 148 of file jetsAK8_cff.py.

◆ n2b1

jetsAK8_cff.n2b1

Era dependent customization.

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 91 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepBoostedJet_switch

jetsAK8_cff.nanoAOD_addDeepBoostedJet_switch

Definition at line 230 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepBTag_switch

jetsAK8_cff.nanoAOD_addDeepBTag_switch

Definition at line 229 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepDoubleX_switch

jetsAK8_cff.nanoAOD_addDeepDoubleX_switch

Definition at line 231 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepDoubleXV2_switch

jetsAK8_cff.nanoAOD_addDeepDoubleXV2_switch

Definition at line 232 of file jetsAK8_cff.py.

◆ nanoAOD_addDeepInfoAK8_switch

jetsAK8_cff.nanoAOD_addDeepInfoAK8_switch

Definition at line 228 of file jetsAK8_cff.py.

◆ nanoAOD_addParticleNet_switch

jetsAK8_cff.nanoAOD_addParticleNet_switch

Definition at line 233 of file jetsAK8_cff.py.

◆ nanoAOD_addParticleNetMass_switch

jetsAK8_cff.nanoAOD_addParticleNetMass_switch

Definition at line 234 of file jetsAK8_cff.py.

◆ nConstituents

jetsAK8_cff.nConstituents

Definition at line 144 of file jetsAK8_cff.py.

◆ None

jetsAK8_cff.None

Definition at line 304 of file jetsAK8_cff.py.

◆ particleNet_H4qvsQCD

jetsAK8_cff.particleNet_H4qvsQCD

Definition at line 133 of file jetsAK8_cff.py.

◆ particleNet_HbbvsQCD

jetsAK8_cff.particleNet_HbbvsQCD

Definition at line 131 of file jetsAK8_cff.py.

◆ particleNet_HccvsQCD

jetsAK8_cff.particleNet_HccvsQCD

Definition at line 132 of file jetsAK8_cff.py.

◆ particleNet_mass

jetsAK8_cff.particleNet_mass

Definition at line 135 of file jetsAK8_cff.py.

◆ particleNet_QCD

jetsAK8_cff.particleNet_QCD

Definition at line 134 of file jetsAK8_cff.py.

◆ particleNet_TvsQCD

jetsAK8_cff.particleNet_TvsQCD

Definition at line 128 of file jetsAK8_cff.py.

◆ particleNet_WvsQCD

jetsAK8_cff.particleNet_WvsQCD

Definition at line 129 of file jetsAK8_cff.py.

◆ particleNet_ZvsQCD

jetsAK8_cff.particleNet_ZvsQCD

Definition at line 130 of file jetsAK8_cff.py.

◆ particleNetMD_QCD

jetsAK8_cff.particleNetMD_QCD

Definition at line 139 of file jetsAK8_cff.py.

◆ particleNetMD_Xbb

jetsAK8_cff.particleNetMD_Xbb

Definition at line 136 of file jetsAK8_cff.py.

◆ particleNetMD_Xcc

jetsAK8_cff.particleNetMD_Xcc

Definition at line 137 of file jetsAK8_cff.py.

◆ particleNetMD_Xqq

jetsAK8_cff.particleNetMD_Xqq

Definition at line 138 of file jetsAK8_cff.py.

◆ payload

jetsAK8_cff.payload

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

◆ singleton

jetsAK8_cff.singleton

Definition at line 93 of file jetsAK8_cff.py.

◆ src

jetsAK8_cff.src

Definition at line 9 of file jetsAK8_cff.py.

◆ srcEle

jetsAK8_cff.srcEle

Definition at line 84 of file jetsAK8_cff.py.

Referenced by LeptonInJetProducer< T >.produce().

◆ srcMu

jetsAK8_cff.srcMu

Definition at line 85 of file jetsAK8_cff.py.

Referenced by LeptonInJetProducer< T >.produce().

◆ subJetIdx1

jetsAK8_cff.subJetIdx1

Definition at line 140 of file jetsAK8_cff.py.

◆ subJetIdx2

jetsAK8_cff.subJetIdx2

Definition at line 142 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

Definition at line 101 of file jetsAK8_cff.py.

◆ tau4

jetsAK8_cff.tau4

Definition at line 102 of file jetsAK8_cff.py.

◆ tightId

jetsAK8_cff.tightId

Definition at line 66 of file jetsAK8_cff.py.

◆ tightIdLepVeto

jetsAK8_cff.tightIdLepVeto

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

◆ userFloats

jetsAK8_cff.userFloats

Definition at line 64 of file jetsAK8_cff.py.

◆ userInts

jetsAK8_cff.userInts

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