Ejemplo n.º 1
0
 def zSelection(self, row):
     if not selections.ZEESelection(row): return False
     if selections.overlap(row, 'e1','e2','m','t') : return False
     if not selections.signalTauSelection(row,'t'): return False
     if bool(row.tAntiMuonTight): return False
     if bool(row.tAntiElectronLoose): return False
     if not bool(row.tLooseIso): return False
     return selections.signalMuonSelection(row,'m')
Ejemplo n.º 2
0
 def zSelection(self, row):
     if not selections.ZMuMuSelectionNoVetos(row): return False
     if bool(row.muGlbIsoVetoPt10):  return False
     if bool(row.bjetCSVVeto):       return False
     if selections.overlap(row, 'm1','m2','m3') : return False
     ## if row.m3Pt < 10:              return False
     ## if row.m3AbsEta > 2.4:         return False
     ## if row.m3DZ > 0.1:             return False
     ## return True
     return selections.signalMuonSelection(row,'m3')
Ejemplo n.º 3
0
 def zSelection(self, row):
     if not selections.ZEESelectionNoVetos(row): return False
     if selections.overlap(row, 'e1','e2','e3') : return False
     if bool(row.eVetoMVAIso):       return False
     if bool(row.bjetCSVVeto):       return False            
     ## if row.e3Pt     < 10:            return False
     ## if row.e3AbsEta > 2.5:           return False
     ## if row.e3DZ     > 0.1:           return False
     ## return True
     return selections.signalElectronSelection(row,'e3')
Ejemplo n.º 4
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZMuMuSelection(row): return False
        if selections.overlap(row, 'm1','m2','e','m3') : return False
        if not selections.signalMuonSelection(row,'m3'): return False
        if not selections.signalElectronSelection(row,'e'): return False
        return True
Ejemplo n.º 5
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZMuMuSelection(row): return False
        if selections.overlap(row, 'm1','m2','m3','t') : return False
        if not selections.signalTauSelection(row,'t'): return False
        if not bool(row.tAntiMuonTight): return False
        if not bool(row.tAntiElectronLoose): return False
        return selections.signalMuonSelection(row,'m3')
Ejemplo n.º 6
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZEESelection(row): return False
        if not selections.overlap(row, 'e1','e2','e3','m') : return False
        if not selections.signalMuonSelection(row,'m'): return False
        if not selections.signalElectronSelection(row,'e3'): return False
        if bool(row.e3_m_SS): return False
        return True
Ejemplo n.º 7
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        #Z Selection
        if not selections.ZEESelection(row): return False
        if selections.overlap(row, 'e1','e2','e3','t') : return False
        if not selections.signalTauSelection(row,'t'): return False
        if not bool(row.tAntiMuonLoose): return False
        if not bool(row.tAntiElectronMVA): return False
        return selections.signalElectronSelection(row,'e3')
Ejemplo n.º 8
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZEESelection(row): return False
        if selections.overlap(row, 'e1','e2','e3','m') : return False
        if not selections.signalMuonSelection(row,'m'): return False
        if not selections.signalElectronSelection(row,'e3'): return False
        #if row.LT < 25: return False
        if row.e3Pt + row.mPt < 35: return False
        if row.e3MissingHits > 1: return False
        return True
Ejemplo n.º 9
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZMuMuSelection(row): return False
        if selections.overlap(row, 'm1','m2','e','m3') : return False
        if not selections.signalMuonSelection(row,'m3'): return False
        if not selections.signalElectronSelection(row,'e'): return False
        #if row.LT < 25: return False
        if row.ePt + row.m3Pt < 35: return False
        if row.eMissingHits > 1: return False
        return True
Ejemplo n.º 10
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        #Z Selection
        if not selections.ZEESelection(row): return False
        if selections.overlap(row, 'e1', 'e2', 'm', 't'): return False
        if not selections.signalTauSelection(row, 't'): return False
        if not bool(row.tAntiMuonTight2): return False
        if not bool(row.tAntiElectronLoose): return False
        #if row.LT < 45: return False
        if row.mPt + row.tPt < 35: return False
        return selections.signalMuonSelection(row, 'm')
