Skip to content

Commit

Permalink
Change order of correctors to run QGL on updated JEC
Browse files Browse the repository at this point in the history
  • Loading branch information
peruzzim committed May 6, 2019
1 parent 67fcbdf commit f104b5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion PhysicsTools/NanoAOD/python/jets_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@
qgtagger=QGTagger.clone(srcJets="updatedJets",srcVertexCollection="offlineSlimmedPrimaryVertices")

#before cross linking
jetSequence = cms.Sequence(jetCorrFactorsNano+updatedJets+tightJetId+tightJetIdLepVeto+bJetVars+updatedJetsWithUserData+qgtagger+jetCorrFactorsAK8+updatedJetsAK8+tightJetIdAK8+tightJetIdLepVetoAK8+updatedJetsAK8WithUserData+chsForSATkJets+softActivityJets+softActivityJets2+softActivityJets5+softActivityJets10+finalJets+finalJetsAK8)
jetSequence = cms.Sequence(jetCorrFactorsNano+updatedJets+tightJetId+tightJetIdLepVeto+bJetVars+qgtagger+updatedJetsWithUserData+jetCorrFactorsAK8+updatedJetsAK8+tightJetIdAK8+tightJetIdLepVetoAK8+updatedJetsAK8WithUserData+chsForSATkJets+softActivityJets+softActivityJets2+softActivityJets5+softActivityJets10+finalJets+finalJetsAK8)

_jetSequence_2016 = jetSequence.copy()
_jetSequence_2016.insert(_jetSequence_2016.index(tightJetId), looseJetId)
Expand Down
14 changes: 4 additions & 10 deletions PhysicsTools/NanoAOD/python/nano_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,8 @@ def nanoAOD_addDeepInfo(process,addDeepBTag,addDeepFlavour):
postfix = 'WithDeepInfo',
)
process.load("Configuration.StandardSequences.MagneticField_cff")
process.looseJetId.src="selectedUpdatedPatJetsWithDeepInfo"
process.tightJetId.src="selectedUpdatedPatJetsWithDeepInfo"
process.tightJetIdLepVeto.src="selectedUpdatedPatJetsWithDeepInfo"
process.bJetVars.src="selectedUpdatedPatJetsWithDeepInfo"
process.updatedJetsWithUserData.src="selectedUpdatedPatJetsWithDeepInfo"
process.qgtagger.srcJets="selectedUpdatedPatJetsWithDeepInfo"
process.jetCorrFactorsNano.src="selectedUpdatedPatJetsWithDeepInfo"
process.updatedJets.jetSource="selectedUpdatedPatJetsWithDeepInfo"
if addDeepFlavour:
process.pfDeepFlavourJetTagsWithDeepInfo.graph_path = 'RecoBTag/Combined/data/DeepFlavourV03_10X_training/constant_graph.pb'
process.pfDeepFlavourJetTagsWithDeepInfo.lp_names = ["cpf_input_batchnorm/keras_learning_phase"]
Expand Down Expand Up @@ -220,10 +216,8 @@ def nanoAOD_addDeepInfoAK8(process,addDeepBTag,addDeepBoostedJet,jecPayload):
postfix='AK8WithDeepInfo',
printWarning = False
)
process.looseJetIdAK8.src = "selectedUpdatedPatJetsAK8WithDeepInfo"
process.tightJetIdAK8.src = "selectedUpdatedPatJetsAK8WithDeepInfo"
process.tightJetIdLepVetoAK8.src = "selectedUpdatedPatJetsAK8WithDeepInfo"
process.updatedJetsAK8WithUserData.src = "selectedUpdatedPatJetsAK8WithDeepInfo"
process.jetCorrFactorsAK8.src="selectedUpdatedPatJetsAK8WithDeepInfo"
process.updatedJetsAK8.jetSource="selectedUpdatedPatJetsAK8WithDeepInfo"
return process

from PhysicsTools.PatUtils.tools.runMETCorrectionsAndUncertainties import runMetCorAndUncFromMiniAOD
Expand Down

0 comments on commit f104b5b

Please sign in to comment.