1 |
|
#!/usr/bin/env python |
2 |
– |
import ROOT |
2 |
|
|
3 |
< |
def passMuonSelections(muon): |
4 |
< |
isGoodMuon = True |
5 |
< |
if muon.p()<5: isGoodMuon = False |
7 |
< |
return isGoodMuon |
3 |
> |
from muonSelections import * |
4 |
> |
from electronSelections import * |
5 |
> |
from photonSelections import * |
6 |
|
|
7 |
< |
def passPreselections(cleanMuons): |
8 |
< |
isGoodEvent = True |
9 |
< |
if len(cleanMuons)<2: isGoodEvent = False |
10 |
< |
return isGoodEvent |
7 |
> |
def passLeptonSelections(leptons): |
8 |
> |
if len(leptons)<2: return False |
9 |
> |
if leptons[0].charge()+leptons[1].charge() != 0: return False |
10 |
> |
return True |
11 |
> |
|
12 |
> |
def passPreselections(dilep): |
13 |
> |
if dilep.M()<10: return False |
14 |
> |
return True |