Skip to content

Commit

Permalink
Add quark-gluon likelihood input variables for AK4PFCHS jets
Browse files Browse the repository at this point in the history
  • Loading branch information
nurfikri89 committed Mar 19, 2020
1 parent b98829e commit c661f9e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions PhysicsTools/NanoAOD/python/custom_jme_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,20 @@ def AddPileUpJetIDVars(proc):
proc.jetTable.variables.jetRchg = Var("userFloat('jetRchg')", float, doc="fraction of jet pT carried by the leading charged constituent", precision= 6)
proc.jetTable.variables.nCharged = Var("userInt('nCharged')", int, doc="number of charged constituents")

def AddQGLTaggerVars(proc):
#
# Save variables as userFloats and userInts
#
proc.updatedJetsWithUserData.userFloats.qgl_axis2 = cms.InputTag("qgtagger:axis2")
proc.updatedJetsWithUserData.userFloats.qgl_ptD = cms.InputTag("qgtagger:ptD")
proc.updatedJetsWithUserData.userInts.qgl_mult = cms.InputTag("qgtagger:mult")
#
# Specfiy variables in the jetTable to save in NanoAOD
#
proc.jetTable.variables.qgl_axis2 = Var("userFloat('qgl_axis2')", float, doc="ellipse minor jet axis (Quark vs Gluon likelihood input variable)", precision= 6)
proc.jetTable.variables.qgl_ptD = Var("userFloat('qgl_ptD')", float, doc="pT-weighted average pT of constituents (Quark vs Gluon likelihood input variable)", precision= 6)
proc.jetTable.variables.qgl_mult = Var("userInt('qgl_mult')", int, doc="PF candidates multiplicity (Quark vs Gluon likelihood input variable)")

def PrepJMECustomNanoAOD(process,runOnMC):
#
# Additional variables to AK4GenJets
Expand Down Expand Up @@ -443,6 +457,10 @@ def PrepJMECustomNanoAOD(process,runOnMC):
# Add variables for pileup jet ID studies.
#
AddPileUpJetIDVars(process)
#
# Add variables for quark guon likelihood tagger studies.
#
AddQGLTaggerVars(process)

######################################################################################################################

Expand Down

0 comments on commit c661f9e

Please sign in to comment.