--- UserCode/LEP3/selections.py 2012/05/27 21:18:51 1.1 +++ UserCode/LEP3/selections.py 2012/06/07 14:48:57 1.2 @@ -1,12 +1,14 @@ #!/usr/bin/env python -import ROOT -def passMuonSelections(muon): - isGoodMuon = True - if muon.p()<5: isGoodMuon = False - return isGoodMuon +from muonSelections import * +from electronSelections import * +from photonSelections import * -def passPreselections(cleanMuons): - isGoodEvent = True - if len(cleanMuons)<2: isGoodEvent = False - return isGoodEvent +def passLeptonSelections(leptons): + if len(leptons)<2: return False + if leptons[0].charge()+leptons[1].charge() != 0: return False + return True + +def passPreselections(dilep): + if dilep.M()<10: return False + return True