daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Sep 21st, 2018 59 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. def get_nbosons(event):
  2.     nbosons = 0
  3.     for genpart in event.GenPart:
  4.         if abs(genpart.pdgId) in [11,12,13,14,15,16,23,24] and genpart.genPartIdxMother==0:
  5.             if abs(genpart.pdgId)<20:
  6.                 nbosons += 1
  7.             else:
  8.                 nbosons += 2
  9.     return nbosons
  10.    
  11. def selection(event):
  12.     return True if event.dataset.parent not in "EWKV2Jets" else (event.nGenBosons==1)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top