Ejemplo n.º 11
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        #Z Selection
        if not selections.ZEESelection(row): return False
        if selections.overlap(row, 'e1','e2','m','t') : return False
        if not selections.signalTauSelection(row,'t'): return False
        if not bool(row.tAntiMuonTight2): return False
        if not bool(row.tAntiElectronLoose): return False
        #if row.LT < 45: return False
        if row.mPt + row.tPt < 35: return False
        return selections.signalMuonSelection(row,'m')
Ejemplo n.º 12
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZMuMuSelection(row): return False
        if selections.overlap(row, 'm1','m2','m3','t') : return False
        if not selections.signalTauSelection(row,'t'): return False
        if not bool(row.tAntiMuonTight2): return False
        if not bool(row.tAntiElectronLoose): return False
       # if row.LT < 45: return False
        if row.m3Pt + row.tPt < 35: return False
        #if (row.m3_t_SVfitMass < 100 or row.m3_t_SVfitMass > 150): return False # for MSSM
        return selections.signalMuonSelection(row,'m3')
Ejemplo n.º 13
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZMuMuSelection(row): return False
        if selections.overlap(row, 'm1','m2','e','m3') : return False
        if not selections.signalMuonSelection(row,'m3'): return False
        if not selections.signalElectronSelection(row,'e'): return False
        #if row.LT < 25: return False
        if row.ePt + row.m3Pt < 35: return False
        if row.eMissingHits > 1: return False
        #if (row.e_m3_SVfitMass < 100 or row.e_m3_SVfitMass > 150): return False # for MSSM
        return True
Ejemplo n.º 14
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZMuMuSelection(row): return False
        if selections.overlap(row, 'm1', 'm2', 'm3', 't'): return False
        if not selections.signalTauSelection(row, 't'): return False
        if not bool(row.tAntiMuonTight2): return False
        if not bool(row.tAntiElectronLoose): return False
        # if row.LT < 45: return False
        if row.m3Pt + row.tPt < 35: return False
        #if (row.m3_t_SVfitMass < 100 or row.m3_t_SVfitMass > 150): return False # for MSSM
        return selections.signalMuonSelection(row, 'm3')
Ejemplo n.º 15
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZEESelection(row): return False
        if not selections.overlap(row, 'e1','e2','t1','t2') : return False
        if not selections.signalTauSelection(row,'t1'): return False
        if not selections.signalTauSelection(row,'t2'): return False
        if bool(row.t1AntiMuonTight): return False
        if bool(row.t1AntiElectronMedium): return False
        if bool(row.t2AntiMuonTight): return False
        if bool(row.t2AntiElectronMedium): return False
        return True
Ejemplo n.º 16
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZEESelection(row): return False
        if selections.overlap(row, 'e1','e2','e3','m') : return False
        if not selections.signalMuonSelection(row,'m'): return False
        if not selections.signalElectronSelection(row,'e3'): return False
        #if row.LT < 25: return False
        if row.e3Pt + row.mPt < 35: return False
        if row.e3MissingHits > 1: return False
        #if (row.e3_m_SVfitMass < 100 or row.e3_m_SVfitMass > 150): return False # for MSSM
        return True
Ejemplo n.º 17
0
 def zSelection(self, row):
     if not selections.ZEESelectionNoVetos(row):
         return False
     if bool(row.muGlbIsoVetoPt10):
         return False
     if bool(row.bjetCSVVeto):
         return False
     if selections.overlap(row, "e1", "e2", "m"):
         return False
     ## if row.mPt < 10:              return False
     ## if row.mAbsEta > 2.4:         return False
     ## if row.mDZ > 0.1:             return False
     ## return True
     return selections.signalMuonSelection(row, "m")
Ejemplo n.º 18
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        #Z Selection
        if not selections.ZEESelection(row): return False
        if selections.overlap(row, 'e1','e2','e3','t') : return False
        if not selections.signalTauSelection(row,'t'): return False
        if not bool(row.tAntiMuonLoose): return False
        if not bool(row.tAntiElectronMVA2Tight): return False
        if not selections.signalElectronSelection(row,'e3'): return False
        if row.LT < 25: return False
        return True
