From 000af9576fc6d05e455f2ee2ffc6f4bb52428cc8 Mon Sep 17 00:00:00 2001 From: Jake Date: Thu, 26 Jul 2018 09:51:20 -0400 Subject: [PATCH] Fixed eta vs pt cut --- DarkZ/Skimmer/RecoSkimmer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/DarkZ/Skimmer/RecoSkimmer.py b/DarkZ/Skimmer/RecoSkimmer.py index 56bdca2..bcf204d 100644 --- a/DarkZ/Skimmer/RecoSkimmer.py +++ b/DarkZ/Skimmer/RecoSkimmer.py @@ -21,9 +21,7 @@ def __init__(self,name): self.m4lRange = [105.,140.] def analyze(self,event): - event.leps = [lep for lep in Collection(event,"lep") - if ((abs(lep.eta) < self.elEtaCut and abs(lep.id) == 11 and lep.pt > self.elPtCut) or - (abs(lep.eta) < self.muEtaCut and abs(lep.id) == 13 and lep.pt > self.muPtCut)) and lep.RelIso < self.lepRelIso] + event.leps = [lep for lep in Collection(event,"lep") if ((abs(lep.eta) < self.elEtaCut and abs(lep.id) == 11 and lep.pt > self.elPtCut) or (abs(lep.eta) < self.muEtaCut and abs(lep.id) == 13 and lep.pt > self.muPtCut)) and lep.RelIso < self.lepRelIso] #event.leps = [lep for lep in Collection(event,"lepFSR") if ((abs(lep.eta) < 2.5 and abs(lep.id) == 11 and lep.pt > 7) or (abs(lep.eta) < 2.4 and abs(lep.id) == 13 and lep.pt > 5)) and lep.RelIso < 0.35] event.leps.sort(key=lambda x: x.pt,reverse=True)