Skip to content

Commit

Permalink
Merge pull request cms-sw#143 from arizzi/fixISR
Browse files Browse the repository at this point in the history
Fix isr
  • Loading branch information
arizzi committed Aug 28, 2015
2 parents 994df0d + df230a3 commit 81612c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VHbbAnalysis/Heppy/python/VHbbAnalyzer.py
Expand Up @@ -110,9 +110,9 @@ def searchISRforVH(self,event):
p4VH=event.HCSV+event.V
if p4VH.pt() > 30 :
phi=pi+p4VH.phi()
matchedJets=[(x,deltaPhi(phi,x.phi())) for x in event.cleanJetsAll if deltaPhi(phi,x.phi()) < 0.4 and x.puJetId() > 0 and x.jetID('POG_PFID_Loose') and x not in event.hJetsCSV ]
matchedJets=[x for x in event.cleanJetsAll if abs(deltaPhi(phi,x.phi())) < 0.4 and x.puJetId() > 0 and x.jetID('POG_PFID_Loose') and x not in event.hJetsCSV ]
if len(matchedJets) > 0 :
event.isrJetVH=event.cleanJetsAll.index(sorted(matchedJets, key=lambda x:x[1])[0][0])
event.isrJetVH=event.cleanJetsAll.index(sorted(matchedJets, key=lambda x:x.pt(),reverse=True)[0])

def makeJets(self,event,b):
inputs=ROOT.std.vector(ROOT.heppy.ReclusterJets.LorentzVector)()
Expand Down

0 comments on commit 81612c4

Please sign in to comment.