Ejemplo n.º 19
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        #Z Selection
        if not selections.ZMuMuSelection(row): return False
        if selections.overlap(row, 'm1', 'm2', 'e', 't'): return False
        if not selections.signalTauSelection(row, 't'): return False
        if not bool(row.tAntiMuonLoose): return False
        if not bool(row.tAntiElectronMVA2Tight): return False
        #if not bool(row.tAntiElectronTight): return False
        #if row.LT < 45: return False
        if row.ePt + row.tPt < 25: return False
        return selections.signalElectronSelection(row, 'e')
Ejemplo n.º 20
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        #Z Selection
        if not selections.ZEESelection(row): return False
        if selections.overlap(row, 'e1','e2','e3','t') : return False
        if not selections.signalTauSelection(row,'t'): return False
        if not bool(row.tAntiMuonLoose): return False
        if not bool(row.tAntiElectronMVA2Tight): return False
        if not selections.signalElectronSelection(row,'e3'): return False
        if row.LT < 25: return False
        #if (row.e3_t_SVfitMass < 100 or row.e3_t_SVfitMass > 150): return False # for MSSM
        return True
Ejemplo n.º 21
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZMuMuSelection(row): return False
        if selections.overlap(row, 'm1','m2','t1','t2') : return False
        if not selections.signalTauSelection(row,'t1'): return False
        if not selections.signalTauSelection(row,'t2'): return False
        if not bool(row.t1AntiMuonTight): return False
        if not bool(row.t1AntiElectronMedium): return False
        if not bool(row.t2AntiMuonTight): return False
        if not bool(row.t2AntiElectronMedium): return False
        if row.t1Pt < row.t2Pt: return False #Avoid double counting
        return True
Ejemplo n.º 22
0
    def zSelection(self, row):
        #if not selections.ZEESelectionNoVetos(row): return False
        #if selections.overlap(row, 'e1','e2','e3','t') : return False
        #if bool(row.eVetoMVAIso):       return False
        #if bool(row.bjetCSVVeto):       return False    
        #if row.tPt < 5:                 return False     
        #if not selections.signalElectronSelection(row,'e3'): return False

        if not selections.ZEESelection(row): return False
        if selections.overlap(row, 'e1','e2','e3','t') : return False
        if not selections.signalTauSelection(row,'t',5): return False
        if not bool(row.tAntiMuonLoose): return False
        if not bool(row.tAntiElectronMVA2Tight): return False
        if not selections.signalElectronSelection(row,'e3'): return Fals
        return True
Ejemplo n.º 23
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        #Z Selection
        if not selections.ZMuMuSelection(row): return False
        if selections.overlap(row, 'm1','m2','e','t') : return False
        if not selections.signalTauSelection(row,'t'): return False
        if not bool(row.tAntiMuonLoose): return False
        if not bool(row.tAntiElectronMVA2Tight): return False
        #if not bool(row.tAntiElectronTight): return False
        #if row.LT < 45: return False
        if row.ePt + row.tPt < 25: return False
        return selections.signalElectronSelection(row,'e')
Ejemplo n.º 24
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZMuMuSelection(row): return False
        if selections.overlap(row, 'm1', 'm2', 't1', 't2'): return False
        if not selections.signalTauSelection(row, 't1'): return False
        if not selections.signalTauSelection(row, 't2'): return False
        if not bool(row.t1AntiMuonLoose2): return False
        if not bool(row.t1AntiElectronLoose): return False
        if not bool(row.t2AntiMuonLoose2): return False
        if not bool(row.t2AntiElectronLoose): return False
        if row.t1Pt < row.t2Pt: return False  #Avoid double counting
        #if row.LT < 75: return False
        if row.t1Pt + row.t2Pt < 70: return False
        return True
