Skip to content

Commit

Permalink
Merge pull request #55 from arizzi/qgl80x
Browse files Browse the repository at this point in the history
run QGL in 80X
  • Loading branch information
arizzi committed Oct 31, 2017
2 parents 11e4c3d + bc41c20 commit d14734a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion PhysicsTools/NanoAOD/python/jets_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

slimmedJetsWithUserData = cms.EDProducer("PATJetUserDataEmbedder",
src = cms.InputTag("slimmedJets"),
userFloats = cms.PSet(),
userInts = cms.PSet(
tightId = cms.InputTag("tightJetId"),
looseId = cms.InputTag("looseJetId"),
Expand Down Expand Up @@ -105,7 +106,8 @@
jetTable.variables.pt.precision=10

### Era dependent customization
run2_miniAOD_80XLegacy.toModify( jetTable.variables.qgl, expr="-1" )
run2_miniAOD_80XLegacy.toModify( slimmedJetsWithUserData, userFloats=cms.PSet(qgl=cms.InputTag('qgtagger80x:qgLikelihood')))
run2_miniAOD_80XLegacy.toModify( jetTable.variables.qgl, expr="userFloat('qgl')" )

bjetMVA= cms.EDProducer("BJetEnergyRegressionMVA",
src = cms.InputTag("linkedObjects","jets"),
Expand Down
6 changes: 5 additions & 1 deletion PhysicsTools/NanoAOD/python/nano_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,14 @@ def nanoAOD_customizeMC(process):

### Era dependent customization
from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
#remove stuff
from RecoJets.JetProducers.QGTagger_cfi import QGTagger
qgtagger80x=QGTagger.clone(srcJets="slimmedJets",srcVertexCollection="offlineSlimmedPrimaryVertices")
_80x_sequence = nanoSequence.copy()
#remove stuff
_80x_sequence.remove(isoTrackTable)
_80x_sequence.remove(isoTrackSequence)
#add qgl
_80x_sequence.insert(1,qgtagger80x)
run2_miniAOD_80XLegacy.toReplaceWith( nanoSequence, _80x_sequence)


Expand Down

0 comments on commit d14734a

Please sign in to comment.