Skip to content

Commit

Permalink
Merge pull request cms-sw#129 from vhbb/fixHaddJetsdR08again
Browse files Browse the repository at this point in the history
Fix hadd jetsd r08again
  • Loading branch information
arizzi committed Jul 23, 2015
2 parents b6fa1c9 + f198087 commit 8c035be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VHbbAnalysis/Heppy/python/VHbbAnalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def doHiggsAddJetsdR08(self,event) :
event.hjidxaddJetsdR08 = [x for x in event.hjidxCSV]
event.ajidxaddJetsdR08 = [x for x in event.ajidxCSV]
#multiple jets interpretations, for central jets closest to dR<0.8 from higgs jets
jetsForHiggsAddJetsdR08 = [x for x in event.jetsForHiggs if (x.pt()>15 and abs(x.eta())<3.0) ]
jetsForHiggsAddJetsdR08 = [x for x in event.cleanJetsAll if (x.pt()>15 and abs(x.eta())<3.0 and x.puJetId() > 0 and x.jetID('POG_PFID_Loose') ) ]
if (len(jetsForHiggsAddJetsdR08) > 2):
addJetsForHiggs = [x for x in jetsForHiggsAddJetsdR08 if ( x not in event.hJetsCSV and min(deltaR( x.eta(), x.phi(), event.hJetsCSV[0].eta(), event.hJetsCSV[0].phi()),deltaR( x.eta(), x.phi(), event.hJetsCSV[1].eta(), event.hJetsCSV[1].phi()))<0.8 ) ]
for x in addJetsForHiggs:
Expand Down

0 comments on commit 8c035be

Please sign in to comment.