Ejemplo n.º 25
0
    def zSelection(self, row):
        #if not selections.ZEESelectionNoVetos(row): return False
        #if bool(row.muGlbIsoVetoPt10):  return False
        #if bool(row.bjetCSVVeto):       return False
        #if selections.overlap(row, 'e1','e2','m','t') : return False
        #if row.tPt < 5:                 return False
        ## if row.mPt < 10:              return False
        ## if row.mAbsEta > 2.4:         return False
        ## if row.mDZ > 0.1:             return False
        ## return True
        #return selections.signalMuonSelection(row,'m')

        if not selections.ZEESelection(row): return False
        if selections.overlap(row, 'e1','e2','m','t') : return False
        if not selections.signalTauSelection(row,'t',5): return False
        if not bool(row.tAntiMuonTight2): return False
        if not bool(row.tAntiElectronLoose): return False
        return selections.signalMuonSelection(row,'m')
Ejemplo n.º 26
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZMuMuSelection(row): return False
        if selections.overlap(row, 'm1','m2','t1','t2') : return False
        if not selections.signalTauSelection(row,'t1'): return False
        if not selections.signalTauSelection(row,'t2'): return False
        if not bool(row.t1AntiMuonLoose): return False
        if not bool(row.t1AntiElectronLoose): return False
        if not bool(row.t2AntiMuonLoose): return False
        if not bool(row.t2AntiElectronLoose): return False
        if row.t1Pt < row.t2Pt: return False #Avoid double counting
        #if row.LT < 75: return False
        if row.t1Pt + row.t2Pt < 70: return False
        #if (row.t1_t2_SVfitMass < 100 or row.t1_t2_SVfitMass > 150): return False # for MSSM
        return True
Ejemplo n.º 27
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZEESelection(row): return False
        #print "passed Z->EE selection"
        if selections.overlap(row, 'e1','e2','t1','t2') : return False
        if not selections.signalTauSelection(row,'t1'): return False
        if not selections.signalTauSelection(row,'t2'): return False
        if not bool(row.t1AntiMuonLoose2): return False
        if not bool(row.t1AntiElectronLoose): return False
        if not bool(row.t2AntiMuonLoose2): return False
        if not bool(row.t2AntiElectronLoose): return False
        if row.t1Pt < row.t2Pt: return False #Avoid double counting
        #if row.LT < 75: return False
        if row.t1Pt + row.t2Pt < 70: return False
        return True
Ejemplo n.º 28
0
    def zSelection(self, row):
        #if not selections.ZEESelectionNoVetos(row): return False
        #if bool(row.muGlbIsoVetoPt10):  return False
        #if bool(row.bjetCSVVeto):       return False
        #if selections.overlap(row, 'e1','e2','m','t') : return False
        #if row.tPt < 5:                 return False
        ## if row.mPt < 10:              return False
        ## if row.mAbsEta > 2.4:         return False
        ## if row.mDZ > 0.1:             return False
        ## return True
        #return selections.signalMuonSelection(row,'m')

        if not selections.ZEESelection(row): return False
        if selections.overlap(row, 'e1', 'e2', 'm', 't'): return False
        if not selections.signalTauSelection(row, 't', 5): return False
        if not bool(row.tAntiMuonTight2): return False
        if not bool(row.tAntiElectronLoose): return False
        return selections.signalMuonSelection(row, 'm')
Ejemplo n.º 29
0
    def preselection(self, row):
        ''' Preselection applied to events.

        Excludes FR object IDs and sign cut.
        '''
        if not selections.ZEESelection(row): return False
        #print "passed Z->EE selection"
        if selections.overlap(row, 'e1', 'e2', 't1', 't2'): return False
        if not selections.signalTauSelection(row, 't1'): return False
        if not selections.signalTauSelection(row, 't2'): return False
        if not bool(row.t1AntiMuonLoose2): return False
        if not bool(row.t1AntiElectronLoose): return False
        if not bool(row.t2AntiMuonLoose2): return False
        if not bool(row.t2AntiElectronLoose): return False
        if row.t1Pt < row.t2Pt: return False  #Avoid double counting
        #if row.LT < 75: return False
        if row.t1Pt + row.t2Pt < 70: return False
        #if (row.t1_t2_SVfitMass < 100 or row.t1_t2_SVfitMass > 150): return False # for MSSM
        return True
