def tau1Selection(self, row): return selections.elIsoLoose(row, 'e') and selections.eleIDLoose(row, 'e')# and bool(row.eMissingHits <= 1)
def leg3_id(self, row): return selections.elIsoLoose(row, 'e3') and bool(row.e3MVAIDH2TauWP) and bool(row.e3MissingHits <= 1)
def tau1Selection(self, row): return selections.elIsoLoose(row, 'e3') and selections.eleIDLoose(row, 'e3')
def leg3_id(self, row): return selections.elIsoLoose(row, 'e') and bool(row.eMVAIDH2TauWP) and bool(row.eMissingHits <= 1)
def leg3_id(self, row): return row.eMVAIDH2TauWP and selections.elIsoLoose(row, 'e') and (row.eMissingHits==0)##THIS SEEMS too low
def leg3_id(self, row): #if not (selections.eleID(row, 'e3')): print "failed eleID" #if not (selections.elIsoTight(row, 'e3')): print "failed elIsoTight" #print getattr(row, 'e3RelPFIsoDB') return row.e3MVAIDH2TauWP and selections.elIsoLoose(row, 'e3') and (row.e3MissingHits==0)##THIS SEEMS too low
def lepton_passes_loose_iso(self, row): return selections.elIsoLoose(row, 'e3') and selections.eleIDLoose(row, 'e3') #bool( row.e3MVAIDH2TauWP ) ##THIS SEEMS too low
def leg3_id(self, row): return row.eMVAIDH2TauWP and selections.elIsoLoose(row, 'e') and ( row.eMissingHits == 0) ##THIS SEEMS too low
def probe1_id(self, row): return selections.eleID(row, 'e') and selections.elIsoLoose(row, 'e')
def lepton_passes_loose_iso(self, row): return selections.elIsoLoose(row, 'e') and selections.eleIDLoose(row, 'e') ##THIS SEEMS too low