Ejemplo n.º 30
0
    def zSelection(self, row):
        #if not selections.ZMuMuSelectionNoVetos(row): return False
        #if selections.overlap(row, 'm1','m2','e','t') : return False
        #if bool(row.eVetoMVAIso):       return False
        #if bool(row.bjetCSVVeto):       return False
        #if row.tPt < 5:                  return False
        ## if row.ePt     < 10:            return False
        ## if row.eAbsEta > 2.5:           return False
        ## if row.eDZ     > 0.1:           return False
        ## return True
        #return selections.signalElectronSelection(row,'e')

        if not selections.ZMuMuSelection(row): return False
        if selections.overlap(row, 'm1', 'm2', 'e', 't'): return False
        if not selections.signalTauSelection(row, 't', 5): return False
        if not bool(row.tAntiMuonLoose): return False
        if not bool(row.tAntiElectronMVA2Tight): return False
        #if not bool(row.tAntiElectronTight): return False
        #if row.LT < 45: return False
        return selections.signalElectronSelection(row, 'e')
Ejemplo n.º 31
0
    def zSelection(self, row):
        #if not selections.ZMuMuSelectionNoVetos(row): return False
        #if selections.overlap(row, 'm1','m2','e','t') : return False
        #if bool(row.eVetoMVAIso):       return False
        #if bool(row.bjetCSVVeto):       return False
        #if row.tPt < 5:                  return False
        ## if row.ePt     < 10:            return False
        ## if row.eAbsEta > 2.5:           return False
        ## if row.eDZ     > 0.1:           return False
        ## return True
        #return selections.signalElectronSelection(row,'e')

        if not selections.ZMuMuSelection(row): return False
        if selections.overlap(row, 'm1','m2','e','t') : return False
        if not selections.signalTauSelection(row,'t',5): return False
        if not bool(row.tAntiMuonLoose): return False
        if not bool(row.tAntiElectronMVA2Tight): return False
        #if not bool(row.tAntiElectronTight): return False
        #if row.LT < 45: return False
        return selections.signalElectronSelection(row,'e')
Ejemplo n.º 32
0
    def preselection(self, row):
        """ Preselection applied to events.

        Excludes FR object IDs and sign cut.
        """
        if not selections.ZEESelection(row):
            return False
        if selections.overlap(row, "e1", "e2", "t1", "t2"):
            return False
        if not selections.signalTauSelection(row, "t1"):
            return False
        if not selections.signalTauSelection(row, "t2"):
            return False
        if not bool(row.t1AntiMuonTight):
            return False
        if not bool(row.t1AntiElectronMedium):
            return False
        if not bool(row.t2AntiMuonTight):
            return False
        if not bool(row.t2AntiElectronMedium):
            return False
        if row.t1Pt < row.t2Pt:
            return False  # Avoid double counting
        return True
Ejemplo n.º 33
0
 def zSelection(self, row):
     if not selections.ZMuMuSelection(row): return False
     return (not selections.overlap(row, 'm1', 'm2', 't1', 't2'))
Ejemplo n.º 34
0
 def zSelection(self, row):
     if not selections.ZEESelection(row): return False
     return (not selections.overlap(row, 'e1', 'e2', 't1', 't2'))
Ejemplo n.º 35
0
 def zSelection(self, row):
     if not selections.ZMuMuSelection(row): return False
     if selections.overlap(row, 'm1','m2','m3','t') : return False
     return selections.signalMuonSelection(row,'m3')
Ejemplo n.º 36
0
 def zSelection(self, row):
     if not selections.ZEESelection(row): return False
     return (not selections.overlap(row, 'e1','e2','t1','t2'))
Ejemplo n.º 37
0
 def zSelection(self, row):
     if not selections.ZEESelection(row): return False
     if selections.overlap(row, 'e1','e2','e3','t') : return False
     if not selections.signalTauSelection(row,'t'): return False
     if not bool(row.tLooseIso): return False
     return selections.signalElectronSelection(row,'e3')
Ejemplo n.º 38
0
 def zSelection(self, row):
     if not selections.ZMuMuSelection(row): return False
     return (not selections.overlap(row, 'm1','m2','t1','t2') )